Rank: Newbie
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.
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,382 Location: Tampa, FL Thanks: 28 times Was thanked: 431 time(s) in 364 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
|
1 user thanked Rob for this useful post.
|
|
|
Rank: Newbie
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 ?
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,382 Location: Tampa, FL Thanks: 28 times Was thanked: 431 time(s) in 364 post(s)
|
Do you mean using gestures with Desktop Capture active? I don't use that, so I'm not familiar with it.
|
|
|
|
Rank: Newbie
Groups: Approved
Joined: 1/13/2024(UTC) Posts: 1
|
Originally Posted by: Rob 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!
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,382 Location: Tampa, FL Thanks: 28 times Was thanked: 431 time(s) in 364 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;
}
|
|
|
|
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.
Important Information:
The StrokesPlus.net Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close