Run Minimized dont works

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
fedek
Posts: 60
Joined: 17 May 2016, 12:17
Contact:

Run Minimized dont works

16 Jun 2016, 04:01

Run, http://ru.warfrafefefe,, Hide
Run, http://ru.warfrafefefe,, Min
Run, http://ru.warfrafefefe, Min
Run, C:\Users\fedek\Desktop\Ahk\Url\chrome.exe.lnk, C:\Users\fedek\Desktop\Ahk\Url, Min
None of this minimizing.I use Google Chrome.
User avatar
rommmcek
Posts: 1474
Joined: 15 Aug 2014, 15:18

Re: Run Minimized dont works

17 Jun 2016, 03:27

Doc says:
Note: Some applications (e.g. Calc.exe) do not obey the requested startup state and thus Max/Min/Hide will have no effect.
Shadowpheonix
Posts: 1259
Joined: 16 Apr 2015, 09:41

Re: Run Minimized dont works

17 Jun 2016, 13:23

Something like this may be the best you can do...

Code: Select all

SetTitleMatchMode, 2
Run, http://ru.warfrafefefe
WinWait, http://ru.warfrafefefe
WinMinimize, http://ru.warfrafefefe
Anonanonanon

Re: Run Minimized dont works

29 Mar 2017, 15:34

It looks like URLS don't behave that way, but neatly, the Min flag does override the "Normal" window specified in most shortcuts. So therefore you can call chrome.exe or chrome.lnk (a shortcut to chrome.exe) and then follow that up with the url you're going to. After that put a couple of commas and specify to minimize.

Example:

^+5::Run, "C:\path\to\shortcut\chrome.lnk" "http://reddit.com", , Min,
^+6::Run, "C:\path\to\executable\chrome.exe" "http://reddit.com", , Min,

It's important to note that the bolded parts contain two strings but there is no comma between them. Together they are the thing that you're running. You can do the same thing with Firefox, Edge, or IExplore

I know this is almost a year old, but it turned right up near the top of the results in my google search: autohotkey run minimized ... so having figured it out, I thought maybe posting this will help whoever searched for that next.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: RandomBoy, Rohwedder and 387 guests