- Create Task
- General
- Name: script.ahk
- Run with highest privileges
- Triggers
- Begin the task: At log on
- Delay task for: 1 second (for system tray icon to show)
- Actions
- Program/script: path_to_AutoHotkeyUX.exe
- Add arguments: path_to_script.ahk
Or run the following command as administrator:
schtasks /create /tn "script.ahk" /tr "\"path_to_AutoHotkeyUX.exe\" \"path_to_script.ahk\"" /sc onlogon /delay 0000:01 /rl highest