Load Circles App settings file
I want my macro to open the Circles App and then prompt the user to choose a settings file based on their image type. I can get the App to open, and the Settings File Open window to open, but I can't get the settings file to activate. The problem may be that when I drag the Circle LoadOptions function into my macro, it changes the name to PlayMacro (see script below)
Public Function Circles() As SimpleScript
Circles = New SimpleScript
With Application.RibbonCommands.SelectRibbonTab(Circles)
.TabName = "Apps"
.Run()
End With
With Automate.ScriptingCommands.AppGadget(Circles)
.AppFile = "Circles>CirclesApp.vb"
.Reload = True
.CheckState = MediaCy.IQL.Application.McCommand.mcCheckState.Checked
.Run()
End With
With Automate.ScriptingCommands.PlayMacro(Circles)
.Text = "Load Options"
.MacroFile = "Circles>*ModuleCircles.vb"
.MacroName = "LoadOptions"
.Prompt = "Choose appropriate settings file"
.Interactive = True
.Run(ThisApplication.ActiveImage)
End With
0
Best Answer
-
Hi dcimaging,
LoadOptions should not be interactive and you need to set new parameters to controls:Public Function Circles() As SimpleScript Circles = New SimpleScript With Application.RibbonCommands.SelectRibbonTab(Circles) .TabName = "Apps" .Run() End With With Automate.ScriptingCommands.AppGadget(Circles) .AppFile = "Circles>CirclesApp.vb" .Reload = True .CheckState = MediaCy.IQL.Application.McCommand.mcCheckState.Checked .Run() End With With Automate.ScriptingCommands.PlayMacro(Circles) .MacroFile = "Circles>ModuleCircles.vb" .MacroName = "LoadOptions" .Run(Nothing) End With With Automate.ScriptingCommands.PlayMacro(Circles) .MacroFile = "Circles>CirclesApp.vb" .MacroName = "SetControls" .Run(Nothing) End With End Function Thanks, Nikita.
0
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