Is there a one line version to activate an image by name? like second function?
Public Function ActivateDoc(strImgName As String) As SimpleScript 'eg. strImg = "C:\Users\Public\Documents\Image-Pro Premier 9.1 64-bit (Shared)\Demo Images\Color\Tumor.tif" 'eg. strImgName = "Tumor.tif" 'eg. strImgName = doc1.Name ActivateDoc = New SimpleScript Dim var1 = strImgName, doc1 With Application.DocumentCommands.Activate(ActivateDoc) .Run(var1, doc1) End With End Function
Public Function F_ActivateDoc(strImgName As String)
'how can I "activate" a specific image or select a specific image to process using the ThisApplication style ?
ThisApplication.???.Activate(strImgName)
End Function
0
Best Answer
-
Hello,
Yes you can use:Sub Activate ThisApplication.Windows(strImgName).Activate()
End Sub
Pierre0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions