TransWikia.com

Compiled autohotkey file does not run, uncompiled works

Stack Overflow Asked by user1592380 on November 4, 2021

enter image description here

I’m getting started with autohotkey. I have the following script:

#NoEnv
SetWorkingDir %A_ScriptDir%
CoordMode, Mouse, Window
SendMode Input
#SingleInstance Force
SetTitleMatchMode 2
#WinActivateForce
SetControlDelay 1
SetWinDelay 0
SetKeyDelay -1
SetMouseDelay -1
SetBatchLines -1


F4::
Macro1:
WinMaximize,    xxx | Reporting
Sleep, 333
WinSet, AlwaysOnTop, Toggle,  xxx   | Reporting
Sleep, 333
WinActivate,  xxx   | Reporting
Sleep, 333
Sleep, 94
Click, -189, -85, 0
Control, Check, , WindowsForms10.BUTTON.app.0.26ac0ad_r9_ad16,   xxx  | Reporting
Control, Check, , WindowsForms10.Window.8.app.0.26ac0ad_r9_ad1199,   xxx  | Reporting
Return

When I doubleclick TEST3 script (which works uncompiled in Pullover’s macro creator) and which I compiled using Ahk2Exe, I see it in the tray on my win 10 computer:

enter image description here

But it doesn’t seem to do anything. What am i doing wrong?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP