Futterama Posted January 25, 2011 Share Posted January 25, 2011 Hi forum, I'm new here and have only been using AutoIt for a short while. I have come across a window in a program where I can't seem to get the Send() command to work. I have tested using a Sleep(5000) at first in the script so I can select the window, and then I use Send("{TAB}"). This should tab the selection around on the controls, but nothing happens. I use AutoIt v3 (3.3.6.1) and the compiled script runs on Windows Vista. Link to comment Share on other sites More sharing options...
wakillon Posted January 25, 2011 Share Posted January 25, 2011 Hi forum,I'm new here and have only been using AutoIt for a short while.I have come across a window in a program where I can't seem to get the Send() command to work. I have tested using a Sleep(5000) at first in the script so I can select the window, and then I use Send("{TAB}"). This should tab the selection around on the controls, but nothing happens.I use AutoIt v3 (3.3.6.1) and the compiled script runs on Windows Vista.Welcolme to the forums ! Show your script it can help ! AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
Futterama Posted January 25, 2011 Author Share Posted January 25, 2011 ; Script Start - Add your code below here WinActivate("Vælg aflåsningsfelter") WinWaitActive("Vælg aflåsningsfelter") Sleep(5000) Send("{TAB}") Link to comment Share on other sites More sharing options...
Varian Posted January 25, 2011 Share Posted January 25, 2011 ; Script Start - Add your code below here WinActivate("Vælg aflåsningsfelter") WinWaitActive("Vælg aflåsningsfelter") Sleep(5000) Send("{TAB}") First, I would switch the Sleep() & the WinWaitActive() lines...it's better to have the WinWaitActive() as close to the send as possible, because in 5 seconds, the window may not be active. What kind of window is this? Have you used AU3Info.exe to get the window Class? Is it a browser window, or an app (if so, is it a Win32, Java, Falsh, etc...)? Have you tried ControlSend()? 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