Jump to content

Send() does not work in window


Recommended Posts

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

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.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

; 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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...