Search found 1769 matches

by malcev
17 Jun 2017, 20:37
Forum: Ask for Help (v1)
Topic: PNG to Variable possible? Topic is solved
Replies: 5
Views: 1300

Re: PNG to Variable possible? Topic is solved

Getting picture data: URLDownloadToFile, http://i.imgur.com/QoIAy4U.jpg, %A_Desktop%\test.jpg sFile := A_Desktop "\test.jpg" Bytes := GetPictureData(sFile, Data) StringBASE64 := Trim(CryptBinaryToStringBASE64(&Data, Bytes), " `n`r") VarSetCapacity(Data, 0) Content := CreateCorrectVar(StringBASE64) R...
by malcev
17 Jun 2017, 08:54
Forum: Ask for Help (v1)
Topic: Ahk32 bit does not send quotes in cmd
Replies: 3
Views: 1280

Re: Ahk32 bit does not send quotes in cmd

1) Run directly from a 32-bit command prompt. Triple quotes work OK: w32tm /config /update /manualpeerlist:"""0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org""" /syncfromflags:MANUAL /reliable:yes 2) Run the 64-bit command processor from AutoHotkey 32-bit. Single quotes work OK: RunWait ...
by malcev
17 Jun 2017, 00:46
Forum: Ask for Help (v1)
Topic: Ahk32 bit does not send quotes in cmd
Replies: 3
Views: 1280

Ahk32 bit does not send quotes in cmd

