PowerMill Macro: What's the command to know if Leads Form is Raised/Displayed

PowerMill Macro: What's the command to know if Leads Form is Raised/Displayed

Anonymous
Not applicable
736 Views
4 Replies
Message 1 of 5

PowerMill Macro: What's the command to know if Leads Form is Raised/Displayed

Anonymous
Not applicable

Hi, I made a macro that sets the selected leads in a certain way, and it works; but at the end of the macro I'm tring to set it to behave in different way if the Leads form was open when the macro was started or not.
Is there a command, to use at the begin of the macro, to know if the Leads form is raised/Displayed or not?

Thank you

0 Likes
Accepted solutions (1)
737 Views
4 Replies
Replies (4)
Message 2 of 5

cfastNJWK6
Advisor
Advisor
Accepted solution

This should do it:

BOOL $LeadLinkVisible = $widget("LeadLink.Shell").Visible
0 Likes
Message 3 of 5

Anonymous
Not applicable

Thank you cfastNJWK6 ! It works!

What does the variable "$widget" point to?

Do you know if there are some more complete documentation about PowerMill macro?

I fount only this PM_Macro_Programming_Guide.pdf  but it's missing a lot of information.

Thank you

0 Likes
Message 4 of 5

cfastNJWK6
Advisor
Advisor

Widgets were introduced into PowerMILL a few years ago.  Unlike parameters, widgets names & functionality may change in new versions of PowerMILL.  Here is some additional information from the PowerMILL help files:

cfastNJWK6_0-1637337834131.png

 

0 Likes
Message 5 of 5

Anonymous
Not applicable
Tank you very much!
0 Likes