Autohotket.dll with param Need help

Post a reply


In an effort to prevent automatic submissions, we require that you type the text displayed into the field underneath.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Autohotket.dll with param Need help

Re: Autohotket.dll with param Need help

Post by masheen » 19 Jun 2017, 13:11

HotKeyIt wrote:Probably?

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




this try it now

Re: Autohotket.dll with param Need help

Post by HotKeyIt » 19 Jun 2017, 12:34

Probably?

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

Re: Autohotket.dll with param Need help

Post by masheen » 19 Jun 2017, 12:19

HotKeyIt wrote:Sure:

Code: [Select all]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]GeSHi © Codebox Plus



Right?

Re: Autohotket.dll with param Need help

Post by HotKeyIt » 19 Jun 2017, 07:03

Sure:

Code: [Select all]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

Autohotket.dll with param Need help

Post by masheen » 18 Jun 2017, 19:47

Code: [Select all] [Expand]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

Top