Jasio Posted October 20, 2005 Share Posted October 20, 2005 It's supposed to hit tab 35 times, and it does on the first part, then on the second series it stops around 33 and hits enter.. is there somthing wrong with the code? 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}") Sleep("1000") Send("{ENTER}") WinActivate("(SFGC) Galactic Conquest - Microsoft Internet Explorer", "") Sleep("160000") Link to comment Share on other sites More sharing options...
Skruge Posted October 20, 2005 Share Posted October 20, 2005 (edited) Please try the suggestions here... Also, I'm not familiar with what you're automating, but if it's running in Internet Explorer, you may be able to use DaleHolm's IE.au3 UDF. Edit: @Jasio: I got your PM. I figured it was a glitch in the system. Let me know how it goes. Edited October 20, 2005 by Skruge [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font] Link to comment Share on other sites More sharing options...
hankjrfan Posted October 20, 2005 Share Posted October 20, 2005 It's supposed to hit tab 35 times, and it does on the first part, then on the second series it stops around 33 and hits enter.. is there somthing wrong with the code?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}") Sleep("1000") Send("{ENTER}") WinActivate("(SFGC) Galactic Conquest - Microsoft Internet Explorer", "") Sleep("160000")Well for starters why not use a for loop to press tab instead of just listing it. That would take out any possiblity of a counting error. Also I am not even sure you can send that many things with one send statement. Atleast break it up into chunks of maybe 5 tabs each. Link to comment Share on other sites More sharing options...
LxP Posted October 21, 2005 Share Posted October 21, 2005 I could swear that you already created another thread for this question... Link to comment Share on other sites More sharing options...
Bert Posted October 21, 2005 Share Posted October 21, 2005 A much shorter way to send the tab command: Send("{TAB 35}");Presses the TAB key 35 times The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
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