PDA

View Full Version : Can't get detect application code to work



torrid
01-29-2011, 11:31 AM
In help file you have this code:

Loop

Set Variable %SB6ACTIVE% to FUNCTION:Detect Active Application(sbuilder.exe)

If %SB6ACTIVE% Equals "1" Then

Display Message Box "The SetupBuilder Integrated Development Environmen..." -- "SetupBuilder application currently running"

If %_SB_RETURN% Equals "$IDCANCEL$" Then

Exit Installation

End

Else

Break Loop

End

End

When I add the Set Variable... to my script... double click to set value... it just has a space to type in and no way to select it to function... if I put in
Set Variable %SB6ACTIVE% to FUNCTION:Detect Active Application(Planner.exe) .... then it ends up just as a quoted string... it does not execute the function.

I added message box to throw the value of the variable to the user... and it just shows the string... also in my SB7 it shows the function part in quotes but in the help file it does not....

I know I'm missing the obvious... help.

linder
01-29-2011, 12:22 PM
I see that you have figured it out. Yes, you have to use the "Detect Active Application..." script FUNCTION.

Friedrich