Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

How to pick between 2 windows ?

$
0
0
Basic send example :


msgbox (1,"Ready ?","Send 1 every  3.5 ")
While 1
ControlSend("[CLASS:GxWindowClass]", "" , "" , "1")
Sleep(3500 )
WEnd

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)
opt("WinSearchChildren",1)
$handle = ControlGetHandle("[CLASS:GxWindowClass]", "", "")
MsgBox(1,"Ready?","")
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 ?

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>