It is currently April 26th, 2024, 3:33 pm

find a specific instance of a program with process plugin

Share and get help with Plugins and Addons
User avatar
bobgrosh
Posts: 134
Joined: May 1st, 2011, 10:33 pm

find a specific instance of a program with process plugin

Post by bobgrosh »

I created launcher skin to connect to multiple remote computers via Teamviewer.
I'd like to have them indicate which computers are connected.
So, for example connecting to dual-2 with one launcher and Portable with another launcher results in the following entries in Task Manager:
-------------------------------------------------
TeamViewer 8 (32 bit (4)
Computers & Contacts
DUAL-2 (987 654 321) - TeamViewer - Free license (non-commercial use only)
PORTABLE (123 456 789) - TeamViewer - Free license (non-commercial use only)
TeamViewer
-------------------------------------------------
I can check for teamviewer.exe in the process plugin and all of the launching skins indicate that one of the remote connections is running.

But, I want each launcher skin to indicate it's respective machine has been connected.

I tried ProcessName="*DUAL-1*"
and
ProcessName="*PORTABLE*"
along with a few other combinations of wildcard characters but no luck. I couldn't find any helpful info in the plugin process manual.
How for example would you check to see if "MyText - Notepad" was open when "Untitled - Notepad" is also open.
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

Re: find a specific instance of a program with process plugi

Post by moshi »

that's not a task for the Process plugin, but rather for the WindowMessage plugin.

like:

Code: Select all

[MeasureUntitledNotepad]
Measure=Plugin
Plugin=WindowMessagePlugin
WindowName=Untitled - Notepad
RegExpSubstitute=1
Substitute="^(.+)$":"1","^$":"0"

[MeasureMyTextNotepad]
Measure=Plugin
Plugin=WindowMessagePlugin
WindowName=MyText - Notepad
RegExpSubstitute=1
Substitute="^(.+)$":"1","^$":"0"

if that Teamviewer stuff has window names or class names to work with? no idea.
i have attached WinSpy. might be useful.
You do not have the required permissions to view the files attached to this post.