Jump to content
Macro Express Forums

hpbdesign

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About hpbdesign

  • Rank
    Newbie
  1. Hi all, I am stuck hope someone can help me please. This is my Macro to close a search control: <WAIT FOR CONTROL Control="%Error1%" Option="\x06" Indefinite="TRUE" Hours="0" Minutes="0" Seconds="0"/> <TEXT TYPE Action="0" Text="<ENTER>"/> <IF CONTROL Option="\x06" Variable="%Suche ergebnislos%"/> <GET CONTROL Flags="0" Program_Name="EXCEL.EXE" Class="#32770" Title="Microsoft Excel" Control="\"OK\",\"Button\"" Variable="%Suche ergebnislos%" Caption="Microsoft Excel" Partial="FALSE" Wildcards="FALSE"/> <SET FOCUS Control="%Suche ergebnislos%"/> <TEXT TYPE Action="0" Text="<ESC>"/> <TEXT TYPE Action="0" Text="<ESC>"/> <END IF _COMMENT="1"/> Once the control is focused it closes the Control, the problem I have got is that once the control is not displayed I get the error control does not exist. No matter what I have tried I cant seem to catch that error message. What would be the correct way to capture the error message "Control does not exist" please. Kind regards Hans Peter Betzler
  2. Hi all, I am stuck hope someone can help me please. This is my Macro to close a search control: <WAIT FOR CONTROL Control="%Error1%" Option="\x06" Indefinite="TRUE" Hours="0" Minutes="0" Seconds="0"/> <TEXT TYPE Action="0" Text="<ENTER>"/> <IF CONTROL Option="\x06" Variable="%Suche ergebnislos%"/> <GET CONTROL Flags="0" Program_Name="EXCEL.EXE" Class="#32770" Title="Microsoft Excel" Control="\"OK\",\"Button\"" Variable="%Suche ergebnislos%" Caption="Microsoft Excel" Partial="FALSE" Wildcards="FALSE"/> <SET FOCUS Control="%Suche ergebnislos%"/> <TEXT TYPE Action="0" Text="<ESC>"/> <TEXT TYPE Action="0" Text="<ESC>"/> <END IF _COMMENT="1"/> Once the control is focused it closes the Control, the problem I have got is that once the control is not displayed I get the error control does not exist. No matter what I have tried I cant seem to catch that error message. What would be the correct way to capture the error message "Control does not exist" please. Kind regards Hans Peter Betzler
×
×
  • Create New...