Jump to content
Sign in to follow this  
Jasio

Script Doesn't Seem To Do What I Want It To

Recommended Posts

I'm having a problem with the tabs, there is 35, and even though they work the first time, they seem to cut short around 32/33 on the second.. any ideas would be appreciated

AutoItSetOption ( "SendKeyDelay", 40 )

WinActivate("(SFGC) Galactic Conquest - Microsoft Internet Explorer", "")

Sleep("3000")

Send("{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}

{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}")

Sleep("1000")

Send("{ENTER}")

WinActivate("(SFGC) Galactic Conquest - Microsoft Internet Explorer", "")

Sleep("3000")

Send("{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}

{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}")

Share this post


Link to post
Share on other sites

You might like to try it this way:

AutoItSetOption("SendKeyDelay", 40)
WinActivate("(SFGC) Galactic Conquest - Microsoft Internet Explorer")

Sleep(3000)
Send("{TAB 35}")
Sleep(1000)
Send("{ENTER}")

Sleep("3000")
Send("{TAB 35}")

Does this work any better for you?

Share this post


Link to post
Share on other sites

LxP's script is correct, but i have found i need to slow the send(TAB) down a little like this

AutoItSetOption("SendKeyDelay", 40)
WinActivate("(SFGC) Galactic Conquest - Microsoft Internet Explorer")

Sleep(3000)

For $x = 1 to 35
    Send("{TAB}")
    Sleep(100)
Next
Sleep(1000)
Send("{ENTER}")

Sleep("3000")
For $x = 1 to 35
    Send("{TAB}")
    Sleep(100)
Next

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

That's an idea worth considering. Another way to achieve this would involve increasing the SendKeyDelay:

AutoItSetOption("SendKeyDelay", 150)
WinActivate("(SFGC) Galactic Conquest - Microsoft Internet Explorer")

Sleep(3000)
Send("{TAB 35}")
Sleep(1000)
Send("{ENTER}")

Sleep("3000")
Send("{TAB 35}")

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...