Sign in to follow this  
Followers 0
yalag

[Bug] ControlSend is broken in Vista

11 posts in this topic

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

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites

You must specify controlID in HelpFile example "Edit1"

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

Share this post


Link to post
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]

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

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

Without a doubt...using the keyboard.

Share this post


Link to post
Share on other sites

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

Perhaps Send().

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

Share this post


Link to post
Share on other sites

Perhaps Send().

you cant specify which application to send to, come on guys....theres gotta be a way to send a key to an application...

Share this post


Link to post
Share on other sites

something is broke... this works in 3.2.1.2... stay tuned...

Lar.

Thank you for the information, is there any way to get the version 3.2.1.2 that you speak of?

Share this post


Link to post
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
Sign in to follow this  
Followers 0