Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | chip programmers | 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