Jump to content

[Bug] ControlSend is broken in Vista


yalag
 Share

Recommended Posts

Hello, currently in vista, the following does not work:

ControlSend("App name", "", "", "{SPACE}")

it sends the space to your currently focused window instead, not the right app.

The same code works in xp tested.

Thanks

Link to comment
Share on other sites

Hello, currently in vista, the following does not work:

ControlSend("App name", "", "", "{SPACE}")

it sends the space to your currently focused window instead, not the right app.

The same code works in xp tested.

Thanks

Only the Flag parameter is optional on ControlSend

ControlSend ( "title", "text", controlID, "string" [, flag] )

So, if the line of code that you posted works in XP, you are just lucky.

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
Share on other sites

What would the controlID be, if it is not a windows application, like a game for example?

If the ControlID does not show via the "AutoIt Window Info" tool, then you might not be able to use ControlSend reliably. Not all applications have controls. Some apps have non-standard controls. Non-standard controls may not work with ControlSend.

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
Share on other sites

If the ControlID does not show via the "AutoIt Window Info" tool, then you might not be able to use ControlSend reliably. Not all applications have controls. Some apps have non-standard controls. Non-standard controls may not work with ControlSend.

What is the best way to send a key to that application without controlid?

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...