Sign in to follow this  
Followers 0
ronmage

non main window

9 posts in this topic

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.

Share this post


Link to post
Share on other sites



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")

Things that I've done..

Icon Resource Editor: icon resource editor 

AutoIt Piano: a piano

AutoIt Unlocker: unlocks files when you want to delete them

Colorful tooltips: a wrapper for the tool tips UDF

Rouge GoogleBot: a full screen animation

ASciTE text editor: a text editor written in autoit

Warning: Posts by this user are subject to change or may disappear without notice.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 by ronmage

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 ]]]] )

Share this post


Link to post
Share on other sites

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)

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