How to force a ".exe" script to run another ".ahk" script?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User
Posts: 407
Joined: 26 Jun 2017, 08:12

How to force a ".exe" script to run another ".ahk" script?

20 Sep 2018, 19:39

Hi,

I would like, for example, to use "run, MyPackedScript.exe AnotherScript.ahk" in order to force "MyPackedScript.exe" to execute "AnotherScript.ahk" instead the ".ahk" file that is packed inside the ".exe" file!

Any workaround?
wolf_II
Posts: 2688
Joined: 08 Feb 2015, 20:55

Re: How to force a ".exe" script to run another ".ahk" script?

20 Sep 2018, 19:59

Try with a clean copy of AHK. You don't need to pack anything into your exe.
Rename that copy to MyPackedScript.exe and your command gets run. :?:
User
Posts: 407
Joined: 26 Jun 2017, 08:12

Re: How to force a ".exe" script to run another ".ahk" script?

20 Sep 2018, 20:20

wolf_II wrote:Try with a clean copy of AHK. You don't need to pack anything into your exe.
Rename that copy to MyPackedScript.exe and your command gets run. :?:
"Ahk2Exe.exe" packs a ".ahk" script inside a ".exe" file and when the ".exe" file is executed, it automatically executes the packed ".ahk" script inside it!

The question is, how to force the ".exe" file above to execute an outside ".ahk" file instead the ".ahk" file packed inside it?

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: cjsmile999, doodles333, Google [Bot], Lamron750 and 347 guests