[Moderator's note: Topic moved from Bug Reports.] I have Windows7 64bit. I want to set manual peer list for time synchronization. The peer list should be enclosed in quotation marks. manualpeerlist:<peers>—Sets the manual peer list to <peers>, which is a space-delimited list of Domain Name System (...
by malcev
01 May 2017, 20:30
Forum: Bug Reports
Topic: UrlDownloadToFile documentation
Replies: 1
Views: 1298

UrlDownloadToFile documentation

I think there is an error in Example: Make an asynchronous HTTP request. Example: Make an asynchronous HTTP request. req := ComObjCreate("Msxml2.XMLHTTP") ; Open a request with async enabled. req.open("GET", "https://autohotkey.com/download/1.1/version.txt", true) ; Set our callback function (v1.1.1...
by malcev
10 Apr 2017, 07:48
Forum: Scripts and Functions (v1)
Topic: [library] TF: Text files & Variables (strings) v3.8
Replies: 61
Views: 38788

Re: [library] TF: Text files & Variables (strings) v3.5

Now I understand about second and third example. But with first one I get error: "Read Error:`npossible reason: perhaps you used ! vs ""!"" Clipboard=00000 Clipboard:=TF_TrimLeft(Clipboard,1,1,3) MsgBox % Clipboard ; shows error May be this is because I use 3.6 version? And function TF_GetData think...
by malcev
10 Apr 2017, 07:07
Forum: Scripts and Functions (v1)
Topic: [library] TF: Text files & Variables (strings) v3.8
Replies: 61
Views: 38788

Re: [library] TF: Text files & Variables (strings) v3.5

1) Your example works: Clipboard=12345 Clipboard:=TF_TrimLeft(Clipboard,1,1,3) ; means trim the first three chars, so 123 MsgBox % Clipboard ; shows 4-5 so it works But my does not work: Clipboard=00000 Clipboard:=TF_TrimLeft(Clipboard,1,1,3) MsgBox % Clipboard ; shows error You can try it by yourse...
by malcev
09 Apr 2017, 10:44
Forum: Scripts and Functions (v1)
Topic: [library] TF: Text files & Variables (strings) v3.8
Replies: 61
Views: 38788

Re: [library] TF: Text files & Variables (strings) v3.5

Hi. Found some bugs. 1) If I have this string in ClipBoard then I will have an error: Clipboard=00000 Clipboard:=TF_TrimLeft(Clipboard,1,1,3) MsgBox % Clipboard 2) If I have any filename (not file content) in Clipboard - I also will get error: Clipboard=c:\1.txt Clipboard:=TF_TrimLeft(Clipboard,1,1,...
by malcev
13 Jan 2017, 14:41
Forum: Ask for Help (v1)
Topic: Msxml2.XMLHTTP and responseType
Replies: 0
Views: 600

Msxml2.XMLHTTP and responseType

Why responseType property does not work? Writes "Error - Unknown name".

Code: Select all

req := ComObjCreate("Msxml2.XMLHTTP")
req.open("GET", "http://google.com", False)
req.responseType := "document"
req.Send()
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
by malcev
19 Jun 2016, 19:01
Forum: Ask for Help (v1)
Topic: Post/Redirect/Get pattern
Replies: 9
Views: 3424

Re: Post/Redirect/Get pattern

Just understand my mistake. Forgot to WebRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded") when send post request: url := "https://www.ss.lv/ru/transport/cars/porsche/filter/" filter := "topt%5B8%5D%5Bmin%5D=90000&topt%5B8%5D%5Bmax%5D=&topt%5B18%5D%5Bmin%5D=&topt%5B18%5D%...
by malcev
18 Jun 2016, 07:50
Forum: Ask for Help (v1)
Topic: Post/Redirect/Get pattern
Replies: 9
Views: 3424

Re: Post/Redirect/Get pattern

Interesting to understand how this library works.
by malcev
17 Jun 2016, 20:55
Forum: Ask for Help (v1)
Topic: Post/Redirect/Get pattern
Replies: 9
Views: 3424

Re: Post/Redirect/Get pattern

Thank You. It works. But if it is possible to get data in Python then it is possible to do the same in autohotkey?
by malcev
17 Jun 2016, 17:43
Forum: Ask for Help (v1)
Topic: Post/Redirect/Get pattern
Replies: 9
Views: 3424

Re: Post/Redirect/Get pattern

E.g. This script worked fine but not for a long time it's written in AutoHotkey_H v2 The javascript function to get correct keys You can find here: https://github.com/Stichoza/google-translate-php/issues/32#issuecomment-218675898 And run it in autohotkey with this: https://autohotkey.com/boards/vie...
by malcev
17 Jun 2016, 17:04
Forum: Ask for Help (v1)
Topic: Post/Redirect/Get pattern
Replies: 9
Views: 3424

Re: Post/Redirect/Get pattern

No it does not work. I think that I have to made get request after the post request with some validation parameters to get correct answer. But how to do it? I also tried to save and send cookies. But it does not work. I mean this: Go to link: https://www.ss.lv/en/transport/cars/porsche/filter/ Inser...
by malcev
15 Jun 2016, 14:32
Forum: Ask for Help (v1)
Topic: Post/Redirect/Get pattern
Replies: 9
Views: 3424

Post/Redirect/Get pattern

I want to send post request. But I will got "405 Not Allowed" url := "https://www.ss.lv/en/transport/cars/porsche/" filter := "topt%5B8%5D%5Bmin%5D=800&topt%5B8%5D%5Bmax%5D=&topt%5B18%5D%5Bmin%5D=&topt%5B18%5D%5Bmax%5D=&topt%5B15%5D%5Bmin%5D=&topt%5B15%5D%5Bmax%5D=&opt%5B34%5D=&opt%5B35%5D=&opt%5B17...
by malcev
06 Jun 2016, 05:33
Forum: Ask for Help (v1)
Topic: WinHTTPRequest error 0x80072efd
Replies: 3
Views: 2198

Re: WinHTTPRequest error 0x80072efd

I have: "Direct access (no proxy server)" on both systems.
by malcev
05 Jun 2016, 11:17
Forum: Ask for Help (v1)
Topic: ComObjCreate Selenium
Replies: 15
Views: 17515

Re: ComObjCreate Selenium

What do You want to do? If You want loop through elements with css, You can do it like this: driver:= ComObjCreate("Selenium.IEDriver") url:="https://www.google.co.kr/search?q=ahk&source=lnms&tbm=isch&sa=X" driver.Get(url) For k in driver.findElementsByCss("input[name=""q""]") { if k.IsDisplayed k.S...
by malcev
26 May 2016, 09:25
Forum: Ask for Help (v1)
Topic: ComObjCreate Selenium
Replies: 15
Views: 17515

Re: ComObjCreate Selenium

Can somebody tell how to use it with autohotkey?
What I have to download and install?
Please!
by malcev
24 Apr 2016, 12:11
Forum: Bug Reports
Topic: Arrow keys and shortcuts do not work in context menu at first time
Replies: 4
Views: 2196

Re: Arrow keys and shortcuts do not work in context menu at first time

1) If I create new script on desktop. Run this script from desktop with double click and press f1 when desktop is active - then Up and Down do not work. 2) If I create new script on desktop. Run this script from desktop with double click, activate firefox or skype window and press f1 - then Up and D...

Go to advanced search