It is currently April 27th, 2024, 2:02 pm

Launcher items reopen programs......

Get help with installing and using Rainmeter.
rbrtvncnt
Posts: 3
Joined: September 27th, 2012, 8:16 pm

Launcher items reopen programs......

Post by rbrtvncnt »

Howdy,

Is it possible to setup the Launcher such that clicking one of its items will:

1. open/launch the item if it's not already opened/running;

2. if the item is already opened/running, bring the currently open window the to front.

Right now I have Launcher items set up like this:

------------------------//---------------------------

[APP2]
Meter=STRING
X=0
Y=50r
FontColor=252,252,252
FontSize=35
FontFace=Segoe UI Light
StringStyle=NORMAL
StringAlign=LEFT
AntiAlias=1
Text="Mails"
LeftMouseUpAction=["C:\Program Files (x86)\Microsoft Office\Office14\OUTLOOK.exe"]

------------------------//---------------------------

Every time I click the above item, it opens a new instance of Outlook.

However, my Launch item for Photoshop (and C:\, and some others) is set up the same way, but it brings the currently open window to the front if the folder/program is already open/running; otherwise, it opens the folder/program.

Hope this makes sense. Thanks for the help.

Rob
spartan 891
Posts: 5
Joined: September 24th, 2012, 4:24 pm

Re: Launcher items reopen programs......

Post by spartan 891 »

Firstly, you can use the

Code: Select all

 styles for coding, to mark it clearly.

Secondly, could you not open up the one that does what you want, and just change it to suit other links?
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: Launcher items reopen programs......

Post by MerlinTheRed »

Some programs detect if there is already an instance running and react appropriately, and some just don't care and start a new instance. I don't think there is any universal way to do this without the help of some extra program.

That being said, we recently had a discussion here on the forums about the exact same problem. Try a forum search for "RunOrMaximizeProgram" or something like that. It shouldn't be too hard to find, but I don't have time right now to look for it.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
rbrtvncnt
Posts: 3
Joined: September 27th, 2012, 8:16 pm

Re: Launcher items reopen programs......

Post by rbrtvncnt »

hey folks,

spartan891--thanks for the response, and sorry for the poor formatting--I don't use message boards very often.

MerlinTheRed--thanks! That's exactly what I wanted to know. I was just about to send a longish, coded-filled reply, but you saved us all! I'll look into RunOrMaximizeProgram. If that doesn't work, I'll deal with it. ;p

Cheers,
Rob