Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Help] C++ SetCursorPos() function
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
sloppy
Expert Cheater
Reputation: 0

Joined: 17 Aug 2008
Posts: 123

PostPosted: Sat Oct 25, 2008 10:27 am    Post subject: Reply with quote

What he said. ^

You didn't hook hop SetCursorPos as mentioned earlier..

Code:
DWORD _SCP = (DWORD)GetProcAddress(LoadLibrary(_T("user32.dll")), "SetCursorPos") + 5;

__declspec(naked) BOOL WINAPI _SetCursorPos(int X, int Y)
{
    __asm
    {
        mov    edi, edi
        push   ebp
        mov    ebp, esp
        jmp    dword ptr ds:[_SCP]
    }
}

Add that in and replace SetCursorPos with _SetCursorPos in your main().
Back to top
View user's profile Send private message
tdenisenko
Grandmaster Cheater
Reputation: 0

Joined: 23 Oct 2007
Posts: 799
Location: Turkey

PostPosted: Sat Oct 25, 2008 10:44 am    Post subject: Reply with quote

HOW COULDNT I THINK THAT !!!

thank you so much and others for helping
it works now...

thanks to lurc too its a good loop script

THANK YOU SO MUCH HAHA

18 posts? lol?

_________________
I am learning C++ and ASM and making trainers!
My Last Chaos Trainer!
LC Trainer by tdenisenko
Back to top
View user's profile Send private message
--Pillboi--
Grandmaster Cheater Supreme
Reputation: 0

Joined: 06 Mar 2007
Posts: 1383
Location: I don't understand the question. Is this a 1 to 10 thing?

PostPosted: Sat Oct 25, 2008 11:28 am    Post subject: Reply with quote

lurc wrote:
Holy shit, thats a nightmare...

Yes, your way is better. Wink But, hey, I'm rusty, and even when I wasn't rusty, I was still a bad coder. I forgot to initialize my array properly. Razz

_________________

Enter darkness, leave the light, Here be nightmare, here be fright...
Earth and Water, Fire and Air. Prepare to meet a creature rare.
Enter now if you dare, Enter now the dragon's lair.
Back to top
View user's profile Send private message
Dami
Master Cheater
Reputation: 0

Joined: 23 Oct 2006
Posts: 336

PostPosted: Sun Oct 26, 2008 6:37 am    Post subject: Reply with quote

One question.
Does this all happen in maplestory even if it is minimized.
or does "_SetCursorPos(pt.x, pt.y);" just move your mouse itself, where ever you are?

Just wanting to use this for background botting Wink
Back to top
View user's profile Send private message
Snootae
Grandmaster Cheater
Reputation: 0

Joined: 16 Dec 2006
Posts: 969
Location: --->

PostPosted: Sun Oct 26, 2008 8:09 am    Post subject: Reply with quote

Quote:
One question.
Does this all happen in maplestory even if it is minimized.
or does "_SetCursorPos(pt.x, pt.y);" just move your mouse itself, where ever you are?

Just wanting to use this for background botting Wink


well, no, think about it, it moves your mouse cursor

_________________
Back to top
View user's profile Send private message
tdenisenko
Grandmaster Cheater
Reputation: 0

Joined: 23 Oct 2007
Posts: 799
Location: Turkey

PostPosted: Sun Oct 26, 2008 10:24 am    Post subject: Reply with quote

Dami3n wrote:
One question.
Does this all happen in maplestory even if it is minimized.
or does "_SetCursorPos(pt.x, pt.y);" just move your mouse itself, where ever you are?

Just wanting to use this for background botting Wink


i should knew that you stole my source :/

_________________
I am learning C++ and ASM and making trainers!
My Last Chaos Trainer!
LC Trainer by tdenisenko
Back to top
View user's profile Send private message
Dami
Master Cheater
Reputation: 0

Joined: 23 Oct 2006
Posts: 336

PostPosted: Sun Oct 26, 2008 11:44 am    Post subject: Reply with quote

tdenisenko wrote:
Dami3n wrote:
One question.
Does this all happen in maplestory even if it is minimized.
or does "_SetCursorPos(pt.x, pt.y);" just move your mouse itself, where ever you are?

Just wanting to use this for background botting Wink


i should knew that you stole my source :/


didnt, my c# is better until this can be ran on background
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites