Jasio Posted October 20, 2005 Share Posted October 20, 2005 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 appreciatedAutoItSetOption ( "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}") Link to comment Share on other sites More sharing options...
LxP Posted October 20, 2005 Share Posted October 20, 2005 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? Link to comment Share on other sites More sharing options...
GaryFrost Posted October 20, 2005 Share Posted October 20, 2005 (edited) think i would try Send("{TAB 35}") and see how that goes 1st Edit: lxp beat me to it. Edited October 20, 2005 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Valuater Posted October 20, 2005 Share Posted October 20, 2005 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) Link to comment Share on other sites More sharing options...
LxP Posted October 20, 2005 Share Posted October 20, 2005 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}") 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