Announcement

Collapse
No announcement yet.

Help with windows and terminating windows

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

  • Help with windows and terminating windows

    Hi, first post here and quite new to AutoPlay

    I´m having the following "problem". When inserting a CDrom in the drive I want to check if certain windows are allready active. Based on these results I want to proceed in the code stack. Now, if any of these certain windows is allready active I want to simply terminate the application that is checking the windows status (it has to be a standalone file). If none of the certain windows is active I want to proceed in the code stack to call up certain files. Allready confused ?

    All solutions I came up with so far didn´t really work out. Very well possible cause I´m not really firm with "coding". Only the one below works, which isn´t a very elegant solution IMHO.

    My goal is to make sure that if a certain window is allready active and you put in the applications CD that certain window is not called up again. Avoiding two instances of the same window.

    <font class="small">Code:</font><hr /><pre> <IR_ACTIONS_LIST>
    <Action name="Get Titles">
    <Type>129</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Variable>%WndTitles%</Variable>
    <VariableDelimiter>;;</VariableDelimiter>
    </Action>
    <Action name="Blank Line">
    <Type>203</Type>
    <Function>2</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    </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>check for Menus active</Comment>
    </Action>
    <Action name="LABEL">
    <Type>208</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>Window01</Label>
    </Action>
    <Action name="Find">
    <Type>127</Type>
    <Function>0</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>0</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>1</OnErrorAction>
    <JumpToLabel>call menu</JumpToLabel>
    </ErrorHandling>
    <FindText>Install Menu</FindText>
    <Variable>%hWnd01%</Variable>
    </Action>
    <Action name="Close">
    <Type>130</Type>
    <Function>0</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>0</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>1</OnErrorAction>
    <JumpToLabel>call menu</JumpToLabel>
    </ErrorHandling>
    <hWnd>%hWnd01%</hWnd>
    <IfRunning>0</IfRunning>
    <ProgramDescription>Install Menu</ProgramDescription>
    </Action>
    <Action name="LABEL">
    <Type>208</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>Window02</Label>
    </Action>
    <Action name="Find">
    <Type>127</Type>
    <Function>0</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>0</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>1</OnErrorAction>
    <JumpToLabel>call menu</JumpToLabel>
    </ErrorHandling>
    <FindText>Game Menu</FindText>
    <Variable>%hWnd02%</Variable>
    </Action>
    <Action name="Close">
    <Type>130</Type>
    <Function>0</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>0</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>1</OnErrorAction>
    <JumpToLabel>call menu</JumpToLabel>
    </ErrorHandling>
    <hWnd>%hWnd02%</hWnd>
    <IfRunning>0</IfRunning>
    <ProgramDescription>Install Menu</ProgramDescription>
    </Action>
    <Action name="Blank Line">
    <Type>203</Type>
    <Function>2</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    </Action>
    <Action name="Blank Line">
    <Type>203</Type>
    <Function>2</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    </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>NO Menu active</Comment>
    </Action>
    <Action name="LABEL">
    <Type>208</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>call menu</Label>
    </Action>
    <Action name="IF">
    <Type>200</Type>
    <Function>1</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>0</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel>Loopstart</JumpToLabel>
    </ErrorHandling>
    <Condition>%RegData% = TRUE</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>Loopstart</JumpToLabel>
    </ErrorHandling>
    <FileName>%InstalledTo%\start.exe</FileName>
    <CommandLine/>
    <WorkingDir/>
    <RunMode>0</RunMode>
    <WaitForReturn>0</WaitForReturn>
    </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="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%\setup.exe</FileName>
    <CommandLine/>
    <WorkingDir/>
    <RunMode>0</RunMode>
    <WaitForReturn>0</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="Exit">
    <Type>2</Type>
    <Function>0</Function>
    <DTIndentLevel>2</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    </Action>
    <Action name="Blank Line">
    <Type>203</Type>
    <Function>2</Function>
    <DTIndentLevel>2</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    </Action>
    </IR_ACTIONS_LIST>
    </pre><hr />

  • #2
    Re: Help with windows and terminating windows

    Hi - just a thought ... how about having the 'program' create a reg entry when it opens and deleting it when its closed. Then you can just check for the reg entry existance ... if its there, dont run/open it again
    -
    = Derek
    ["All glory comes from daring to begin" - fortune cookie]

    Comment


    • #3
      Re: Help with windows and terminating windows

      Yes Derek's idea is very good, I have used that and it works great, is quick to set up, and is easy to manage...

      Corey Milner
      Creative Director, Indigo Rose Software

      Comment


      • #4
        Re: Help with windows and terminating windows

        Thanks alot guys, that is indeed a brilliant and easy to use idea. Sometimes you simply don´t see the simple solutions

        Thanks again.

        Comment


        • #5
          Re: Help with windows and terminating windows

          Just as a "What If", cause this has happened to me before...

          If for some reason the end users machine hangs while running your app (not implying your app would cause it ), and they need to Hard Boot the machine, or maybe even power failure, your app wouldn't functionproperly because of the footprints left in the registry.

          Maybe its me, but it seems using the Window.Find method might be a better solution. The registry idea would probably work without any problems, but...

          My 2 cents anyway. (and that's about all it's worht too)

          Comment


          • #6
            Re: Help with windows and terminating windows

            My 2 cents anyway. (and that's about all it's worht too)
            Good point tho!
            -
            = Derek
            ["All glory comes from daring to begin" - fortune cookie]

            Comment


            • #7
              Re: Help with windows and terminating windows

              </font>
              If for some reason the end users machine hangs while running your app (not implying your app would cause it ), and they need to Hard Boot the machine, or maybe even power failure, your app wouldn't function properly because of the footprints left in the registry.

              Maybe its me, but it seems using the Window.Find method might be a better solution. The registry idea would probably work without any problems, but...
              Good point actually, hmmm. The event of a crash or hangup isn´t that "rare" actually with the application this is been done for. So, indeed the window.find method would be safer.

              Which jumps us back to the beginning :(

              Comment


              • #8
                Re: Help with windows and terminating windows

                No problem, just set your app to clean up any old keys on startup...


                OR

                Use dynamic titling for your key, i.e. today's date, that ensures you are never checking old keys...

                OR

                Combine the two methods by using dynamic titling and cleaning any old reg keys on startup...

                That should work, unless I'm missing the concept here, and we all know that's way less impossible than it sounds...

                Corey Milner
                Creative Director, Indigo Rose Software

                Comment


                • #9
                  Re: Help with windows and terminating windows

                  Just use a Window.GetTitles action to get the names of all open windows (even hidden ones), and search within that list for the name of the application.

                  If there are more than one match found, exit.

                  If there is only one match found, continue.
                  --[[ Indigo Rose Software Developer ]]

                  Comment


                  • #10
                    Re: Help with windows and terminating windows

                    </font>
                    Just use a Window.GetTitles action to get the names of all open windows (even hidden ones), and search within that list for the name of the application.

                    If there are more than one match found, exit.

                    If there is only one match found, continue.
                    Sorry for replying so late, busy times .

                    I did it like you mentioned, it works. Just want to know if this is the right way I did it. New and ambitious to learn it correctly

                    <font class="small">Code:</font><hr /><pre>
                    <IR_ACTIONS_LIST>
                    <Action name="Get Titles">
                    <Type>129</Type>
                    <Function>0</Function>
                    <DTIndentLevel>0</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Variable>%WndTitles%</Variable>
                    <VariableDelimiter>;;</VariableDelimiter>
                    </Action>
                    <Action name="Blank Line">
                    <Type>203</Type>
                    <Function>2</Function>
                    <DTIndentLevel>0</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    </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>check for Menus active</Comment>
                    </Action>
                    <Action name="Find">
                    <Type>127</Type>
                    <Function>0</Function>
                    <DTIndentLevel>0</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>0</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel>call menu</JumpToLabel>
                    </ErrorHandling>
                    <FindText>Install Menu</FindText>
                    <Variable>%hWnd01%</Variable>
                    </Action>
                    <Action name="Find">
                    <Type>127</Type>
                    <Function>0</Function>
                    <DTIndentLevel>0</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>0</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel>call menu</JumpToLabel>
                    </ErrorHandling>
                    <FindText>Game Menu</FindText>
                    <Variable>%hWnd02%</Variable>
                    </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>%hWnd01% &amp;gt;= 1</Condition>
                    </Action>
                    <Action name="GOTO">
                    <Type>209</Type>
                    <Function>1</Function>
                    <DTIndentLevel>1</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Label>exit</Label>
                    </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="GOTO">
                    <Type>209</Type>
                    <Function>1</Function>
                    <DTIndentLevel>1</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Label>call menu</Label>
                    </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="Blank Line">
                    <Type>203</Type>
                    <Function>2</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>call menu</JumpToLabel>
                    </ErrorHandling>
                    <Condition>%hWnd02% &amp;gt;= 1</Condition>
                    </Action>
                    <Action name="GOTO">
                    <Type>209</Type>
                    <Function>1</Function>
                    <DTIndentLevel>1</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Label>exit</Label>
                    </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="GOTO">
                    <Type>209</Type>
                    <Function>1</Function>
                    <DTIndentLevel>1</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Label>call menu</Label>
                    </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="Blank Line">
                    <Type>203</Type>
                    <Function>2</Function>
                    <DTIndentLevel>0</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    </Action>
                    <Action name="Blank Line">
                    <Type>203</Type>
                    <Function>2</Function>
                    <DTIndentLevel>0</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    </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>NO Menu active</Comment>
                    </Action>
                    <Action name="LABEL">
                    <Type>208</Type>
                    <Function>1</Function>
                    <DTIndentLevel>0</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Label>call menu</Label>
                    </Action>
                    <Action name="IF">
                    <Type>200</Type>
                    <Function>1</Function>
                    <DTIndentLevel>1</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>0</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel>Loopstart</JumpToLabel>
                    </ErrorHandling>
                    <Condition>%RegData% = TRUE</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>Loopstart</JumpToLabel>
                    </ErrorHandling>
                    <FileName>%InstalledTo%\start.exe</FileName>
                    <CommandLine/>
                    <WorkingDir/>
                    <RunMode>0</RunMode>
                    <WaitForReturn>0</WaitForReturn>
                    </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="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%\setup.exe</FileName>
                    <CommandLine/>
                    <WorkingDir/>
                    <RunMode>0</RunMode>
                    <WaitForReturn>0</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="Exit">
                    <Type>2</Type>
                    <Function>0</Function>
                    <DTIndentLevel>2</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    </Action>
                    <Action name="Blank Line">
                    <Type>203</Type>
                    <Function>2</Function>
                    <DTIndentLevel>2</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    </Action>
                    <Action name="Blank Line">
                    <Type>203</Type>
                    <Function>2</Function>
                    <DTIndentLevel>2</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    </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>kill</Comment>
                    </Action>
                    <Action name="LABEL">
                    <Type>208</Type>
                    <Function>1</Function>
                    <DTIndentLevel>0</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Label>exit</Label>
                    </Action>
                    <Action name="Exit">
                    <Type>2</Type>
                    <Function>0</Function>
                    <DTIndentLevel>0</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    </Action>
                    </IR_ACTIONS_LIST>
                    </pre><hr />

                    Comment


                    • #11
                      Re: Help with windows and terminating windows

                      My motto is that the "best" way is the one that works quickly. Here at Indigo Rose we don't have any sense of preference for "more elegant code" when providing support. The only concern we have is that you find a way to achieve the results you need quickly and easily. So in short the "best" way is the way that works for you...



                      Corey Milner
                      Creative Director, Indigo Rose Software

                      Comment


                      • #12
                        Re: Help with windows and terminating windows

                        Yes, I generally share that attitude. Just verifying since this all is pretty new to me. I´m a graphic artist by origin .

                        Thanks anyway for all the support so far. You guys rock!

                        Comment

                        Working...
                        X