Jump to content
Macro Express Forums

ward

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by ward

  1. Thanks for the suggestion, PatrickB; I'll try that.

     

    Ward,

     

    Many times an application will have more than one Control for a given field. In general this is because of some sort of caching of the forms the application is doing. So maybe sometimes a macro works and other times it does. What you can do is multiple "Get Controls" like the following example:

     

    <LOGERR:N>
    <IFOTH:04:2:InfoWeb>
    <ACTIVATE2:InfoWeb>
    <ENDIF>
    <PAUSE2:000015,000015No message.T>
    <TEXTTYPECT:2:d>
    <WAITPB>
    <TEXTTYPE:<TAB>>
    <WAITPB>
    <GETCONTROL2:01:ÄD
    :WindowsForms10.window.8.app3InfoWeb Knowledge Center / Content / v-wardwe003:6WindowsForms10.SysTabControl32.app312WindowsForms10.window.8.app320WindowsForms10.EDIT.app3>
    <IFCONTROL:06:01>
    <GETCONTROL2:01:ÄD
    :WindowsForms10.window.8.app3InfoWeb Knowledge Center / Content / v-wardwe003:6WindowsForms10.SysTabControl32.app312WindowsForms10.window.8.app320WindowsForms10.EDIT.app3>
    <ENDIF>
    <IFCONTROL:06:01><GETCONTROL2:01:ÄD
    :WindowsForms10.window.8.app3InfoWeb Knowledge Center / Content / v-wardwe003:6WindowsForms10.SysTabControl32.app312WindowsForms10.window.8.app320WindowsForms10.EDIT.app3>
    <ENDIF>
    <VARGETCONT:1:1>
    <TBOX4:T:4:CenterCenter000278000200:000:TESTT1 = %T1%>
    <MSTOP>
    

     

    So you "Get Control", then "If Not Control Enabled" you grab the second Control, and so on and so on for as many as you find. To figure out what is changing in the Control, I run the macro over and over until it fails (on my machine as well as others) and then duplicate the If/Get/End If and capture the Control that just failed (which should be different from the previous ones).

  2. There are many forms where controls don't work, or don't work the way you need them to.

     

    Straight typing with a macro should work. If you can type by hand, the macro should be able to type. On some forms, you might have to position for typing by clicking the mouse in the first field to be typed, or by clicking somewhere on the form and then tabbing into the first field. Take note of exactly how you do it by hand, then simulate that with the macro.

     

    Thanks, rberq, for the suggestion. I tried to use the Mouse Locator to determine a screen or window position to click on, but as soon as I moved the mouse pointer onto the application, the Screen Position and Active Window numbers stopped--as if I'd moved onto a dead zone or something.

     

    So I estimated the position required--anywhere in the app would do--and specified a mouse click there plus some tabs. But again nothing happened; the app took focus but no tabbing occurred in its window, and no entry in the Error Log.

     

    Looks as if this app is unmacroable. . . :(

  3. I'm trying to use a macro on an application called InfoWeb Knowledge Center. I can get the app to take focus, but after that it shows no changes; no keystrokes are carried out, and no tabbing from field to field. I've tried both Type Text Normally and Send Text to Control. No joy from the former, and for the latter I keep getting

     

    "The specified control, C2, could not be found."

     

    The error log says

     

    "5/19/2010 8:31:01 AM The macro "Test KC Macro" has been aborted. The specified control, C2, could not be found."

     

    Does Macro Express simply not work on certain types of applications?

     

    I'm using Windows 7 on a 64-bit machine. Here's the script:

     

    <LOGERR:N>

    <IFOTH:04:2:InfoWeb>

    <ACTIVATE2:InfoWeb>

    <ENDIF>

    <PAUSE2:000015,000015No message.T>

    <TEXTTYPECT:2:d>

    <TEXTTYPE:<TAB>>

    <GETCONTROL2:01:ÄD

    :WindowsForms10.Window.8.app3InfoWeb Knowledge Center / Content / v-wardwe003:6WindowsForms10.SysTabControl32.app312WindowsForms10.Window.8.app320WindowsForms10.EDIT.app3>

    <MSTOP>

×
×
  • Create New...