Function inside a super genie(Pop-up)

Hi.

I'm trying to figure out how to re-use the variables inside the PopUpPage.

Here's a link to the function im trying to use inside my popup.

proscada.ru/ctkbase.en/resources/attachments/q4572/exec-guid36c264eab1aa4e048470d7d23cdeb0c2.ci

This simple function works in the genie but not in a super genie.

//MouseButtonDown

ExecEx("%Drawing%")

I've tried replacing the % sign with ? and lots of other ways, with no success. (The function still works if I just type in a "direct" path to open a folder., but I want to use a variable, that I can edit)

FUNCTION

PopUpPage(INT X,INT Y,INT Mode, STRING Drawing)

WinNewAt("!PopUpPage",X,Y,Mode);
SleepMS(25);
WinTitle("TITLE");

Got any ideas?

Thanks in advance.

Robin

Parents
  • It didn't work.

    This works directly on the symbol which I click to run the popup function.
    ExecEx("C:\Users\Public\Documents\"+"%Drawing%"+".pdf")
    I can change the "value" of drawing to Motor1, Motor2 or whatever when I paste the genie on a page.
    But when I add this:
    ExecEx("C:\Users\Public\Documents\"+"%Drawing%"+".pdf")
    To a button inside the popup/super genie it doesn't work.

Reply
  • It didn't work.

    This works directly on the symbol which I click to run the popup function.
    ExecEx("C:\Users\Public\Documents\"+"%Drawing%"+".pdf")
    I can change the "value" of drawing to Motor1, Motor2 or whatever when I paste the genie on a page.
    But when I add this:
    ExecEx("C:\Users\Public\Documents\"+"%Drawing%"+".pdf")
    To a button inside the popup/super genie it doesn't work.

Children
No Data