Hi guys.
Today I encountered a problem with AHK_L again. I wanted to convert a script that downloads a file with httpQuery
[Unicode version by HotKeyIt] and uses a MD5 check afterwards. The problem is that the MD5 sum function uses the
Code:
SetFormat, Integer, h
and afterwards
Code:
SetFormat, Integer, d
to set the format back.
But this command crashes AHK_L (Windows throws an exception that AHK_L does not work anymore, search for problem blabla).
Even though the line will be never executed, like in this example:
Code:
url := "http://www.letsgomobile.org/images/reviews/0149/sony-ericsson-test-pictures.jpg"
length := httpQuery(data,url)
MsgBox %length%
ExitApp
; This line gets never executed
SetFormat, Integer, %A_FormatInteger%
#Include inc\httpQuery_modified.ahk
#Include inc\Struct.ahk
There are two things I can do to get around this issue:
1. Remove all lines, which use SetFormat, Integer
2. Don't use a url with binary files, e.g.
http://google.com/ works
It would be great, if someone knows how to fix this problem or what the issue might be.
Kindly regards,
nfl
BTW: I am using the latest AHK_L unicode version (1.0.97.1)
[Moved from 'Ask for Help' ~MacroMan!]