Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Full Screen

Questions and comments specific to a particular plugin should go here.
Post Reply
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Full Screen

Post by kgschlosser »

Full Screen Plugin


OK there was enough people that have asked if this could be done. and I had always said no. after some digging and some poking about II came up with a mechanism to make an application full screen. This may or may not bee the same full screen as an option that is inside the actual application. i all depends on how they do it in the app.

there are only 2 actions. make full screen and restore. you do have the choice of selecting the monitor you want the thing to be full screened onto. it will always be restored back to where it was originally. This is a really nice feature for those of you that have a TV and a monitor plugged into your PC.


Updates:
0.0.2b: Adds toggle action.
Attachments
FullScreenPlugin-0.0.2b.egplugin
(8.7 KiB) Downloaded 50 times
If you like the work I have been doing then feel free to Image
User avatar
topix
Experienced User
Posts: 441
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

Re: Full Screen

Post by topix »

Interesting plugin. I've tried it and it's working good. Just a few remarks:
  • How about a toggle action?
  • How about using the result from a FindWindow action?
  • Why are you filtering processes from windows and system32 paths? That makes it impossible to set cmd.exe or notepad.exe as target (for example).
  • The maximized window will always be placed on Monitor 1, regardless which monitor i select.
    I think your x/y calculation FullScreen.__call__ are needless. If comment them out, the window is maximized on the selected monitor.
Beside the above, i think these actions would fit into the Window plugin, what do you think?
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Full Screen

Post by kgschlosser »

the reason for the filtering is so that only applications can be full screened. because of how it changes the Window styles. Native Windows programs do not exactly work like programs that are not native I have had Windows pitch a fit about trying to change the styles of the native application.

The FindWindow action is a beast. it is horribly slow and causes timeout problems if you are using FindWindow in a macro that gets run from any of the power state changing events. and once the timeouts start the whole thing cascades into a program crash.

This is the skinny on why it has to be done.

when suspending the system if we release the Notification system windows can go into a suspended state before EG has finished running any code that is needed.. outcome == bad
when we are resuming the system if we release the Notification system before EG has run the code that is needed if any events come in from the Windows system that a user has dependent code on the system state and it has not made the necessary changes before that event comes in, outcome == bad

so when you take a behemoth like FindWindow and place it in code that gets run by either the suspend or resume events you will end up with a cascading failure because the action takes to long to process. I have wrapped my head around this many timees and the only thing that we can do to fix it is we are going to have to rewrite the FindWindow portion of EventGhost.
If you like the work I have been doing then feel free to Image
steve@rpad
Posts: 9
Joined: Sat May 25, 2013 12:10 pm
Location: Toronto, Canada

Re: Full Screen

Post by steve@rpad »

sorry to be a mench....any way to grab a copy of this plugin? my searches haven't turned up plug in dl page mentioned on homepage or github

Much appreciated
Thanx,

Steve
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Full Screen

Post by kgschlosser »

no worries m8. I updated the attachment in the first port.
If you like the work I have been doing then feel free to Image
Post Reply