Also ahktextdll returns thread handle!
Code: Select all
hThread := ahk.ahktextdll("#Persistent`nout:=strreplace(""You are a primate"", ""primate"", ""fat monkey"")")
While !out:=ahk.ahkgetvar("out")
Sleep 100
ahk.ahkterminate()
MsgBox %out%
Code: Select all
hThread := ahk.ahktextdll("#Persistent`nout:=strreplace(""You are a primate"", ""primate"", ""fat monkey"")")
While !out:=ahk.ahkgetvar("out")
Sleep 100
ahk.ahkterminate()
MsgBox %out%
Code: Select all
Set AhkCom = CreateObject("AutoHotkey.Script.X64")
AhkCom.ahktextdll ("MsgBox 'Hello World!'")
While AhkCom.ahkready()
WScript.Sleep (100)
Wend
Code: Select all
Set AhkCom = CreateObject("AutoHotkey.Script.UNICODE")
AhkCom.ahktextdll ("MsgBox 'Hello World!'")
While AhkCom.ahkready()
WScript.Sleep (100)
Wend
Code: Select all
set AhkCom = CreateObject("AutoHotkey.Script.X64")
AhkCom.ahktextdll("MsgBox 'Hello World!'")
While AhkCom.ahkready()
WScript.Sleep(100)
Wend
Code: Select all
set AhkCom = CreateObject("AutoHotkey.Script")
AhkCom.ahktextdll("MsgBox 'Hello World!'")
While AhkCom.ahkready()
WScript.Sleep(100)
Wend
Code: Select all
NotepadMin := Func("Run").Bind("notepad.exe", , "Min")
%NotepadMin%()
Run(Target, WorkingDir:="", Options:="") {
Run, % Target, % WorkingDir, % Options
}
Code: Select all
String =
(
Lorem. ipsum dolor. sit
amet, consectetur.
adipiscing elit, sed. do
eiusmod.
)
RegExMatch(String, "O)(\.)?.*(\.)?.*(\.)?.*(\.)?.*(\.)?.*(\.)?.*(\.)?.*(\.)?.*", dotArray)
numberOfDots := dotArray.Count()
msgbox % numberOfDots ; returns 0
Code: Select all
Send( "{a down}{33}{a up}{11}{b down}{33}{b up}" )
Code: Select all
SetTimer, LoginDoStuff, % 3*60*60*1000
Code: Select all
hour:=60*min:=60*sec:=1000
SetTimer, LoginDoStuff, % 3*hour
Code: Select all
a := "="
if (a="=")
{
Msgbox,Yes
}
else
{
Msgbox,No
}
return