rupturex Posted February 8, 2009 Posted February 8, 2009 Hello all!! I am new here....still learning the ropes. I have been googling for hours and searching here but have yet to find a simple script to send left click mouse to an inactive window. Is this possiable? If so can anybody give me a sample script? Thanks! Love!
ajag Posted February 8, 2009 Posted February 8, 2009 (edited) Hi, I guess you just want to activate an inactive window (by left-clicking)? If yes, you don't have to do that. Test this to activate an inactive Nodepad-Window with an opened file "Test.txt": WinActivate("Test.txt - Editor") A-Jay Edited February 8, 2009 by ajag Rule #1: Always do a backup Rule #2: Always do a backup (backup of rule #1)
rupturex Posted February 8, 2009 Author Posted February 8, 2009 Hi, I guess you just want to activate an inactive window (by left-clicking)? If yes, you don't have to do that. Test this to activate an inactive Nodepad-Window with an opened file "Test.txt": WinActivate("Test.txt - Editor") A-Jay Sorry, let me clarify....., its a game I play, I want to be able to left click inside the game while its minimized....and browse the internet at the same time.
ajag Posted February 8, 2009 Posted February 8, 2009 (edited) But when the window is minimized then there is no area where you can click. And when you click on an minimized window (at the taskbar), it become resized and will popup an then it is activated. Edited February 8, 2009 by ajag Rule #1: Always do a backup Rule #2: Always do a backup (backup of rule #1)
z0mgItsJohn Posted February 8, 2009 Posted February 8, 2009 Here's an example.. hope it helps Source : Example.Au3 Opt ('WinTitleMatchMode','2') ; Helps With Getting The Window Information... $Title = '' ; The Name Of The Game... $Full = WinGetTitle ($Title) ; Get The Full Title.. $HWnD = WinGetHandle ($Full) ; Get The Handle $iButton = '' ; Button The Mouse Will Click I.E. "Left Or Right" $iClicks = '' ; The Number Of Times To Click $iX = '' ; The "X" Pos For The Mouse To Click $iY = '' ; The "Y" Pos For The Mouse To Click If IsHWnD ($HWnD) And WinExists ($Full) <> '0' Then ; Win Check ControlClick ($HWnD, '','', $iButton, $iClicks, $iX, $iY) ; Clicking The Window While Its Minmized EndIf - John Latest Projects :- New & Improved TCP Chat
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