Sign in to follow this  
Followers 0
ExElNeT

Send key to non active windows

13 posts in this topic

Hi! Is it possible to send keys to a non active window? So would it be possible to send several different keys to a bunch of minimized windows?

Thanks in advance

Share this post


Link to post
Share on other sites



HI,

yes. Have a look at the ControlSend and all Control commands.

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

that reply was inhuman ... thanks a lot ... you might get a price for fastanswering.

Share this post


Link to post
Share on other sites

I have one more question after reading the stuff.

Both windows have the same name, how can i select exactly one of them?

thx

Share this post


Link to post
Share on other sites

I have one more question after reading the stuff.

Both windows have the same name, how can i select exactly one of them?

thx

Is there any "Visible" text under the AutoInfo tool that make them unique?

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

nothing ;/ i know in unix everywindow has an id and many more unique stuff ...

any odther idea?

Share this post


Link to post
Share on other sites

nothing ;/ i know in unix everywindow has an id and many more unique stuff ...

any odther idea?

Hmm, are there any Controls on them that are different than the others but always on that particular window?

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

nothing ;/ i know in unix everywindow has an id and many more unique stuff ...

any odther idea?

well, there are several different wasy autoit can referance windows,

Handles

Classnames

specific text

set names

so are the class names different?

Share this post


Link to post
Share on other sites

Both windows have the same name, how can i select exactly one of them?

If 1 window arrives before the other, then use WinSetTitle() to make it different to the other window that is yet to come.

Share this post


Link to post
Share on other sites

everything autoitinfo shows is exactly the same

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

If 1 window arrives before the other, then use WinSetTitle() to make it different to the other window that is yet to come.

yes then get the handles in a variable and make refernces to the window with that Edited by Paulie

Share this post


Link to post
Share on other sites

HI,

then look as MHz said at the time when the first appears. Or you can set the tilte of the first window to another one. Add 1 and end ...

Maybe it even doesn't matter what you are doing in which window, cause they are equal. :D

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

winsettitle did the trick thx again :=)

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