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 


bypassed SetCursorPos dll
Goto page Previous  1, 2
 
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
andonrui
Cheater
Reputation: 0

Joined: 22 Apr 2008
Posts: 33

PostPosted: Sun Nov 02, 2008 7:33 am    Post subject: Reply with quote

rapion124 wrote:
remove "return 0."


removed and compiled but trying to dllcall the functions none work any idea why?

DllCall("dllop.dll\SCP", int, 350, int, 258)
DllCall("dllop.dll\SetCurPos", int, 350, int, 258)
DllCall("dllop.dll\SetCursorPos", int, 350, int, 258)

anything to do with the return 0; ?
Back to top
View user's profile Send private message
Anden100
Grandmaster Cheater
Reputation: 0

Joined: 20 Apr 2007
Posts: 668

PostPosted: Sun Nov 02, 2008 7:39 am    Post subject: Reply with quote

Modified version of 4ng3licDew's getpixel bypass, should work:
Code:
HINSTANCE hgInst; // Instance of GDI32 DLL
DWORD gpDLLFunc;

// Load gdi32 DLL
hgInst = LoadLibrary("user32.dll");

gpDLLFunc = NULL;
if (hgInst != NULL) {
   // Get function pointer of GetPixel
   gpDLLFunc = (DWORD)GetProcAddress(hgInst, "SetCursorPos");
   if (gpDLLFunc != NULL) gpDLLFunc += 5;
}

__declspec(naked) BOOL WINAPI SCP(int x, int y)
{
   __asm
   {
      mov  edi, edi
      push ebp
      mov  ebp, esp
      jmp dword ptr ds:[gpDLLFunc]
   }
}

(dont look at the comments, they arent right, since they are written for GetPixel bypass...[/code]
Back to top
View user's profile Send private message
Snootae
Grandmaster Cheater
Reputation: 0

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

PostPosted: Sun Nov 02, 2008 7:45 am    Post subject: Reply with quote

Quote:
I modified it, check it now please, at my friends comp, no compiler...


what?

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

Joined: 20 Apr 2007
Posts: 668

PostPosted: Sun Nov 02, 2008 7:47 am    Post subject: Reply with quote

Snootae wrote:
Quote:
I modified it, check it now please, at my friends comp, no compiler...


what?


I edited my post from before..., try this: made it from 4ng3licDew's GetPixel bypass...

Code:
HINSTANCE hgInst; // Instance of GDI32 DLL
DWORD gpDLLFunc;

// Load gdi32 DLL
hgInst = LoadLibrary("user32.dll");

gpDLLFunc = NULL;
if (hgInst != NULL) {
   // Get function pointer of GetPixel
   gpDLLFunc = (DWORD)GetProcAddress(hgInst, "SetCursorPos");
   if (gpDLLFunc != NULL) gpDLLFunc += 5;
}

__declspec(naked) BOOL WINAPI SCP( int x, int y)
{
   __asm
   {
      mov  edi, edi
      push ebp
      mov  ebp, esp
      jmp dword ptr ds:[gpDLLFunc]
   }
}
Back to top
View user's profile Send private message
andonrui
Cheater
Reputation: 0

Joined: 22 Apr 2008
Posts: 33

PostPosted: Tue Nov 04, 2008 3:35 am    Post subject: Reply with quote

Hi,

i need to export the functions so i need to add this?

exports SetCursorPos;

begin
end.
Back to top
View user's profile Send private message
Snootae
Grandmaster Cheater
Reputation: 0

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

PostPosted: Tue Nov 04, 2008 6:31 am    Post subject: Reply with quote

Quote:
I edited my post from before..., try this: made it from 4ng3licDew's GetPixel bypass...


1. I dont need it
2. His way is stupid
3. The way I posted works

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

Joined: 22 Apr 2008
Posts: 33

PostPosted: Thu Nov 06, 2008 10:31 am    Post subject: Reply with quote

how do i export before compiling the dll?

thanks
Back to top
View user's profile Send private message
Nalik
How do I cheat?
Reputation: 0

Joined: 09 Oct 2019
Posts: 6

PostPosted: Wed Oct 09, 2019 4:38 am    Post subject: Reply with quote

Unfortunately, this stopped working in the latest Windows 10 update. The program crashes.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 160

Joined: 25 Jan 2006
Posts: 8160
Location: 127.0.0.1

PostPosted: Wed Oct 09, 2019 6:09 pm    Post subject: This post has 1 review(s) Reply with quote

This topic is 11 years old, please look at dates before posting.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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