AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

UrlDownloadToFile possible bug

 
Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Trubbleguy



Joined: 20 Jan 2007
Posts: 96
Location: Melbourne

PostPosted: Tue Jun 30, 2009 1:44 am    Post subject: UrlDownloadToFile possible bug Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10716

PostPosted: Thu Sep 17, 2009 5:49 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group