ronmage Posted February 5, 2011 Share Posted February 5, 2011 What i am trying to do is get it so i can send keystroke to a window with out it being the main window such as have 2 installs going and have it input the CD-keys. i was also wondering if you can do the same thing with a mouse click? does not have to have any z or y just a simple click. Link to comment Share on other sites More sharing options...
Skitty Posted February 6, 2011 Share Posted February 6, 2011 What i am trying to do is get it so i can send keystroke to a window with out it being the main window such as have 2 installs going and have it input the CD-keys. i was also wondering if you can do the same thing with a mouse click? does not have to have any z or y just a simple click. Do you have an example? Your post is a little confusing... Maybe you might wan't to activate each window when the keys are being sent. Winactivate("the window") Link to comment Share on other sites More sharing options...
ronmage Posted February 7, 2011 Author Share Posted February 7, 2011 what i am looking to do is make it so i can send a key to a windows with out making it the active window. Link to comment Share on other sites More sharing options...
Tvern Posted February 7, 2011 Share Posted February 7, 2011 What you ask for sounds like ControlSend, but also hace a look at the other Control...() functions as they might be more appropriate. The information about the controls you want to interact with can be retrieved with the AU3Info tool. (Ctrl+F6 in scite if you have the complete package) Link to comment Share on other sites More sharing options...
ronmage Posted February 7, 2011 Author Share Posted February 7, 2011 well that is what i want to do, however i did it with notepad and it worked. but with the other window, it is not seeing much with window info. so what it is doing is changing the title of the program to what i enter as the text, is there anyway to just send it as if it was a keyboard? Link to comment Share on other sites More sharing options...
ronmage Posted February 7, 2011 Author Share Posted February 7, 2011 (edited) Ok i got it to work. ty but 1 more question how do you send enter? i think you use ControlCommand but i don't see enter as an opt. Edited February 7, 2011 by ronmage Link to comment Share on other sites More sharing options...
Tvern Posted February 7, 2011 Share Posted February 7, 2011 Try ControlSend() with "{Enter}" as the string. There is probably another way to do it, but it's hard for me to tell without access to the application. Link to comment Share on other sites More sharing options...
ronmage Posted February 7, 2011 Author Share Posted February 7, 2011 that worked ty. and last thing i sware lol. but i got click to work by using this ControlClick("test - pant", "", "") and that will use Primary click just fine, but i am trying to get secondary click to work. i see this "see below" under the help but i am not sure how to format it so that it will do the same thing as click but with the secondary click ControlClick ( "title", "text", controlID [, button [, clicks [, x [, y ]]]] ) Link to comment Share on other sites More sharing options...
Tvern Posted February 8, 2011 Share Posted February 8, 2011 ControlClick("test - pant", "", "","secondary") is the correct syntax, but you might need to specify a description of the control. (Checking for a CLASSNN using the au3Info tool is a good place to start) 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