Menu

LEX File Exchange
EA Support Files
SC4 Wikipedia
Network Addon Mod
Dependencies
Chat
Welcome, Guest. Please login or register.
Did you miss your activation email?

September 17, 2021, 03:07:12 PM

Login with username, password and session length

Author Topic: SC4 Jumplist Launcher for Windows 7  (Read 7734 times)

0 Members and 1 Guest are viewing this topic.

Offline Jonathan

  • NAM Team
  • Forums Guru
  • *
  • Posts: 2609
  • Total likes: 6
  • Reputation: 25
  • CL: Einstein, Jr. &scl()
SC4 Jumplist Launcher for Windows 7
« on: November 28, 2009, 07: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)


And here is the jumplist and as you can see the program doesn't have to be running.


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

Offline Andreas

  • Administrator
  • Forums Legend
  • *
  • Posts: 4797
  • Total likes: 1025
  • Reputation: 33
    • SimCityPlaza
  • CL: ()bobby() Transit Controller
Re: SC4 Jumplist Launcher for Windows 7
« Reply #1 on: November 28, 2009, 10: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.
Andreas

Offline Andreas

  • Administrator
  • Forums Legend
  • *
  • Posts: 4797
  • Total likes: 1025
  • Reputation: 33
    • SimCityPlaza
  • CL: ()bobby() Transit Controller
Re: SC4 Jumplist Launcher for Windows 7
« Reply #2 on: November 29, 2009, 03: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
Andreas

Offline Jonathan

  • NAM Team
  • Forums Guru
  • *
  • Posts: 2609
  • Total likes: 6
  • Reputation: 25
  • CL: Einstein, Jr. &scl()
Re: SC4 Jumplist Launcher for Windows 7
« Reply #3 on: November 29, 2009, 04:06:01 PM »
I think it only will work with Framework 4, because of the jumplist but I'm not 100% sure.

Offline Andreas

  • Administrator
  • Forums Legend
  • *
  • Posts: 4797
  • Total likes: 1025
  • Reputation: 33
    • SimCityPlaza
  • CL: ()bobby() Transit Controller
Re: SC4 Jumplist Launcher for Windows 7
« Reply #4 on: November 29, 2009, 04: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?
Andreas

Offline null45

  • Lex Certified
  • Forums Mayor
  • *
  • Posts: 221
  • Total likes: 27
  • Reputation: 18
  • CL:
    All formats lead to FSH
Re: SC4 Jumplist Launcher for Windows 7
« Reply #5 on: November 29, 2009, 09: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:



The code to display the icons is:

Code: [Select]
linkname.IconReference = new IconReference(Path to exe,0);

Offline Jonathan

  • NAM Team
  • Forums Guru
  • *
  • Posts: 2609
  • Total likes: 6
  • Reputation: 25
  • CL: Einstein, Jr. &scl()
Re: SC4 Jumplist Launcher for Windows 7
« Reply #6 on: November 30, 2009, 02: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

Offline JoeST

  • Forums Guru
  • *
  • Posts: 2648
  • Total likes: 15
  • Reputation: 10
  • fbstj
  • CL: Not your average...
Re: SC4 Jumplist Launcher for Windows 7
« Reply #7 on: December 01, 2009, 05:00:55 AM »
wow, super awesome tool Jon :o :)

Joe
Copperminds and Cuddleswarms

Offline Jonathan

  • NAM Team
  • Forums Guru
  • *
  • Posts: 2609
  • Total likes: 6
  • Reputation: 25
  • CL: Einstein, Jr. &scl()
Re: SC4 Jumplist Launcher for Windows 7
« Reply #8 on: December 05, 2009, 12:04:39 PM »
Got a bit sidetracked, but I recompiled it in Net 3.5.
  • And added an extra 2 items per category, making it 5 per category (going to make it where you can have up to 10 in each).
  • Removed the Maximum 10 items text at the top (even though for some reason you can't have more than 10 still, if you put more than 10 it will just take the first 10).
  • Icons for exe files only atm.
  • The settings item in the jumplist only appears if you set a default program (where if you click on the icon in the taskbar it launches a program you specify not the settings form)
  • Added shortcut to SC4 Apps folder in Program Files to the open file dialog so it is quick to select SC4
  • And if you use the "O" button to add Simcity 4 to the jumplist a window now appears where you can configure the shortcut:



Hope that's better :)

Jonathan

Offline Andreas

  • Administrator
  • Forums Legend
  • *
  • Posts: 4797
  • Total likes: 1025
  • Reputation: 33
    • SimCityPlaza
  • CL: ()bobby() Transit Controller
Re: SC4 Jumplist Launcher for Windows 7
« Reply #9 on: December 05, 2009, 01:35:24 PM »
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.
Andreas

Offline Jonathan

  • NAM Team
  • Forums Guru
  • *
  • Posts: 2609
  • Total likes: 6
  • Reputation: 25
  • CL: Einstein, Jr. &scl()
Re: SC4 Jumplist Launcher for Windows 7
« Reply #10 on: December 05, 2009, 01:39:50 PM »
The trouble is making a better default icon :)
But I'll make it shows the default program icon.


Offline Jonathan

  • NAM Team
  • Forums Guru
  • *
  • Posts: 2609
  • Total likes: 6
  • Reputation: 25
  • CL: Einstein, Jr. &scl()
Re: SC4 Jumplist Launcher for Windows 7
« Reply #11 on: December 18, 2009, 01:16:20 PM »
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

Offline Andreas

  • Administrator
  • Forums Legend
  • *
  • Posts: 4797
  • Total likes: 1025
  • Reputation: 33
    • SimCityPlaza
  • CL: ()bobby() Transit Controller
Re: SC4 Jumplist Launcher for Windows 7
« Reply #12 on: December 29, 2009, 08:48:55 AM »
I just remembered this thread... Did you ever release the reworked version from December 18th or later?
Andreas