Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   best way to determine if window is minimized (https://forums.graalonline.com/forums/showthread.php?t=134269263)

Jakov_the_Jakovasaur 06-01-2014 09:35 PM

best way to determine if window is minimized
 
hello!

does anyone know a reliable way to determine if a player has their window minimized?

one method i am aware of is the global variable 'isapplicationactive', however this is also set to true whenever you have focus applied to the playerlist or other external gui windows

callimuc 06-02-2014 02:10 PM

Another way COULD be using player.ispaused, but that also sets itself to true when using the actual pause button, when reading a sign etc

Jakov_the_Jakovasaur 06-02-2014 04:39 PM

thats actually the behaviour i wanted to replicate except that last time i checked (long time before v6), while minimizing the window with default systems does make a players nickname contain '(Paused)' and their body non-blocking, they are not actually paused and you can still hit them


All times are GMT +2. The time now is 10:30 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.