Hi!
How i can set the mouse position??
Greetings!!![]()
Professional Software Development Tools
Hi!
How i can set the mouse position??
Greetings!!![]()
ams cant set the mouse position, but you can use the sendkeys plugin to simulate a mouse click
or i could make you a small addon (with autoit) that will actualy move the mouse cursor
Open your eyes to Narcissism, Don't let her destroy your life!!
here, the example is very easy to use the code is in the "Move" button
you can set the position and speed that the mouse moves, you can use raw numbers
ie:
output enhanced with AMS Code PrettyCode:sX = 100 sY = 100 speed = 0 result = File.Run( "AutoPlay\\Docs\\MouseMove.exe", sX..' '..sY..' '..speed, "", SW_SHOWNORMAL, false);
but if you use inputs like i did in this example then you must use "String.ToNumber"
ie:
output enhanced with AMS Code PrettyCode:sX = Input.GetText( "x"); sY = Input.GetText( "y"); speed = Input.GetText( "speed"); sX = String.ToNumber(sX); sY = String.ToNumber(sY); speed = String.ToNumber(speed); result = File.Run( "AutoPlay\\Docs\\MouseMove.exe", sX..' '..sY..' '..speed, "", SW_SHOWNORMAL, false);
hope this helps![]()
FYI, this will not work on win 95, 98, 98se, or ME,
Last edited by RizlaUK; 02-01-2009 at 11:35 AM.
Open your eyes to Narcissism, Don't let her destroy your life!!
Or you can use this which will work on all platforms
Code:nResult = DLL.CallFunction(_SystemFolder.."\\User32.dll", "SetCursorPos", "25, 100", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
handy to know, cheers worm![]()
i should really read up on the user32.dll as i always seem to go the hard way about things
Open your eyes to Narcissism, Don't let her destroy your life!!