Jump to content
Macro Express Forums

genzyme2

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by genzyme2

  1. I created a macro that waits 30 seconds and then checks for a running program. If the program is running, it waits 5 minutes and terminates the process if it is still running: <DELAY Flags="\x01" Time="30"/> <IF PROGRAM Option="\x01" Program="WINSCP.EXE"/> <DELAY Flags="\x00" Time="300"/> <IF PROGRAM Option="\x01" Program="WINSCP.EXE"/> <TERMINATE PROCESS Window="FALSE" Name="WINSCP.EXE" Partial="TRUE" Wildcards="FALSE" Timeout="1000"/> <END IF/> <END IF/> <MACRO STOP/> When the macro finishes executing, it types a keystroke. When I had Excel open, it typed a period in the active cell. When I have the cmd or Matlab open, it types the letter 'e' as it exits. Has anyone seen anything like this? Angela Macro Beginner
  2. I have a basic macro that launches a program, activates the window, and then types a series of keystrokes to run the program: <PROGRAM LAUNCH Path="C:\\Program Files\\Agilent\\DNA Analytics 4.0.76\\DNA ANALYTICS 4.0.76.EXE" Mode="\x00" Default_Path="FALSE" Wait="1" Get_Console="FALSE"/> <DELAY Flags="\x01" Time="15"/> <WINDOW ACTIVATE Title="DNA Analytics 4.0 - [ CGH ]" Exact_Match="TRUE" Wildcards="FALSE" _HANDLE="0x0006"/> <ON ERROR/> <CATCH ERROR Code="6"/> <DELAY Flags="\x01" Time="60"/> <WINDOW ACTIVATE Title="DNA Analytics 4.0 - [ CGH ]" Exact_Match="FALSE" Wildcards="FALSE"/> <END CATCH ERROR/> <END ERROR/> <DELAY Flags="\x02" Time="0859"/> <TEXT TYPE Action="0" Text="<CONTROL><TAB>"/> <DELAY Flags="\x02" Time="0859"/> <TEXT TYPE Action="0" Text="<TAB>"/> <DELAY Flags="\x02" Time="0859"/> <TEXT TYPE Action="0" Text="<DOWN ARROW>"/> <DELAY Flags="\x02" Time="0390"/> <TEXT TYPE Action="0" Text="<DOWN ARROW>"/> <DELAY Flags="\x02" Time="0859"/> <TEXT TYPE Action="0" Text="<ENTER>"/> <DELAY Flags="\x02" Time="1234"/> <TEXT TYPE Action="0" Text="<CTRL><TAB>"/> <DELAY Flags="\x02" Time="0859"/> <TEXT TYPE Action="0" Text="<CTRL><TAB>"/> <DELAY Flags="\x02" Time="0859"/> <TEXT TYPE Action="0" Text="<TAB>"/> <DELAY Flags="\x02" Time="0764"/> <TEXT TYPE Action="0" Text="<TAB>"/> <DELAY Flags="\x02" Time="0656"/> <TEXT TYPE Action="0" Text="<TAB>"/> <DELAY Flags="\x02" Time="0733"/> <TEXT TYPE Action="0" Text="<TAB>"/> <DELAY Flags="\x02" Time="0750"/> <TEXT TYPE Action="0" Text="<ENTER>"/> <DELAY Flags="\x02" Time="0750"/> <MACRO STOP/> When the computer is unlocked, the macro performs perfectly. However, when the workstation locks, the macro is misbehaving. According to the Macro log, the macro is executing all the commands however when I unlock the workstation, the program is opened but none of the keystrokes occurred. I have a feeling there is an issue with activating the window when the workstation is locked. For security reasons, I need a solution that does not involve leaving the workstation unlocked. Any help you can provide would be appreciated. Angela Macro Beginner
×
×
  • Create New...