Code: Select all
#SingleInstance Force
LControl & LShift::run cmd.exe
Run, notepad.exe
Code: Select all
#SingleInstance Force
LControl & LShift::run cmd.exe
Run, notepad.exe
docs wrote:After the script has been loaded, it begins executing at the top line, continuing until a Return, Exit, the script's first hotkey/hotstring label, or the physical end of the script is encountered
It doesn’t matter what you put after the hotkey. The part you want to automatically execute when the script is run needs to go before all hotkeys. See Structure of a Script.yabab33299 wrote: ↑19 Nov 2023, 19:37I tried putting Return or Exit after the hotkey but it still don't work. Is there a way around this ?
Users browsing this forum: AlFlo, Bing [Bot] and 149 guests