JohnOne Posted February 28, 2010 Posted February 28, 2010 Maybe I've missed or cannot see it in this thread, but can you post the exact error returned ? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
JohnOne Posted February 28, 2010 Posted February 28, 2010 (edited) Also try changing this line $strValue = $aRtn[2] & ":" & $aRtn[3] to $strValue = String($aRtn[2]) & ":" & String($aRtn[3]) Edited February 28, 2010 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
voidale Posted February 28, 2010 Author Posted February 28, 2010 (edited) Maybe I've missed or cannot see it in this thread, but can you post the exact error returned ? I have managed to run the script with out the error now but it won't paste user + pass maybe i have to add global some where? or $aRtn will be good for use for any part of the script? when the IE opens i have i to enter Proxy User + Pass this part now i use the $aRtn[3] and 4 but it won't paste it no errors i use controlsettext it's weird it's like autoit is bugged or something >.< p.s every part of the script works when you use only that part, when you combine all of them to 1 big script it won't Edited February 28, 2010 by voidale
JohnOne Posted February 28, 2010 Posted February 28, 2010 Really depends if its declaration is within a function or not (its scope) How did you fix your error?, for future reference. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
voidale Posted February 28, 2010 Author Posted February 28, 2010 (edited) Really depends if its declaration is within a function or not (its scope)How did you fix your error?, for future reference.within a function how can i make $aRtn work for the whole script? the whole script based on thathow did i fix the error? I think it was a space in the txt file so there it was 2 lines but I'm not sure it's fixed if like you said it works for within a function so the rest of script that rally on $aRtn wasn't executedso the only way to know if it's fixed or not make $aRtn global function if it's possible? it's my first time using arrays i learned alot but still can't make it work checked the whole help file or forums ;s Edited February 28, 2010 by voidale
JohnOne Posted February 28, 2010 Posted February 28, 2010 (edited) Global $aRtn[6] Edited February 28, 2010 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
voidale Posted February 28, 2010 Author Posted February 28, 2010 (edited) Global $aRtn[6] won't work makes the others $aRtn not to work any ideas? can i make at the begining of the script to make something like $aRtn[2] = $user so it will keep the string inside $user? and i will be able use it freely any time in the script? maybe in .ini, txt? i have never did something like this it's possible? Edited February 28, 2010 by voidale
JohnOne Posted February 28, 2010 Posted February 28, 2010 What you need to do is get text file initiated in a global array, before any other part of your script trys to access its values. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
voidale Posted February 28, 2010 Author Posted February 28, 2010 (edited) What you need to do is get text file initiated in a global array, before any other part of your script trys to access its values.sounds interesting how can i do that? global $txtfile ? Edited February 28, 2010 by voidale
JohnOne Posted February 28, 2010 Posted February 28, 2010 Something such as this (probably a better way) #include <Array.au3> $path = @ScriptDir & "\Test.txt" Global $aRtn = StringSplit(FileReadLine($path),":",2) _ArrayDisplay($aRtn) AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
voidale Posted February 28, 2010 Author Posted February 28, 2010 (edited) Something such as this (probably a better way) #include <Array.au3> $path = @ScriptDir & "\Test.txt" Global $aRtn = StringSplit(FileReadLine($path),":",2) _ArrayDisplay($aRtn) edit: deleted i fixed it (IELoadwait) going to test the whole script now hopefully it works Edited February 28, 2010 by voidale
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now