Jump to content

Recommended Posts

Posted

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.

Posted

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 ! Posted Image

Show your script it can help !

AutoIt 3.3.18.0 X86 - SciTE 4.4.6.0WIN 11 24H2 X64 - Other Examples Scripts

Posted

; 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()?

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
×
×
  • Create New...