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 


[c++]setCursorPos & Dxwnd

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Bizarro
I post too much
Reputation: 0

Joined: 01 May 2007
Posts: 2648

PostPosted: Sat Jun 14, 2008 7:41 am    Post subject: [c++]setCursorPos & Dxwnd Reply with quote

Im having trouble to correctly relocate my cursor to a specific position on the screen(eg set cursor to username,password box, enter text).

it is working perfectly fine on both of my computer
(both xp home, one screen resolution is 1280x800 , another is 1024x768).
and working smoothly on dxwnd(setting 800x600) and full screen.

however, when i released it. ppl told me they are having trouble
with the cursor position whenever using dxwnd(setting 800x600).
it sets the cursor position to password area instead of username(30-40 pixel down).
and its working fine with full screen.

i was wondering how can set my cursor position relative to a window
not to the whole screen.
any ideas/suggestions ?

_________________

w8 baby.com Banner contest, Come join NOW!!
Check us out for Prize deatils
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Sat Jun 14, 2008 8:01 am    Post subject: Reply with quote

Well in Windows mode the game window is now 30 pixels down because of the title bar. Use ScreenToClient or just check for DxWnd.exe being open and add 30 pixels to the y co-ordinate
_________________
Back to top
View user's profile Send private message
Bizarro
I post too much
Reputation: 0

Joined: 01 May 2007
Posts: 2648

PostPosted: Sat Jun 14, 2008 8:02 am    Post subject: Reply with quote

lurc wrote:
Well in Windows mode the game window is now 30 pixels down because of the title bar. Use ScreenToClient or just check for DxWnd.exe being open and add 30 pixels to the y co-ordinate


yes thats exactly what i did. thats why its working fine on my computer with both dxwnd and full screen.

but its clearly not the case with other ppl

edit:
o i will check ScreenToClient

_________________

w8 baby.com Banner contest, Come join NOW!!
Check us out for Prize deatils
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Sat Jun 14, 2008 8:04 am    Post subject: Reply with quote

Did you try to just add 30 pixels to all of your Y Co-ordinates and just say you can only use Windows mode? its what I did for my % pixel potter.
_________________
Back to top
View user's profile Send private message
Bizarro
I post too much
Reputation: 0

Joined: 01 May 2007
Posts: 2648

PostPosted: Sat Jun 14, 2008 8:06 am    Post subject: Reply with quote

lurc wrote:
Did you try to just add 30 pixels to all of your Y Co-ordinates and just say you can only use Windows mode? its what I did for my % pixel potter.


yea i adjusted 30 pixel on all Y when detected dxwnd for autologin
(however my autopot is not the case since im using GetDC(maplehwnd)

_________________

w8 baby.com Banner contest, Come join NOW!!
Check us out for Prize deatils
Back to top
View user's profile Send private message
Chaosis13
Master Cheater
Reputation: 0

Joined: 14 Aug 2007
Posts: 372

PostPosted: Sun Jun 15, 2008 4:08 pm    Post subject: Reply with quote

You can do that, but you can also check the x and y positions of a window (I did it in visual basic, most likely doable in C++), x and y positions are always upper left (most languages).
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
Page 1 of 1

 
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