Jump to content

catching mouse events


 Share

Recommended Posts

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

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 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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...