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
  • I think you missed that you must use the number you used in your cicode function ** Ass(-2,100,"'"+Drawing+"'",0

    Use ?String 100? on your supergenie command to be able to get the dynamic  text to open your pdf file..

    It looks like you trying to use the text from your genie..

    Use this command from your supergeni/systempage to get it to work :

    ExecEx("C:\Users\Public\Documents\"+?STRING 100?+".PDF")

    Hope this will help you..

    //Michael

Reply
  • I think you missed that you must use the number you used in your cicode function ** Ass(-2,100,"'"+Drawing+"'",0

    Use ?String 100? on your supergenie command to be able to get the dynamic  text to open your pdf file..

    It looks like you trying to use the text from your genie..

    Use this command from your supergeni/systempage to get it to work :

    ExecEx("C:\Users\Public\Documents\"+?STRING 100?+".PDF")

    Hope this will help you..

    //Michael

Children
No Data