AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how can I tell when a program is in full screen?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
barty



Joined: 30 Aug 2009
Posts: 10

PostPosted: Thu Sep 17, 2009 11:22 pm    Post subject: how can I tell when a program is in full screen? Reply with quote

In my script, I want to suppress certain dialogs of my own (i.e., just not show them) when some program -- whether it's a media player, a game, or a web browser -- is in full screen mode. Is it possible to detect this in a general way? Note that the program is not necessarily in some exclusive Direct3D mode, but has only taken over the entire screen. (Just knowing whether the windows taskbar is visible would be helpful.)

thanks
Back to top
View user's profile Send private message
Leef_me



Joined: 08 Apr 2009
Posts: 5336
Location: San Diego, California

PostPosted: Fri Sep 18, 2009 6:45 am    Post subject: Reply with quote

I hope this isn't too much to throw at you, all at one time.

I'm making the assumption that you can get the title of the window, or some other way to choose it from all the others open at the moment. Wink

There is a (sub-command) withing WinGet that can give info on min/max status
MinMax: Retrieves the minimized/maximized state for a window.
http://www.autohotkey.com/docs/commands/WinGet.htm


Further suggested reading:

A_ScreenWidth & A_ScreenHeight
http://www.autohotkey.com/docs/Variables.htm#Screen

MonitorWorkArea --- exclude the area occupied by the taskbar http://www.autohotkey.com/docs/commands/SysGet.htm

position, width, title of a window
http://www.autohotkey.com/docs/commands/WinGetPos.htm
Back to top
View user's profile Send private message
barty



Joined: 30 Aug 2009
Posts: 10

PostPosted: Sat Sep 19, 2009 6:31 am    Post subject: Reply with quote

thanks. the monitowrorkarea looks promising. I'll report back once I've had some time playing with it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group