Help about concatinating

Post AHK_H specific scripts & libraries and discuss the usage and development of HotKeyIt's fork/branch
murataygun
Posts: 104
Joined: 07 Aug 2015, 15:53

Help about concatinating

10 Jun 2019, 15:09

Can you help me how to arrage that function in pharatesis. I always get this error:
>> The following variable name contains an illegal character:

Thanks.


; dll:=AhkThread()
; dll.ahkExec["MsgBox Hello World!"]

AhkThread:=AhkThread()
AhkThread.ahktextdll("
(LTrim
#Persistent
Func(){
HttpObj.Open(""POST"",""http google.com "") Broken Link for safety
HttpObj.SetRequestHeader(""User-Agent"", ""Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36"")
HttpObj.SetRequestHeader(""Content-Type"",""application/x-www-form-urlencoded"")

;Pencere listesinden bir kısım gönderelim bakalım.
kullanici := ""Kullanıcı : MURAT""
formData = Kullanici=%kullanici%&BilgisayarAdi=%A_ComputerName%

HttpObj.Send(formData)
FileAppend, %HttpObj.ResponseText%, den.txt
Return HttpObj.ResponseText

}
)")
MsgBox, % AhkThread.ahkFunction("func")
kyuuuri
Posts: 340
Joined: 09 Jan 2016, 19:20

Re: Help about concatinating

10 Jun 2019, 18:37

Add % to the options in the continuation section or replace all the "%" with "%%"

Return to “AutoHotkey_H”

Who is online

Users browsing this forum: No registered users and 6 guests