ssamko Posted August 24, 2015 Share Posted August 24, 2015 Hello ! I just want to ask you....it is possible to use control click on unfocused window ? If yes...how ? Thnx ! Link to comment Share on other sites More sharing options...
JohnOne Posted August 24, 2015 Share Posted August 24, 2015 The exact same way you do it on a focused window. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
ssamko Posted August 24, 2015 Author Share Posted August 24, 2015 (edited) 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 ControlClick($title,"","","left",1,$x,$y) WinActivate($activeWindow) WEnd ...but it isnt 100%PS: Sorry for my english Edited August 24, 2015 by ssamko Link to comment Share on other sites More sharing options...
JohnOne Posted August 24, 2015 Share Posted August 24, 2015 If the target window activates after a ControlClick, there is not much you can do about it I'm afraid, apart from what you already have. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
czardas Posted August 25, 2015 Share Posted August 25, 2015 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. Run("calc.exe") ; Wait for the calculator to become active with a timeout of 10 seconds. WinWaitActive("[CLASS:CalcFrame]", "", 10) ; Run Notepad Run("notepad.exe") ; Wait for notepad to become active with a timeout of 10 seconds. WinWaitActive("[CLASS:Notepad]", "", 10) ; Slow down the script Sleep(1000) ; Set focus to the calculator WinActivate("[CLASS:CalcFrame]") Sleep(1000) ; Set focus to the notepad WinActivate("[CLASS:Notepad]") Sleep(1000) ; Close Notepad WinClose("[CLASS:Notepad]") Sleep(1000) ; Close the Windows calculator. WinClose("[CLASS:CalcFrame]") operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now