Jump to content

Recommended Posts

Yeh...but...I probably described it wrong....I have got 2 opened windowses (2 programs)...in 1 will work control click (I want this win to be unfocused all the time) because in the second window I want to write something...and always when the control click start....my focused win(to typing) is unfocused. How to solve it ? 

I tryed this:

$activeWindow = WinGetHandle("[ACTIVE]")
while 1

 ...but it isnt 100%

PS: Sorry for my english

Edited by ssamko
Link to post
Share on other sites

Looking at the code in the 3rd post, I'm unsure why you have presented us with an infinite loop. Here's a small example of switching focus between two windows - if it helps.

; Run the Windows Calculator.

; Wait for the calculator to become active with a timeout of 10 seconds.
WinWaitActive("[CLASS:CalcFrame]", "", 10)

; Run Notepad

; Wait for notepad to become active with a timeout of 10 seconds.
WinWaitActive("[CLASS:Notepad]", "", 10)

; Slow down the script

; Set focus to the calculator


; Set focus to the notepad


; Close Notepad


; Close the Windows calculator.


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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...