psychosis43 Posted May 22, 2012 Share Posted May 22, 2012 (edited) The default dpi on my mouse is 1000 (too complicated to change). I like it to be fast because of my widescreen monitor, however it is too fast for drawing in microsoft paint. I would like to perform an action where if left click is down, the mouse locks for an instance than unlocks. I figured this would apply more detail to my drawing by keeping the mouse steady. Is this what Trap mouse would be used for? Or perhaps a block function? And can you use mouse_event for this task? It should be fairly simple to make, im just confused XD Edited May 23, 2012 by psychosis43 Link to comment Share on other sites More sharing options...
psychosis43 Posted May 23, 2012 Author Share Posted May 23, 2012 Bump, I can explain better if anyone needs Link to comment Share on other sites More sharing options...
psychosis43 Posted May 23, 2012 Author Share Posted May 23, 2012 (edited) Edit: double post, sorry Edited May 23, 2012 by psychosis43 Link to comment Share on other sites More sharing options...
JScript Posted May 23, 2012 Share Posted May 23, 2012 In less than an hour you "bump" your own topic?! http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! Link to comment Share on other sites More sharing options...
psychosis43 Posted May 23, 2012 Author Share Posted May 23, 2012 My apologies Link to comment Share on other sites More sharing options...
psychosis43 Posted May 23, 2012 Author Share Posted May 23, 2012 I edited the topic for a better explanation, any help? Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted May 23, 2012 Moderators Share Posted May 23, 2012 Is this what Trap mouse would be used for? Or perhaps a block function? And can you use mouse_event for this task?It should be fairly simple to make, im just confused XDTRY IT. Try writing some code, and then post it here if you run into trouble. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Zedna Posted May 23, 2012 Share Posted May 23, 2012 (edited) For trapping of cursor look at ClipCursor API functionhttp://msdn.microsoft.com/en-us/library/windows/desktop/ms648383%28v=vs.85%29.aspxI'm sure there are some AU3 examples here on the forum just use Search ...EDIT: Now I see that this API is implemented in standard _MouseTrap() UDF in standard Misc.au3 include file. Edited May 23, 2012 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
psychosis43 Posted May 23, 2012 Author Share Posted May 23, 2012 (edited) Thanks, and can I add a few things to the parameter such as how long it's trapped, which coords to trap it and make it universal(not just desktop applications but windowed applications)? If I want to add the coords of the specified trap to anywhere I click on my screen would it be (0,0)? Do I also have to include my screen resolution as well, or is this irrelevant? Would starting out the main functions of the script be something like: using _isPressed() or leftdown then _MouseTrap()? Edited May 23, 2012 by psychosis43 Link to comment Share on other sites More sharing options...
Bert Posted May 23, 2012 Share Posted May 23, 2012 I found some info on msdn concerning the mouse. I haven't had too much time to review it http://msdn.microsoft.com/en-us/library/ms645533%28v=vs.85%29 The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Bert Posted May 23, 2012 Share Posted May 23, 2012 more helpful stuff from Microsoft http://technet.microsoft.com/en-us/library/cc978664.aspx The Vollatran project My blog: http://www.vollysinterestingshit.com/ 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