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.
Run Minimized dont works
Re: Run Minimized dont works
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.
-
- Posts: 1259
- Joined: 16 Apr 2015, 09:41
Re: Run Minimized dont works
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
Re: Run Minimized dont works
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.
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.