hello guys , can someone help me with DLL things ? i didnt use ahk since a long time
can u post a script of moving mouse to a position using dll ?
DLL Related - MouseMove [GAME]
-
- Posts: 8
- Joined: 19 Jun 2016, 07:09
Re: DLL Related - MouseMove [GAME]
Why do you need dll for mouse move?
Please use [code][/code] when posting code!
Keyboard: Logitech G PRO - Mouse: Logitech G502 LS - OS: Windows 10 Pro 64 Bit - AHK version: 1.1.33.09
Keyboard: Logitech G PRO - Mouse: Logitech G502 LS - OS: Windows 10 Pro 64 Bit - AHK version: 1.1.33.09
-
- Posts: 8
- Joined: 19 Jun 2016, 07:09
Re: DLL Related - MouseMove [GAME]
i want to automate a strategy game but mousemove does not seem to work.
-
- Posts: 8
- Joined: 19 Jun 2016, 07:09
Re: DLL Related - MouseMove [GAME]
so many thanks flipador
-
- Posts: 8
- Joined: 19 Jun 2016, 07:09
Re: DLL Related - MouseMove [GAME]
tried it before , but it keeps moving the mouse every time by %x% unit , i just want to move mouse straight to some x axis and y axis, then move it to another location
Re: DLL Related - MouseMove [GAME]
show what youve tried, what doesnt work and how it doesnt work. otherwise, people will have to keep guessing, which is rather... wasteful.
Re: DLL Related - MouseMove [GAME]
You can try something like this:
Code: Select all
Move(X, Y)
{
DllCall("User32.dll\mouse_event", "UInt", 1, "UInt", -9999, "UInt", -9999, "UInt", 0, "UPtr", 0)
DllCall("User32.dll\mouse_event", "UInt", 1, "UInt", X, "UInt", Y, "UInt", 0, "UPtr", 0)
}
MsgBox % Move(100, 50)
MsgBox % Move(100, 50)
MsgBox % Move(500, 350)
MsgBox % Move(500, 350)
MsgBox % Move(750, 500)
MsgBox % Move(750, 500)
-
- Posts: 8
- Joined: 19 Jun 2016, 07:09
Re: DLL Related - MouseMove [GAME]
Thank you , ill try it
Re: DLL Related - MouseMove [GAME]
@Flipeador I like your script, but it rendered this error: Call to nonexistent function. Could you please help me?
Who is online
Users browsing this forum: ReyAHK and 69 guests