StrokesPlus.net
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Brolencho  
#1 Posted : Saturday, June 27, 2020 9:24:48 PM(UTC)
Brolencho

Rank: Newbie

Reputation:

Groups: Translators, Approved
Joined: 6/26/2020(UTC)
Posts: 7
Peru
Location: Lima

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
You can replace maximize/restore when you are on Twitch:

preview:
https://i.imgur.com/OH5TjHQ.gifv

Code:


var wnd = action.Window;

//On Twitch
if(wnd.Title.includes(" - Twitch")) { //
    sp.SendModifiedVKeys([vk.LMENU], [vk.VK_T]); //Press ALT + T. This toggles Theater mode
} else {
// Maximize or restore the window underneath the mouse cursor where the gesture started
    if(action.Window.Maximized) {
        action.Window.Restore();
    } else {
        action.Window.Maximize();
    }
}




Intented to use under applications/your browser (Tested in Chrome)


UserPostedImage





Enjoy!

Edited by user Sunday, June 28, 2020 10:10:51 AM(UTC)  | Reason: Not specified

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.