from run documentation:
Some programs have their paths registered with the system, in which case you can get away with just passing the filename of the program, with or (sometimes) without the ".exe" extension. For example:
Run "notepad"
i havent tried running firefox with full path yet.
Run "msedge"
works as expected.
Run "firefox"
does some weird shit, gives an error and gives me a dialog to press refresh, then i have to press restore all tabs, as if firefox closed badly. firefox resets what i think is all settings that are not synced by account when opened after the manual clicks.
anyone know why this is happening?
how can i register firefox with windows, so that i dont have to give a full path and have it work normally?
[Mod edit: removed Codebox tags from around entire post text.]
run without full path
Re: run without full path
Would try it this way.
Code: Select all
#Requires AutoHotkey v2.0
Run A_ProgramsCommon '\Firefox.lnk'
Re: run without full path
Nevermind, this is not needed. using Run "firefox" works fine.mikeyww wrote: ↑03 Dec 2023, 22:31Would try it this way.
Code: Select all
#Requires AutoHotkey v2.0 Run A_ProgramsCommon '\Firefox.lnk'
The problem was that my script was using a combination with shift key to be triggered, which means firefox was ran while pressing shift. this start firefox in troubleshoot mode.
i use for example KeyWait("Shift") now to wait for pressed keys to be released.
Who is online
Users browsing this forum: lexikos and 31 guests