Announcement

Collapse
No announcement yet.

Im hav'in a blonde day

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Im hav'in a blonde day

    Can anyone help - This is what i am trying to do without any success what so ever. ( I have read your help file but suffering from short term memory failure.

    Using a hotspot my action on click opens a dialog box stating that this will install a program to your hdd. ( thats the easy part)

    Pop up apears with Yes / No Answer. (this is where im havin trouble)

    variable set to record answer to Defualt (%result%)

    If yes is clicked i would like program to install and if no program to exit.

    This is where my blond day starts.............

    Can anyone point me in the right direction regarding how to do this as im failing to grasp this easy concept.

    Thanks guys for your time spent helping me (once you stopped laughing First!!!) Cheers,

    Jon


  • #2
    Re: Im hav'in a blonde day

    Here is the psudo code for this, I would make you an example but I do not have AMS4.0 on the computer that I am working on (university)

    if (%result%=YES)
    File.Execute(path to file.....)
    else
    Application.Exit

    Note: that you could also have an action for 'CANCEL' if you want, it would only require another IF statement, ie if(%result%=CANCEL)

    I think that this is all you would have to do.

    Comment


    • #3
      Re: Im hav'in a blonde day

      Here is some code I use on a button to check for Acrobat. It opens a pdf if they have it installed and if they don't it offers to install it for them. The other thing it does is if acrobat is found it checks the version and offers to update the file if it is below 5.0.0.0. Just copy the actions list below and paste it into the actions list for your button to see what it does.

      <IR_ACTIONS_LIST>
      <Action name="Comment">
      <Type>202</Type>
      <Function>2</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <Comment>Set a default value for our test</Comment>
      </Action>
      <Action name="Set Value">
      <Type>6</Type>
      <Function>0</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <Variable>%pdfviewer%</Variable>
      <Value>NOTFOUND</Value>
      <Evaluate>0</Evaluate>
      </Action>
      <Action name="Comment">
      <Type>202</Type>
      <Function>2</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <Comment>Note: I've set the On Error user notification to "none" for the next action</Comment>
      </Action>
      <Action name="Get Default Viewer">
      <Type>13</Type>
      <Function>0</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>0</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <Variable>%pdfviewer%</Variable>
      <FileExtension>.PDF</FileExtension>
      </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>%pdfviewer% = "NOTFOUND"</Condition>
      </Action>
      <Action name="Message Box">
      <Type>5</Type>
      <Function>0</Function>
      <DTIndentLevel>1</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <DialogTitle>Acrobat Reader Not Found</DialogTitle>
      <DialogMessage>Acrobat Reader doesn't appear to be installed on your PC. To read this file, Acrobat Reader will need to be installed.</DialogMessage>
      <Icon>3</Icon>
      <Variable>%acroResult%</Variable>
      <DialogType>2</DialogType>
      <DefaultButton>0</DefaultButton>
      </Action>
      <Action name="IF">
      <Type>200</Type>
      <Function>1</Function>
      <DTIndentLevel>1</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <Condition>%acroResult% = "OK"</Condition>
      </Action>
      <Action name="Execute">
      <Type>8</Type>
      <Function>0</Function>
      <DTIndentLevel>2</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <FileName>%SrcDir%\AcrobatReader\ar505enu.exe</FileName>
      <CommandLine/>
      <WorkingDir/>
      <RunMode>0</RunMode>
      <WaitForReturn>1</WaitForReturn>
      </Action>
      <Action name="END IF">
      <Type>201</Type>
      <Function>1</Function>
      <DTIndentLevel>1</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      </Action>
      <Action name="ELSE">
      <Type>206</Type>
      <Function>1</Function>
      <DTIndentLevel>0</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      </Action>
      <Action name="Get Information">
      <Type>14</Type>
      <Function>0</Function>
      <DTIndentLevel>1</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <FileInformationToCollect>0</FileInformationToCollect>
      <Variable>%pdfversion%</Variable>
      <FileName>%pdfviewer%</FileName>
      </Action>
      <Action name="IF">
      <Type>200</Type>
      <Function>1</Function>
      <DTIndentLevel>1</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <Condition>%pdfversion% &amp;lt; 5.0.0.0</Condition>
      </Action>
      <Action name="Message Box">
      <Type>5</Type>
      <Function>0</Function>
      <DTIndentLevel>2</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <DialogTitle>Update Acrobat Reader</DialogTitle>
      <DialogMessage>A newer version of Acrobat Reader is available would you like to install a newer version?</DialogMessage>
      <Icon>3</Icon>
      <Variable>%acroversion%</Variable>
      <DialogType>1</DialogType>
      <DefaultButton>1</DefaultButton>
      </Action>
      <Action name="IF">
      <Type>200</Type>
      <Function>1</Function>
      <DTIndentLevel>2</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <Condition>%acroversion% = "YES"</Condition>
      </Action>
      <Action name="Execute">
      <Type>8</Type>
      <Function>0</Function>
      <DTIndentLevel>3</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <FileName>%SrcDir%\AcrobatReader\ar505enu.exe</FileName>
      <CommandLine/>
      <WorkingDir/>
      <RunMode>0</RunMode>
      <WaitForReturn>1</WaitForReturn>
      </Action>
      <Action name="END IF">
      <Type>201</Type>
      <Function>1</Function>
      <DTIndentLevel>2</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      </Action>
      <Action name="ELSE">
      <Type>206</Type>
      <Function>1</Function>
      <DTIndentLevel>1</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      </Action>
      <Action name="Open">
      <Type>7</Type>
      <Function>0</Function>
      <DTIndentLevel>2</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      <FileName>%SrcDir%\pdf\main.pdf</FileName>
      <Verb>open</Verb>
      <WorkingDir/>
      <RunMode>0</RunMode>
      </Action>
      <Action name="END IF">
      <Type>201</Type>
      <Function>1</Function>
      <DTIndentLevel>1</DTIndentLevel>
      <Enabled>1</Enabled>
      <ErrorHandling>
      <UserNotificationMode>2</UserNotificationMode>
      <CustomErrorMessage/>
      <OnErrorAction>0</OnErrorAction>
      <JumpToLabel/>
      </ErrorHandling>
      </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>
      TJ-Tigger
      "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
      "Draco dormiens nunquam titillandus."
      Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

      Comment


      • #4
        Re: Im hav'in a blonde day

        Thank you guys, your product just rocks and your support forum rocks too.

        Tigger, you the man...................

        Comment


        • #5
          Re: Im hav'in a blonde day


          ... but I do not have AMS4.0 on the computer that I am working on (university)
          You must be getting withdrawal symptoms, Adam [img]/ubbthreads/images/icons/smile.gif[/img]
          -
          = Derek
          ["All glory comes from daring to begin" - fortune cookie]

          Comment


          • #6
            Re: Im hav'in a blonde day

            Adam's mom makes his lunch.

            Corey Milner
            Creative Director, Indigo Rose Software

            Comment


            • #7
              Re: Im hav'in a blonde day

              I'll bet Brett does - looking after younger Bro etc.
              -
              = Derek
              ["All glory comes from daring to begin" - fortune cookie]

              Comment

              Working...
              X