Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,619 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Problem with SetCursorPos in window mode #432915
11/19/13 10:54
11/19/13 10:54
Joined: May 2008
Posts: 257
D
djfeeler Offline OP
Member
djfeeler  Offline OP
Member
D

Joined: May 2008
Posts: 257
Hello,

I have problem with SetCursorPos in window mode. I can not replace the mouse. In fullscreen it works great. Any idea why this does not work ?

I use

Code:
SetCursorPos((int)mouse_pos.x,(int)VG_souris_posX);
SetCursorPos((int)mouse_pos.x,(int)VG_souris_posY);



Thanks in advance for your idea ^^

Re: Problem with SetCursorPos in window mode [Re: djfeeler] #432953
11/20/13 06:09
11/20/13 06:09
Joined: May 2008
Posts: 257
D
djfeeler Offline OP
Member
djfeeler  Offline OP
Member
D

Joined: May 2008
Posts: 257
The good code is :

Code:
SetCursorPos((long)VG_souris_posX,(long)VG_souris_posY);



In window mode SetCursorPos put the mouse to the coordinates of desktop window but not the coordinates of the window of the game. I do not know how to calculate the difference.

Please help me.

Re: Problem with SetCursorPos in window mode [Re: djfeeler] #432954
11/20/13 07:21
11/20/13 07:21
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany


POTATO-MAN saves the day! - Random
Re: Problem with SetCursorPos in window mode [Re: Kartoffel] #432963
11/20/13 09:38
11/20/13 09:38
Joined: May 2008
Posts: 257
D
djfeeler Offline OP
Member
djfeeler  Offline OP
Member
D

Joined: May 2008
Posts: 257
Thanks for your response ^^


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1