Ametuer Tip - Reload GUI button for compiled script

Post your working scripts, libraries and tools for AHK v1.1 and older
dlvan
Posts: 1
Joined: 28 Oct 2018, 18:17

Ametuer Tip - Reload GUI button for compiled script

28 Oct 2018, 19:12

Hi All,

This was going to be a question but the answer very strangely came to me mid sentence (after a few hours of Googling)
So this is now just a karmic FYI in case somebody is having the same issue as me.


Upon compiling an AHK script into any permutation of .exe (ANSI, UNI, 32bit, 64bit), I have been unable to get the reload command to execute from a GUI button.
Reload is also keyed to Shift + Escape, which functions perfectly, but the GUI button that links to this refuses to perform the reload command in the same way.
To deepen the mystery; this works fine on computers with AHK installed, but does not on computers without the install.

[SOULTION]:
Simple fix. The button was 'sending' the key combo for the reload program (shift + escape). I figured I should just cut the middle man and reload directly. Ended up like this:

Code: Select all

refresh:
Reload
return
Not sure why converting to an .exe stopped this from functioning correctly. Could be that its a double-pass: button to key-combo and then key-combo to command.
Wither way, there it is.

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: Noitalommi_2 and 168 guests