Gamestudio Links
Zorro Links
Newest Posts
Removing outliers from files
by AndrewAMD. 12/02/26 15:26
SGT_FW
by Aku_Aku. 11/30/26 08:19
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Grant), 6,791 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Freeze the game when the window looses focus. #295556
10/26/09 04:13
10/26/09 04:13
Joined: Oct 2009
Posts: 33
A
AlexH Offline OP
Newbie
AlexH  Offline OP
Newbie
A

Joined: Oct 2009
Posts: 33
I know of the on_minimized/on_maximize callbacks, however, is there a callback that is triggered when the window looses focus so I can automatically pause the game?

Re: Freeze the game when the window looses focus. [Re: AlexH] #295574
10/26/09 08:45
10/26/09 08:45
Joined: May 2008
Posts: 301
Oxy Offline
Senior Member
Oxy  Offline
Senior Member

Joined: May 2008
Posts: 301
not shure, but try to look into;

http://www.conitec.net/beta/on_message.htm

on_message functions,
there you should be able to grab the unfocus event

Re: Freeze the game when the window looses focus. [Re: Oxy] #295713
10/27/09 03:29
10/27/09 03:29
Joined: Oct 2009
Posts: 33
A
AlexH Offline OP
Newbie
AlexH  Offline OP
Newbie
A

Joined: Oct 2009
Posts: 33
Thanks I believe its good now.

Re: Freeze the game when the window looses focus. [Re: AlexH] #295717
10/27/09 03:53
10/27/09 03:53
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
The 'window_focus' variable would probably be neater.

Re: Freeze the game when the window looses focus. [Re: DJBMASTER] #295718
10/27/09 04:07
10/27/09 04:07
Joined: Oct 2009
Posts: 33
A
AlexH Offline OP
Newbie
AlexH  Offline OP
Newbie
A

Joined: Oct 2009
Posts: 33
Yes but, its just a variable so I'd have to check it every frame... (which I might end up doing if my post here isn't resolved).

So I could use the WM_SETFOCUS and WM_KILLFOCUS messages to check for that...


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