Newb Help...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • cykoklown
    Forum Member
    • May 2003
    • 2

    Newb Help...

    Hi,

    i Was wondering, how to make a dialog box come up if i have the 3 icons (abort|retry|ignore) for only 1? (ex. A certion dialog box comes up ONLY if they click on Retry) What variables do i need to put in? And how would i make a dialog message box come up ONLY if they typed in the correct password given? Thanks for reading this, hope someone answers soon.
  • Corey
    Indigo Rose Staff Alumni
    • Aug 2002
    • 9745

    #2
    Re: Newb Help...

    You can store the results (user input) from a dialog in a variable. Then it's easy to test that variable to see if it meets certain criteria, and then launch any action(s) based upon the results of that test...

    Here's a nice place to get started if you want to learn more http://www.autoplaystudio.com/webhel...og_Actions.htm

    Or maybe some other user with a few spare minutes will whip up an example for you... Who knows. [img]/ubbthreads/images/icons/smile.gif[/img]

    Corey Milner
    Creative Director, Indigo Rose Software

    Comment

    • Worm
      Indigo Rose Customer
      • Jul 2002
      • 3971

      #3
      Re: Newb Help...

      %Result% = Dialog.MessageBox ("Sample", "Pick a button", Abort|Retry|Ignore, Question)
      IF (%Result%="ABORT")
      // Abort Routine Here
      END IF
      IF (%Result%="RETRY")
      // Retry Routine Here
      END IF
      IF (%Result%="IGNORE")
      // Ignore Routine Here
      END IF

      ---------Cut and Paste -------------
      <IR_ACTIONS_LIST>
      <Action name="Message Box">
      <Type>5</Type>
      <Function>0</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <DialogTitle>Sample</DialogTitle>
      <DialogMessage>Pick a button</DialogMessage>
      <Icon>3</Icon>
      <Variable>%Result%</Variable>
      <DialogType>5</DialogType>
      <DefaultButton>0</DefaultButton>
      </Action>
      <Action name="IF">
      <Type>200</Type>
      <Function>1</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <Condition>%Result%="ABORT"</Condition>
      </Action>
      <Action name="Comment">
      <Type>202</Type>
      <Function>2</Function>
      <DTIndentLevel>1</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <Comment>Abort Routine Here</Comment>
      </Action>
      <Action name="END IF">
      <Type>201</Type>
      <Function>1</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      </Action>
      <Action name="IF">
      <Type>200</Type>
      <Function>1</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <Condition>%Result%="RETRY"</Condition>
      </Action>
      <Action name="Comment">
      <Type>202</Type>
      <Function>2</Function>
      <DTIndentLevel>1</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <Comment>Retry Routine Here</Comment>
      </Action>
      <Action name="END IF">
      <Type>201</Type>
      <Function>1</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      </Action>
      <Action name="IF">
      <Type>200</Type>
      <Function>1</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <Condition>%Result%="IGNORE"</Condition>
      </Action>
      <Action name="Comment">
      <Type>202</Type>
      <Function>2</Function>
      <DTIndentLevel>1</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <Comment>Ignore Routine Here</Comment>
      </Action>
      <Action name="END IF">
      <Type>201</Type>
      <Function>1</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      </Action>
      </IR_ACTIONS_LIST>
      ------------End Cut and Paste-------------

      Comment

      • cykoklown
        Forum Member
        • May 2003
        • 2

        #4
        Re: Newb Help...

        Thanx worm!

        Comment

        • Corey
          Indigo Rose Staff Alumni
          • Aug 2002
          • 9745

          #5
          Re: Newb Help...

          Ditto.

          Corey Milner
          Creative Director, Indigo Rose Software

          Comment

          Working...
          X