SC4 Devotion Forum Archives

Sim City 4 Devotion Tools => Tools - General Discussion => Topic started by: Jonathan on November 28, 2009, 05:54:08 AM

Title: SC4 Jumplist Launcher for Windows 7
Post by: Jonathan on November 28, 2009, 05:54:08 AM
I made this small program, SC4JLL, so that I didn't have to have multiple icons for launching SC4 in windowed mode and full screen mode, and then it just progressed to where anything can be added to the jumplist, so non SC4 items.
Here's some screen shots that should explain it better than what I can type.

Here's where you set whats in the jumplist, you can have 4 categories each with 3 items in each (I'm going to expand this)
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fi200.photobucket.com%2Falbums%2Faa230%2FwarriorST%2FSC4JLLSettingsForm.jpg&hash=cd62189cb6a56a541e2680c6c4c152e14a924489)

And here is the jumplist and as you can see the program doesn't have to be running.
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fi200.photobucket.com%2Falbums%2Faa230%2FwarriorST%2FSC4JLLJumplist.jpg&hash=88d499c791074b371418f3a91288f6f19c3a3e8e)

You can set a program to run when you click the SC4JLL, so the settings item is needed to go back to the SC4JLL page.

Theres probably something else like this already, but I made it mostly to learn about the new Windows 7 features, and it's just something I wanted to do. Also I'm going to make it easier to add SC4 specific items.

EDIT: Forgot the zip :)

Jonathan
Title: Re: SC4 Jumplist Launcher for Windows 7
Post by: Andreas on November 28, 2009, 08:38:07 AM
Hey, that's pretty cool! :) I'm one of those guys who have multiple icons for the game, and the various tools, so this will be very useful. One possible feature would be the program icon added next to the entries, so you can distinguish between SC4 and the modding programs.
Title: Re: SC4 Jumplist Launcher for Windows 7
Post by: Andreas on November 29, 2009, 01:36:26 PM
Well, I wanted to try this today, but it requires .NET Framework 4, which is still in beta, and no German version is available. Any chance to compile this for .NET Framework 3.5? I don't really want to install a 75+ MB package that is probably not compatible with this system just for having this small launcher app.  &mmm
Title: Re: SC4 Jumplist Launcher for Windows 7
Post by: Jonathan on November 29, 2009, 02:06:01 PM
I think it only will work with Framework 4, because of the jumplist but I'm not 100% sure.
Title: Re: SC4 Jumplist Launcher for Windows 7
Post by: Andreas on November 29, 2009, 02:11:18 PM
Well, Win7 comes with .NET Framework 3.5 and has jumplists as well (you can open a new tab in IE if you open the IE jumplist, for instance), and I get play controls if I click the iTunes icon in the taskbar. Not sure if you need version 4 for standalone applications, though, maybe you can try to find out?
Title: Re: SC4 Jumplist Launcher for Windows 7
Post by: null45 on November 29, 2009, 07:33:56 PM
The libraries you use work fine under .NET 3.5, .NET 4 is still under development so it is more compatible to use .NET 3.5.

A version that displays icons:

(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg40.imageshack.us%2Fimg40%2F4765%2Fjumptest.png&hash=00be58e28ffa10f5ff27a95b1b9f164781057959)

The code to display the icons is:

linkname.IconReference = new IconReference(Path to exe,0);
Title: Re: SC4 Jumplist Launcher for Windows 7
Post by: Jonathan on November 30, 2009, 12:30:20 AM
I've added icons and made a form to configure the SC4 shortcut.

I thought I had tried to compile it with .NET 3.5 and it didn't work but that's prbably me getting confused with another application.

I'll recompile it this afternoon
Title: Re: SC4 Jumplist Launcher for Windows 7
Post by: JoeST on December 01, 2009, 03:00:55 AM
wow, super awesome tool Jon :o :)

Joe
Title: Re: SC4 Jumplist Launcher for Windows 7
Post by: Jonathan on December 05, 2009, 10:04:39 AM
Got a bit sidetracked, but I recompiled it in Net 3.5.
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fi200.photobucket.com%2Falbums%2Faa230%2FwarriorST%2Fleftsidenav.jpg&hash=19b8a3c5c9379d45943b960e359e03e9c2112d5c)
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fi200.photobucket.com%2Falbums%2Faa230%2FwarriorST%2FSAH.jpg&hash=5be37f0497cabd463fd74d709976816763abd4d8)(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fi200.photobucket.com%2Falbums%2Faa230%2FwarriorST%2FCusres.jpg&hash=efaea3d6f8216e7ef009ecff42450c3ee0567881)

Hope that's better :)

Jonathan
Title: Re: SC4 Jumplist Launcher for Windows 7
Post by: Andreas on December 05, 2009, 11:35:24 AM
Sweet! I tried this version, and it appears to work fine. :) It would be nice if the launcher itself would have a nicer program icon, though - at the moment, it's just the default "generic window" icon, so it would be better if it shows the icon for the default application (SC4 in my case). I still don't like every detail in Win7, but with such cool features, it'll definitely grow on me more and more.
Title: Re: SC4 Jumplist Launcher for Windows 7
Post by: Jonathan on December 05, 2009, 11:39:50 AM
The trouble is making a better default icon :)
But I'll make it shows the default program icon.

Title: Re: SC4 Jumplist Launcher for Windows 7
Post by: Jonathan on December 18, 2009, 11:16:20 AM
Completely redesigning the UI that allows for custom number of categories and items (hopefully it will be better than before0 and saving the jumplist in a xml.

Also custom icon and the ability to have a little L icon in the corner of the icon to tell the different if you have the default program also pinned to the taskbar
Title: Re: SC4 Jumplist Launcher for Windows 7
Post by: Andreas on December 29, 2009, 06:48:55 AM
I just remembered this thread... Did you ever release the reworked version from December 18th or later?