Jump to content
Macro Express Forums

jowensii

Members
  • Posts

    85
  • Joined

  • Last visited

Posts posted by jowensii

  1. Take a look here for copying file paths directly to clipboard. I use it every day.

     

    http://home.worldonline.dk/ninotech/freeutil.htm

     

    Ninotech Path Copy 4.0

    Ninotech Path Copy is a shell extension for Windows 95, 98, NT4, 2000, and XP that enables to copy the path of a file or directory to the Clipboard. You can then paste the path in to your document, e-mail, etc. You copy the path of a file or directory by right-clicking it in the Windows Explorer and choosing Copy Path from the context menu. The context menu then offers nine standard ways of copying the path, in addition to the user defined copying methods that you create yourself:

     

    - Short Name: File/folder name converted to 8.3 characters

    - Long Name: File/folder name

    - Short Folder: Parent folder name converted to 8.3 characters

    - Long Folder: Parent folder name

    - Short Path: Full path name converted to 8.3 characters

    - Long Path: Full path name

    - Short UNC Path: Full UNC path name converted to 8.3 characters (only enabled in network environment)

    - Long UNC Path: Full UNC path name (only enabled in network environment)

    - Internet Path: Full UNC path name converted to Internet path (only enabled in network environment)

    - Setup... Create your own copy methods for copying the path names.

  2. crimso,

     

    I use putty daily for kicking of backups and have accomplished what I believe you are looking for with the following code:

     

        // Wait for backup setting prompt 
       Repeat Until %D1% = 1
         Activate Window: "DAYMISYS1.qdx.com - PuTTY"
         Mouse Move Window 12, 11                        <-------  Moves mouse to upper left corner to activate menu options
         Mouse Right Button Click
         Delay 0.1 Seconds
         Text Type: o                                    <-------  Activates Copy All to Clipboard command   
         Delay 0.2 Seconds
         If Clipboard Contains "or select a number to change a setting:"      <-------  Look for text of prompt that I am waiting for
         Repeat Exit                                     <-------  If found, exit loop and continue macro
         End If
         Delay 1 Seconds                                 <-------  If prompt is not found, continue loop
       Repeat End

     

    <REM2:Wait for backup setting prompt ><REP3:08:000001:000003:0001:0:01:1><ACTIVATE2:DAYMISYS1.qdx.com - PuTTY><MMW2:12,11><RCLK><DELAY:.1><TEXTTYPE:o><DELAY:.2><IFOTH2:08:1:or select a number to change a setting:><EXITREP><ENDIF><DELAY:1><ENDREP>

  3. There is a "Wait Text Playback" <WAITPB> in Text commands section. According to the help section it probably wont work after a paste command.

     

    Wait for Text to Play Back

     

    This option would only be used immediately after a Text command. You don't want the macro to continue on before the text from your text command has finished playing back. Selecting this option will stop the macro from continuing until the text has finished playback.

     

    You could code some ME commands to paste everything from the clipboard contents except for the last character. Then use the Text Type command to enter the last character, followed by the "Wait Text Playback" command.

  4. We are working on adding this feature to a new version of Macro Express.

     

    Kevin, are you able to give us an idea of when we might expect the next version of ME? You have dropped some hints lately about new features that are in the works. Some of these features that you mention sound exciting and much needed. A portable version would be awesome. I don't know about everbody else but I'm ready for some of these changes!

  5. You know, I think it would have taken you just the same amount of time to look up the break command in ME's excellent help file instead of asking someone else to explain it to you!
    Finally, someone has said it. ME's help documentation is very good and I think often times overlooked. I love the posts in which it is painfully obvious that little or no effort was exerted before turning the ME forum and hoping for a quick answer. Or better yet, submit a post and maybe someone will create the macro for you.

     

    I'm not accusing koden of this and paul may have been a little blunt. This a friendly, helpful group and hope it remains that way but it's certainly long overdue that someone put this out there.

  6. C:\WINDOWS\SYSTEM32\javaw.exe -cp jts.jar;jcommon-0.9.0.jar;jfreechart-0.9.15.jar;jhall.jar;other.jar -Dsun.java2d.noddraw=true -Xmx160M jclient/LoginFrame C:\Jts

     

    Try this bit of code to launch the program and avoid the need for the hotkey

    <LAUNCHDEL2:0:01C:\WINDOWS\SYSTEM32\javaw.exe<PARAM>-cp jts.jar;jcommon-0.9.0.jar;jfreechart-0.9.15.jar;jhall.jar;other.jar -Dsun.java2d.noddraw=true -Xmx160M jclient/LoginFrame C:\Jts>

  7. Have you tried F2, F3, F5, F6 and so on. Maybe one or more of these are ignored by your app.

     

    I use the functions keys along with a Text Box Display prompt (that leaves the focus with the application) to resume paused macros all the time. I normally avoid F1 and F4 but then I just find one that doesn't interfere with the app/ME macro that I am working with. Since my Text Box Display leaves the focus with the app, when I press the function key to resume macro, I'm really sending it to the app. Since I've chosen one that the app ignores, I'm good to go.

     

    Text Box Display: Macro Paused...Press F2 ro resume macro.
    Wait for Key Press: F2
    Text Box Close: Macro Paused...Press F2 ro resume macro.

     

    <TBOX4:F:6:CenterCenter000278000200:000:Macro Paused...Press F2 ro resume macro.Press F2 ro resume macro.><WAITKEY2:000000:000000:37><TBCLOSE:Macro Paused...Press F2 ro resume macro.>

  8. jrgreenman,

    Would you be able to post an example of your working VBA code?

     

    TwoWheels and jrgreenman,

    TwoWheels  - The Windows API approach should be a fair amount faster.

    This question is for both. Is the Windows API route really that much faster than starting ME macro with MeProc.exe and command line switches?

×
×
  • Create New...