Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5339

How to Determine Which Workspaces Are Open

$
0
0

We are currently doing some Git automation in which all developer work folders will get updated automatically. However, the automation script should skip a developer folder if CVI is open from that folder. For example, assume there are three folders.

  • c:\dev1\myproj.prj
  • c:\dev2\myproj.prj
  • c:\dev3\myproj.prj

 

If dev2 has myproj.prj open, the script will skip that folder. The way we tried to determine if a particular project is open is as follows:

1. Determine if CVI process is running.

2. If yes, get CVI window title.

 

We wrote a Win32 C++ utility for this purpose. Since the title shows the full workspace path, this information was sufficient. But recently, we noticed that if the path is too long, CVI shortens it (eg: c:\..\folder\myproj.prj). At the same time, if I hover the mouse on the title bar area, CVI shows a tool tip with the full path.

 

So I was wondering if there is any way I can read the tool tip string? Suggestions on approaching this in some other way are also welcome.


Viewing all articles
Browse latest Browse all 5339

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>