Autohotket.dll with param Need help

Ask for help, how to use AHK_H, etc.
User avatar
masheen
Posts: 226
Joined: 06 Dec 2016, 14:10

Autohotket.dll with param Need help

18 Jun 2017, 19:47

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



Can i run my script with parametrs (args) via autohotket.dll ?
like this AutoHotKey.exe / arg1

If u can give me small example
HotKeyIt
Posts: 1505
Joined: 29 Sep 2013, 18:35
Contact:

Re: Autohotket.dll with param Need help

19 Jun 2017, 07:03

Sure:

Code: [Select all] [Download] GeSHi © Codebox Plus

MsgBox 1

SCRIPT = param=`%1`%`nMsgbox `% param

ahkdll := DllCall("LoadLibrary", "Str", dll:=A_AhkDir "\Autohotkey.dll","Ptr")
DllCall(dll "\ahktextdll", "Str", SCRIPT, "Str", "thread", "Str","Parameters","Cdecl Int")
While DllCall(dll "\ahkReady")
Sleep 100
DllCall("FreeLibrary", "Ptr", ahkdll)

MsgBox 3
User avatar
masheen
Posts: 226
Joined: 06 Dec 2016, 14:10

Re: Autohotket.dll with param Need help

19 Jun 2017, 12:19

HotKeyIt wrote:Sure:

Code: [Select all] [Download] GeSHi © Codebox Plus

MsgBox 1

SCRIPT = param=`%1`%`nMsgbox `% param

ahkdll := DllCall("LoadLibrary", "Str", dll:=A_AhkDir "\Autohotkey.dll","Ptr")
DllCall(dll "\ahktextdll", "Str", SCRIPT, "Str", "thread", "Str","Parameters","Cdecl Int")
While DllCall(dll "\ahkReady")
Sleep 100
DllCall("FreeLibrary", "Ptr", ahkdll)

MsgBox 3


My script will

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



Right?
HotKeyIt
Posts: 1505
Joined: 29 Sep 2013, 18:35
Contact:

Re: Autohotket.dll with param Need help

19 Jun 2017, 12:34

Probably?

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

User avatar
masheen
Posts: 226
Joined: 06 Dec 2016, 14:10

Re: Autohotket.dll with param Need help

19 Jun 2017, 13:11

HotKeyIt wrote:Probably?

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus




this try it now

Return to “Ask For Help”

Who is online

Users browsing this forum: No registered users and 2 guests