-
-
Notifications
You must be signed in to change notification settings - Fork 1
.apptoboolean
Eloi Stree edited this page Dec 21, 2021
·
1 revision
This file allows to check in what application the user is to give some context to your logic. The application check the tittle when the user change of window.
First part is the boolean name.
The second part is a regular expression that will use the title.
What is a regular expression ?
In short it is a way to check that some text respect a pattern.
ApplicationName ♦ BooleanName
Apex♦ Apex Legends
VisualStudio♦\s-\sMicrosoft\sVisual\sStudio
Unity♦\s-\sUnity\s
YouTube♦Or♦ \s-\sYouTube\s-\sGoogle\sChrome ♦ -\sYouTube.*-\sMicrosoft\sEdge
Photoshop♦\.psd\s@
OMI♦Open Macro Input
Ninja ♦10 Second Ninja
//When a regular expression is not enough you can use Or & And tag to simply the detection.
//Is in Youtube if the first or second expression is found
YouTube♦Or♦ \s-\sYouTube\s-\sGoogle\sChrome ♦ -\sYouTube.*-\sMicrosoft\sEdge
//Is in Unity version 2017 if the first and second expression are found
Unity2017♦And♦ Unity ♦ 2017