Jump to content

Mouse Speed on Custom Mousemove function


Amox
 Share

Recommended Posts

Hello , it is possible to add mousemove "speed feature" on custom function?

#include <Misc.au3>
#RequireAdmin

Global $x , $y


$x = 0
$y = 0

$hDLL = DllOpen("user32.dll")

HotKeySet("{F6}", "_Exit")



While 1
   If _IsPressed("02", $hDLL) Then
$value = MousemovePlus($x, $y)
EndIf
WEnd

Func MousemovePlus($x1, $y1)
"Not completed yet...."
EndFunc
  

Func _Exit()
      DllClose($hDLL)
      Exit
   EndFunc
Edited by Amox
Link to comment
Share on other sites

  • Moderators

Why not use MouseMove, which has the speed functionality already built in? :huh2:

Edit: Or better yet, why not explain what you want to do, so we can show the umpteen ways it can be done better than by using MouseMove ;)

Edited by JLogan3o13

"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

Why not use MouseMove, which has the speed functionality already built in? :huh2:

Edit: Or better yet, why not explain what you want to do, so we can show the umpteen ways it can be done better than by using MouseMove ;)

For some reasons like different coordinate system, It can not done with mousemove function , if you know ways to make mousemove function reads from custom function it will be very helpful

Edited by Amox
Link to comment
Share on other sites

For some reasons like different coordinate system, It can not done with mousemove function , if you know ways to make mousemove function reads from custom function it will be very helpful

What function do you want to read with your mouse?

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

I want read the coordinates from this function!?
Func MousemovePlus($x1, $y1)
"Not completed yet...."
EndFunc

Lets put it another way - What is the control you wish to interact with? Saying a place to click the mouse is NOT acceptable. Is it a button? Checkbox? Text field? That is what we are getting at.

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