 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Trubbleguy
Joined: 20 Jan 2007 Posts: 96 Location: Melbourne
|
Posted: Tue Jun 30, 2009 1:44 am Post subject: UrlDownloadToFile possible bug |
|
|
i have been going nutz over losing my variable data when using c1 c2 c3 etc when using UrlDownloadToFile, whenever UrlDownloadToFile was called, any variable called c1 c2 c3 c4 etc was wiped, i finally did the following test and comfirmed the bug
| Code: |
msgbox % c1 " - " c2 " - " c3 " - " c4 " - " c5
UrlDownloadToFile,%myserver%/%c1%,%A_ScriptDir%\%c5%.d
msgbox % c1 " - " c2 " - " c3 " - " c4 " - " c5
|
the first msgbox showed all my variables perfectly
it then downloaded what was asked for
then the second msgbox just showed - - - -
yet the file i asked for, was present and Correct.
all the c variables get deleted whenever UrlDownloadToFile was used
i changed the variable to d and it then worked fine. _________________
 |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10716
|
Posted: Thu Sep 17, 2009 5:49 pm Post subject: |
|
|
I can't reproduce it using the following script: | Code: | myserver = http://www.autohotkey.com
c1 = index.htm
c2 = c2
c3 = c3
c4 = c4
c5 = c5
msgbox % c1 " - " c2 " - " c3 " - " c4 " - " c5
UrlDownloadToFile,%myserver%/%c1%,%A_ScriptDir%\%c5%.d
msgbox % c1 " - " c2 " - " c3 " - " c4 " - " c5 |
Perhaps there is a timer or something else in your script that also uses those variables and is interfering. Also, if your version of AutoHotkey is very old, you could try the latest one: www.autohotkey.com/download/ |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|