Jump to content

Recommended Posts

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
Link to post
Share on other sites
  • Developers

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.
  :)

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.

Link to post
Share on other sites

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

Link to post
Share on other sites
  • 2 years later...

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?

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...