ray306 Posted January 7, 2007 Share Posted January 7, 2007 Does anyone know if there is a way to trap mouse events in autoit? I have no trouble catching the window events and I can catch the mouse events via javascript within the HTML. What I want to do is be able to catch the events in autoit and subsequently act on them there. Perhaps I'm just having a brain freeze Thanks Ray Link to comment Share on other sites More sharing options...
AzKay Posted January 7, 2007 Share Posted January 7, 2007 _IsPressed() ? # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
ray306 Posted January 7, 2007 Author Share Posted January 7, 2007 Thanks for the reply AzKay_IsPressed() ?Perhaps I was not specific enough in my description. I need to be able to find out what <form> was clickedon an HTML page. Thanks againRay Link to comment Share on other sites More sharing options...
Xand3r Posted January 7, 2007 Share Posted January 7, 2007 (edited) hmm not sure about this but i think something like this could work: $window="name of the window" $array[1000] $i=0 while(1) if _ispressed(01) then $focus=ControlGetFocus($window) $array[$i]=$focus $i=$i+1 endif wend Edited January 7, 2007 by alexmadman Only two things are infinite, the universe and human stupidity, and i'm not sure about the former -Alber EinsteinPractice makes perfect! but nobody's perfect so why practice at all?http://forum.ambrozie.ro Link to comment Share on other sites More sharing options...
xcal Posted January 7, 2007 Share Posted January 7, 2007 Maybe this will help? #include <misc.au3> HotKeySet('{esc}', 'quit') While 1 Sleep(100) If _IsPressed('02') Then rclick() WEnd Func rclick() $win = WinGetTitle('') MsgBox(0, '', 'Do something with this window:' & @CRLF & @CRLF & $win) EndFunc Func quit() Exit EndFunc How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
AzKay Posted January 8, 2007 Share Posted January 8, 2007 He wants to know which form was clicked :3 # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
xcal Posted January 8, 2007 Share Posted January 8, 2007 Oh sorry, I was thinking form, like created gui type form. How To Ask Questions The Smart Way 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