Sign in to follow this  
Followers 0

How to pick between 2 windows ?

2 posts in this topic

Basic send example :

msgbox (1,"Ready ?","Send 1 every 3.5 ")

While 1

ControlSend("[CLASS:GxWindowClass]", "" , "" , "1")

Sleep(3500 )


This works but when you open 2 windows it only clicks on the last one that was active.

So I tried getting the handle and using the handle in the title.

Opt("WinTitleMatchMode", 3)


$handle = ControlGetHandle("[CLASS:GxWindowClass]", "", "")


ControlSend($handle, "" , "" , "1")

It still only sends on the last window that was active ...

The point of this is to simply send text to a window that is currently not active

Help plz ?

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