| View previous topic :: View next topic |
| Author |
Message |
Bizarro I post too much
Reputation: 0
Joined: 01 May 2007 Posts: 2648
|
Posted: Sat Jun 14, 2008 7:41 am Post subject: [c++]setCursorPos & Dxwnd |
|
|
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 |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Sat Jun 14, 2008 8:01 am Post subject: |
|
|
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 |
|
 |
Bizarro I post too much
Reputation: 0
Joined: 01 May 2007 Posts: 2648
|
Posted: Sat Jun 14, 2008 8:02 am Post subject: |
|
|
| 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 |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Sat Jun 14, 2008 8:04 am Post subject: |
|
|
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 |
|
 |
Bizarro I post too much
Reputation: 0
Joined: 01 May 2007 Posts: 2648
|
Posted: Sat Jun 14, 2008 8:06 am Post subject: |
|
|
| 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 |
|
 |
Chaosis13 Master Cheater
Reputation: 0
Joined: 14 Aug 2007 Posts: 372
|
Posted: Sun Jun 15, 2008 4:08 pm Post subject: |
|
|
| 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 |
|
 |
|