Sign in to follow this  
Followers 0
kanethekiller

Won't Open Up Ie

9 posts in this topic

#1 ·  Posted (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 :whistle:

Also If Anyone Sees Any Errors In The Rest Of The Code Let Me Know Since I'm New To Version 3 B)

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 by kanethekiller

Share this post


Link to post
Share on other sites



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","")

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Also, Internet Explorer's executable is "iexplore.exe". That is why you were having problems using Run.

Share this post


Link to post
Share on other sites

Ok Thanks Guys.

Share this post


Link to post
Share on other sites

Another Problem... Says I'm Using Undefined Variables... I Thought The INI Defined Them... Any Ideas?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Ok Thanks

This Is A Lot Differant From V2 :iamstupid:

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Another option is to use start with the web address:

Run(@Comspec & ' /c Start "http://www.alienaa.com" ')
Edited by Nutster

David Nuttall
Nuttall 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...

Share this post


Link to post
Share on other sites

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 :o

Also If Anyone Sees Any Errors In The Rest Of The Code Let Me Know Since I'm New To Version 3 :geek:

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

Hey 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?

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0