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

Notification

Icon
Error

Options
Go to last post Go to first unread
cfonly  
#1 Posted : Tuesday, April 27, 2021 11:05:37 AM(UTC)
cfonly

Rank: Newbie

Reputation:

Groups: Approved
Joined: 4/27/2021(UTC)
Posts: 2

Thanks: 2 times
Can you add new option at "Disable Capture on Full Screen Windows" like a whitelist function ?

I need function Disable Capture on Full Screen Windows at all applications but Enable Capture on Chrome Firefox and Edge.

Thank you.
Rob  
#2 Posted : Tuesday, April 27, 2021 4:06:35 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,359
United States
Location: Tampa, FL

Thanks: 28 times
Was thanked: 419 time(s) in 356 post(s)
You can handle this in Global Actions > Window Events > Foreground Window Change:
Code:
// Get foreground window EXE name
var exeName = sp.ForegroundWindow().Process.MainModule.ModuleName;
// If the EXE name contains "chrome", "firefox", or "msedge", disable that option, otherwise enable it
if( exeName.includes("chrome") || exeName.includes("firefox") || exeName.includes("msedge") ) {
    sp_config.PreventCaptureOnFullScreenWindows = false;
} else {
    sp_config.PreventCaptureOnFullScreenWindows = true;
}

Edited by user Tuesday, April 27, 2021 4:07:34 PM(UTC)  | Reason: Not specified

thanks 1 user thanked Rob for this useful post.
cfonly on 4/28/2021(UTC)
cfonly  
#3 Posted : Wednesday, April 28, 2021 6:44:14 AM(UTC)
cfonly

Rank: Newbie

Reputation:

Groups: Approved
Joined: 4/27/2021(UTC)
Posts: 2

Thanks: 2 times
Thank you ! It worked.

but in Win10 Desktop Capture will disabled , how to fix it ?
Rob  
#4 Posted : Wednesday, April 28, 2021 2:36:58 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,359
United States
Location: Tampa, FL

Thanks: 28 times
Was thanked: 419 time(s) in 356 post(s)
Do you mean using gestures with Desktop Capture active? I don't use that, so I'm not familiar with it.
AxJ  
#5 Posted : Saturday, January 13, 2024 10:52:20 AM(UTC)
AxJ

Rank: Newbie

Reputation:

Groups: Approved
Joined: 1/13/2024(UTC)
Posts: 1

Originally Posted by: Rob Go to Quoted Post
You can handle this in Global Actions > Window Events > Foreground Window Change:
Code:
// Get foreground window EXE name
var exeName = sp.ForegroundWindow().Process.MainModule.ModuleName;
// If the EXE name contains "chrome", "firefox", or "msedge", disable that option, otherwise enable it
if( exeName.includes("chrome") || exeName.includes("firefox") || exeName.includes("msedge") ) {
    sp_config.PreventCaptureOnFullScreenWindows = false;
} else {
    sp_config.PreventCaptureOnFullScreenWindows = true;
}

These codes make SP+ won't work on the Desktop, how to fix it? Thanks!
Rob  
#6 Posted : Friday, April 12, 2024 12:49:13 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,359
United States
Location: Tampa, FL

Thanks: 28 times
Was thanked: 419 time(s) in 356 post(s)
Try this:
Code:
var fgWnd = sp.ForegroundWindow();
// Get foreground window EXE name
var exeName = fgWnd.Process.MainModule.ModuleName;
// If the EXE name contains "chrome", "firefox", or "msedge", disable that option, otherwise enable it
if( exeName.includes("chrome") || exeName.includes("firefox") || exeName.includes("msedge") || fgWnd.GetRootOwnerWindow.ClassName == "Progman") {
    StrokesPlus.Console.Log(fgWnd.GetRootOwnerWindow.ClassName);
    sp_config.PreventCaptureOnFullScreenWindows = false;
} else {
    sp_config.PreventCaptureOnFullScreenWindows = true;
}
Users browsing this topic
Guest (2)
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.