kanethekiller Posted March 4, 2004 Posted March 4, 2004 (edited) This Is The Script, And Everytime I Run It, It Says It Can't Find The Internet Explorer.exe To Run. I Have Tried It Without The Exe, I've Tried It With The Directory... Nothing Works Also If Anyone Sees Any Errors In The Rest Of The Code Let Me Know Since I'm New To Version 3 IniRead ("@ScriptDir\Pit_Script.ini"," _Delays_", "Internet","") IniRead ("@ScriptDir\Pit_Script.ini"," _Info_", "Login","") IniRead ("@ScriptDir\Pit_Script.ini"," _Info_", "Email","") IniRead ("@ScriptDir\Pit_Script.ini"," _Info_", "Pass","") run ("Internet Explorer.exe","",@SW_MAXIMIZE) Sleep ($Internet) Send ("{TAB}") Sleep (250) Send ("www.alienaa.com") Sleep (300) WinsetTitle("A3 - Awakening - Microsoft Internet Explorer","","Pit_Script") Winmove("Pit_Script","", 277,97,831,651) Send ("{TAB}") Sleep (150) Send ("{TAB}") If $Login = 1 Then Send ("$Email") Sleep (100) Send ("{TAB}") Sleep (100) Send ("{ENTER}") Endif If $Login = 2 Then Send ("$Email") Sleep (100) Send ("{TAB}") Sleep (100) Send ("$Pass") Sleep (100) Send ("{ENTER}") Endif Edited March 4, 2004 by kanethekiller
Developers Jos Posted March 4, 2004 Developers Posted March 4, 2004 run ("Explorer.exe http://www.alienaa.com","",@SW_MAXIMIZE) would work as well. by the way , think that IniRead ("@ScriptDir\Pit_Script.ini"," _Delays_", "Internet","") should be IniRead (@ScriptDir & "\Pit_Script.ini"," _Delays_", "Internet","") SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Valik Posted March 4, 2004 Posted March 4, 2004 Also, Internet Explorer's executable is "iexplore.exe". That is why you were having problems using Run.
kanethekiller Posted March 4, 2004 Author Posted March 4, 2004 Another Problem... Says I'm Using Undefined Variables... I Thought The INI Defined Them... Any Ideas?
Valik Posted March 4, 2004 Posted March 4, 2004 IniRead RETURNS what it read. You have to assign that return value to a variable. Just calling IniRead alone isn't enough. $var = IniRead("my.ini", "secton", "key", "default") $var will then contain whatever was read from the INI file, or if it couldn't read from the INI, it will contain whatever the default text you specified was.
kanethekiller Posted March 4, 2004 Author Posted March 4, 2004 Ok Thanks This Is A Lot Differant From V2 :iamstupid:
Nutster Posted March 5, 2004 Posted March 5, 2004 (edited) Another option is to use start with the web address: Run(@Comspec & ' /c Start "http://www.alienaa.com" ') Edited March 5, 2004 by Nutster David NuttallNuttall Computer Consulting An Aquarius born during the Age of Aquarius AutoIt allows me to re-invent the wheel so much faster. I'm off to write a wizard, a wonderful wizard of odd...
Helpmeplease Posted March 6, 2006 Posted March 6, 2006 This Is The Script, And Everytime I Run It, It Says It Can't Find The Internet Explorer.exe To Run. I Have Tried It Without The Exe, I've Tried It With The Directory... Nothing Works Also If Anyone Sees Any Errors In The Rest Of The Code Let Me Know Since I'm New To Version 3 IniRead ("@ScriptDir\Pit_Script.ini"," _Delays_", "Internet","")IniRead ("@ScriptDir\Pit_Script.ini"," _Info_", "Login","")IniRead ("@ScriptDir\Pit_Script.ini"," _Info_", "Email","")IniRead ("@ScriptDir\Pit_Script.ini"," _Info_", "Pass","")run ("Internet Explorer.exe","",@SW_MAXIMIZE)Sleep ($Internet)Send ("{TAB}")Sleep (250)Send ("www.alienaa.com")Sleep (300)WinsetTitle("A3 - Awakening - Microsoft Internet Explorer","","Pit_Script")Winmove("Pit_Script","", 277,97,831,651)Send ("{TAB}")Sleep (150)Send ("{TAB}")If $Login = 1 ThenSend ("$Email")Sleep (100)Send ("{TAB}")Sleep (100)Send ("{ENTER}")EndifIf $Login = 2 Then Send ("$Email")Sleep (100)Send ("{TAB}")Sleep (100)Send ("$Pass")Sleep (100)Send ("{ENTER}")EndifHey can you write me out a code for the pit please in alienaa and tell me how to run it i dwonload autoit thing i just need to know the ins and outs now so can you or anyone help me please?
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