yalag Posted January 4, 2007 Share Posted January 4, 2007 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 More sharing options...
herewasplato Posted January 4, 2007 Share Posted January 4, 2007 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. ThanksOnly 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 More sharing options...
yalag Posted January 4, 2007 Author Share Posted January 4, 2007 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. What do you mean? Even the docs uses it like this, check http://www.autoitscript.com/autoit3/docs/f...ControlSend.htm Link to comment Share on other sites More sharing options...
Zedna Posted January 4, 2007 Share Posted January 4, 2007 What do you mean? Even the docs uses it like this, checkhttp://www.autoitscript.com/autoit3/docs/f...ControlSend.htmYou must specify controlID in HelpFile example "Edit1" Resources UDF Â ResourcesEx UDF Â AutoIt Forum Search Link to comment Share on other sites More sharing options...
yalag Posted January 4, 2007 Author Share Posted January 4, 2007 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? Link to comment Share on other sites More sharing options...
herewasplato Posted January 4, 2007 Share Posted January 4, 2007 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 More sharing options...
yalag Posted January 4, 2007 Author Share Posted January 4, 2007 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 More sharing options...
Helge Posted January 4, 2007 Share Posted January 4, 2007 What is the best way to send a key to that application without controlid?Without a doubt...using the keyboard. Link to comment Share on other sites More sharing options...
herewasplato Posted January 4, 2007 Share Posted January 4, 2007 What is the best way to send a key to that application without controlid?Perhaps Send(). [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
yalag Posted January 5, 2007 Author Share Posted January 5, 2007 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... Link to comment Share on other sites More sharing options...
yalag Posted January 5, 2007 Author Share Posted January 5, 2007 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? 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