Help❓ Moving Mouse In Game

Posts 1–10 of 10 · Page 1 of 1
❓ Moving Mouse In Game
ok like it says i was need help moving the mouse in game when neither of these work!?

SetCursorPos( 650, 152)

mouse_event(MOUSEEVENTF_MOVE, 0, 0, 0, 0)

please help? and thanks in advanced!
You can use the built-in Cursor class to move the cursor.

Code:
Cursor.Position =  New Point(X,Y)
You can create a simple procedure for it:

Code:
Sub MoveMouse(ByVal X As Integer, ByVal Y As Integer)
Cursor.Position = New Point(X,Y)
End Sub
You can then use it anywhere in your class:

Code:
'Move the cursor to the top left corner.
MoveMouse(0,0)
Quote Originally Posted by Hassan View Post
You can use the built-in Cursor class to move the cursor.

Code:
Cursor.Position =  New Point(X,Y)
You can create a simple procedure for it:

Code:
Sub MoveMouse(ByVal X As Integer, ByVal Y As Integer)
Cursor.Position = New Point(X,Y)
End Sub
You can then use it anywhere in your class:

Code:
'Move the cursor to the top left corner.
MoveMouse(0,0)

This is very good advice it works well for most things but not for what I need to do. I should have been a little more specific I need to move the mouse in a directx video game so I need to mimic actual mouse/keyboard input. does anyone know how I can do this or point me in the right direction?
Quote Originally Posted by Qizzle15401 View Post
This is very good advice it works well for most things but not for what I need to do. I should have been a little more specific I need to move the mouse in a directx video game so I need to mimic actual mouse/keyboard input. does anyone know how I can do this or point me in the right direction?
How are you doing it exactly ? Can you post all of your code ?


---------- Post added at 08:44 PM ---------- Previous post was at 08:43 PM ----------

Quote Originally Posted by Qizzle15401 View Post
This is very good advice it works well for most things but not for what I need to do. I should have been a little more specific I need to move the mouse in a directx video game so I need to mimic actual mouse/keyboard input. does anyone know how I can do this or point me in the right direction?
How are you doing it exactly ? Can you post all of your code ?
Quote Originally Posted by Hassan View Post


How are you doing it exactly ? Can you post all of your code ?


---------- Post added at 08:44 PM ---------- Previous post was at 08:43 PM ----------





How are you doing it exactly ? Can you post all of your code ?

I'm currently not able to post my code since I'm not home and I'm on my phone but I'm just calling

SetCursorPos( 650, 152)

mouse_event(MOUSEEVENTF_MOVE, 0, 0, 0, 0)

When a hot key is pressed and it seems to work anywhere in windows or any other app just doesn't more the mouse in game. I will post my code when I'm home again but it just simply calls on the above when a hot key is pressed but is there anything that mimics actual user input or is mouse event as close as I'm going to get?
Uhh have you hooked the game, you could always call on the windows api like we did in vb6
Quote Originally Posted by Null::Void View Post
Uhh have you hooked the game, you could always call on the windows api like we did in vb6
I have not? Could you maybe explain simply the steps to that process are? I don't need a full source or anything because I don't wanna be spoon fed :P but maybe you could just help me get started with the steps! Thanks!

And would I use sendmessage once the game/application was hooked?
Depends on if the Anti hack system on the game allows for that. I remember that on MapleStory i just sent KeyStrokes/Mouse movements straight to windows and then windows would pass that onto the game so no bypass was needed because it emulated real keystrokes.

If you really need to hook the game i would lookup Vb.net Injection what game is it?
Quote Originally Posted by Null::Void View Post
Depends on if the Anti hack system on the game allows for that. I remember that on MapleStory i just sent KeyStrokes/Mouse movements straight to windows and then windows would pass that onto the game so no bypass was needed because it emulated real keystrokes.

If you really need to hook the game i would lookup Vb.net Injection what game is it?

So there's no way to fake real mouse and keyboard input so that the game doesn't know the diff? Like sending they keys from such a level that the game thinks its actually the keyboard or mouse doing it? But it's Combat arms but I wanted to create some stuff for d3 so I figured I'd need to learn how to fake this stuff now. Lol
mouse_event is deprecated, maybe that's why it doesn't work in-game (eg. Anti-Cheat disables that API). Try using SendInput instead.
Posts 1–10 of 10 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us