Jump to content

Recommended Posts

Posted (edited)

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
  • Moderators
Posted (edited)

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!

Posted (edited)

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
Posted (edited)

What function do you want to read with your mouse?

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




			
				


	Edited  by Amox
	
	

			
		

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
  • Recently Browsing   0 members

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