Stop script from running when opening script file Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
matthewlrx
Posts: 18
Joined: 26 May 2022, 03:20

Stop script from running when opening script file

Post by matthewlrx » 26 May 2022, 03:25

Hi Everybody

I have a strange situation. On Windows 10, when i opened my ahk file it loaded the script and when I pushed my hotkeys, everything works. I then upgraded to Windows 11 and now when i open my ahk file, it runs it and opens the apps I have set to only open when pushing the hotkey.

Is there a way to modify this to launch the script when opening the ahk file but only run the open apps like firefox and outlook only when i push #2?

Code: Select all

#2:
Run  Outlook
Run  Firefox
Run  "W:\My Documents\DailySheet.xlsm"

::aa::{U+1F642}
::ss::{U+1F622}
::dd::{U+1F917}
::ff::{U+1F44D}
::ww::£

User avatar
mikeyww
Posts: 26851
Joined: 09 Sep 2014, 18:38

Re: Stop script from running when opening script file  Topic is solved

Post by mikeyww » 26 May 2022, 04:23

Welcome to this AutoHotkey forum!

:arrow: Hotkeys are followed by double colon ::.

matthewlrx
Posts: 18
Joined: 26 May 2022, 03:20

Re: Stop script from running when opening script file

Post by matthewlrx » 26 May 2022, 04:26

mikeyww wrote:
26 May 2022, 04:23
Welcome to this AutoHotkey forum!

:arrow: Hotkeys are followed by double colon ::.
OMW I feel like a total idiot now, I missed such a simple mistake. Thank you so much for your fast reply. Note to self to be more observant.

User avatar
mikeyww
Posts: 26851
Joined: 09 Sep 2014, 18:38

Re: Stop script from running when opening script file

Post by mikeyww » 26 May 2022, 04:57

You are welcome. Your script would not work in Windows 10, so you must have changed it.

Post Reply

Return to “Ask for Help (v1)”