Lyra Posted July 15, 2004 Share Posted July 15, 2004 I tried to write an application that will save the pixel color pointed by the mouse cursor to a file once I click the left mouse button. Does anybody know any function will capture a mouse click event (like the onMouseClick in Visual C++), so that I can do something like this: while 1 if is_mouse_click() = true $pos = MouseGetPos ( ) $color = PixelGetColor ( $pos[0] , $pos[1] ) FileWrite("myFile", $color); EndIf WEnd Or even better is to have something like HotKeySet() [unfortunately HotKeySet doesn't take mouse click as "hot key"]. Thanks, Link to comment Share on other sites More sharing options...
emmanuel Posted July 15, 2004 Share Posted July 15, 2004 AutoIt doesn't do that... I'd say search for it, but the forum search is less than stellar. The reasons for this involve mouse hooks and fears of people using autoit to hack and make keyloggers/mouse loggers and the resistance to having dll's that need to be installed for use and more... That's just what I've gathered from the other times people have asked similar questions... "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
Lyra Posted July 19, 2004 Author Share Posted July 19, 2004 Thanks. Link to comment Share on other sites More sharing options...
emmanuel Posted July 19, 2004 Share Posted July 19, 2004 you could set a hotkey to get the mouse pos though. "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
Lyra Posted July 19, 2004 Author Share Posted July 19, 2004 Good idea, thanks. 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