Jump to content
Macro Express Forums

MykeV

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by MykeV

  1. Paul, Thanks for you help. Your suggestion worked like a charm.
  2. Cory, Thanks for the tip. I toyed around with the macro some more and came up with the following... <LAUNCH PROGRAM AND ACTIVATE WINDOW Title="TV" Exact_Match="FALSE" Wildcards="FALSE" Path="C:\\Program Files\\ATI Multimedia\\main\\ATIMMC.EXE" Mode="\x00" Default_Path="TRUE" Wait="1" Wait_For_Program="12"/> <TEXT TYPE Action="0" Text="<F3>"/> ;removes application window border and screen controls <WAIT FOR TIME TO ELAPSE Hours="0" Minutes="1" Seconds="0"/> <VARIABLE SET BOOL Destination="%ANS%" Command="263" Value="FALSE"/> <REPEAT UNTIL Variable="%ANS%" Condition="\x00" Value="False"/> <IF MESSAGE Caption="CNN" Message="Are You Still Watching CNN?" BtnMode="\x00" Default="FALSE" Left="Center" Top="Center" Monitor="0" Delay="10"/> <WAIT FOR TIME TO ELAPSE Hours="0" Minutes="1" Seconds="0"/> <END IF/> <END REPEAT/> <TERMINATE PROCESS Window="FALSE" Name="ATIMMC.EXE" Partial="TRUE" Wildcards="FALSE" Timeout="1000"/> To restate the purpose... The macro launches the video app. The video app runs for a period of time and then a pop up message is displayed, "are you still watching?", yes or no. If yes, the video plays for a little while longer. If no, the video app is closed. If "yes" is selected the macro enters a loop where after a period of time the message reappears and asks the "are you still watching" question and will continues to ask that question until there is no response, defaults to "no", exits out of the loop and closes the video app. The macro works if i let it default to "no". If i click "yes" to the message prompt, the macro seems to hang or just not work properly after that. Can you or someone please take a look at what i am doing and tell me where i am going wrong. Thanks.
  3. All, I'm running a simple macro illustrated below.. <LAUNCH PROGRAM AND ACTIVATE WINDOW Title="TV" Exact_Match="FALSE" Wildcards="FALSE" Path="C:\\Program Files\\ATI Multimedia\\main\\ATIMMC.EXE" Mode="\x00" Default_Path="TRUE" Wait="1" Wait_For_Program="12"/> <TEXT TYPE Action="0" Text="<F3>"/> ;removes application window border and screen controls <WAIT FOR TIME TO ELAPSE Hours="0" Minutes="1" Seconds="0"/> ;1 min is for testing purposes <IF MESSAGE Caption="CNN" Message="Are you still watching CNN?" BtnMode="\x00" Default="FALSE" Delay="10"/> <WAIT FOR TIME TO ELAPSE Hours="0" Minutes="1" Seconds="0"/> <ELSE/> <TEXT BOX DISPLAY Title="CNN" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs16 CLosing CNN\\f1 \r\n\\par }\r\n" Left="Center" Top="Center" Width="278" Height="200" Monitor="0" OnTop="FALSE" Keep_Focus="TRUE" Mode="\x01" Delay="5"/> <END IF/> <TERMINATE PROCESS Window="FALSE" Name="ATIMMC.EXE" Partial="TRUE" Wildcards="FALSE" Timeout="1000"/> The streaming video is brought up and runs for a short period or time. To determine if anyone is still watching the streaming video i display a message box. If the user clicks on the "yes" button in the message box the video app continues to run. After the "wait for time to expire" elapses the video app closes. I want to repeat (loop) this somehow so that as long as the user continues to click on the "yes" button the video app will continue to run. The default response to the "IF Message" is "no". If no one clicks on the "yes" button the video app closes out after the first pass of the "IF Message" statement or after no response after a pass (or many) within the "Repeat until" phase. With the "Repeat until" function i can't figure out how to set it up using variables and stuff. If i am totally wrong in what i am doing please let me know that also. Thanks. MEP.bmp
×
×
  • Create New...