Jump to content
Macro Express Forums

jrgreenman

Members
  • Posts

    77
  • Joined

  • Last visited

Posts posted by jrgreenman

  1. I seem ot be having some trouble with activiations using the Windows Key. Win+Z works on my Win7 machines, but after upgrading one of my laptops to Win10, it no longer works. Neither does my Win+G macro. Did Win10 seize control of some more key combinations that makes them unavailable in Macro Express?

  2. Paul, thanks for the tip. I can't use AutoIt at this point because I am sharing macros throughout my organization and installing AutoIt on all the employees' PCs so that this works for everyone creates a maintenance issue my IT folks won't sign up for.

     

    But I was able to make use of Window Handles in order to overcome my current issue. As long as the issue doesn't become chronic, using MEP's Window Handle capability might do the trick.

     

    But I do hope they update MEP at some point to address the underlying issue of not having a way to prevent hidden windows interfering with visible windows.

     

    Thanks again for the input.

     

    Jace

  3. I think I'm having a similar problem. I open an Outlook folder whose window title is "PubContacts - Business in Public Folders - Microsoft Outlook" and then attempt to "Activate" the window using "Partial Match" and the string "PubContacts - Business". But it fails consistently, even if I have just a one-line macro containing the Activate command.

     

    In the past, this has been affected by the existence of hidden windows with conflicting titles. And sure enough, when I look at the hidden windows, I find two additinioal hidden with the same title.

     

    So far, I've never had a need to access hidden windows. They have always just been something I have to work around.

     

    Is there way to tell the Activate command to ignore hidden windows and just activate the visible window?

     

    Jace

  4. The Win7 systme tray does not show the running man because the icon is "hidden" (along with 20 or others that I don't want to show). But when I go to the "hidden" list and Customize it tell Windows to tell windows to "Show icons and notifications" it is onlyeffective for the named macro that is currently executing.

     

    Is there a way to change the tooltip associated with the runnig man so his "name" isn't different for every macro?

     

    How can I tell windows to ALWAYS show the running man?

     

    Jace

  5. Confirmed. I am using OL 2010 and the from control highlights fine but I can't get the contents into a var. I can't get To either. Only the subject works. Odd. Might want to contact ISS support on this one. Have no idea why that's not working.

     

    You could get this and many more values from the Internet Headers from the message properties. Alt>F>I>V in OL 2010. Just need to parse it out which isn't difficult.

     

    Oh, my problem isn't even quite that bad. I'm using OL 2007. I can highlight all the controls and capture the z-order w/ Get Control. My problem is just that it doesn't actually get the recipient off the "To" line. I can get "From" and "Subject" though. Will submit a report to ISS.

     

    As always, thanks for the quick reply, and for the SMTP headers tip, Cory. Had not thought of that workaround.

  6. I am attempting to get the value of the "To" line in an email message that's in my inbox. So I open the message and use Get Control to retrieve the text from the control. But the text keeps coming up blank. I can use Get Control to retrieve the "From" line (screenshot001), and the subject (screenshot002), but attempts to get text from the "To" or "cc" lines returns a blank string (screenshot003; actually I think single space). This worked perfectly for so long, but I haven't use the macro for a while and so can't know if an upgrade to MEP caused the change in behavior or something else. Can someone duplicate the behavior? Any ideas on what's wrong? Or even an alternate way to obtain the name/email of a recipient frmo an existing message in the inbox? Thanks. Jace

    post-57-0-39504000-1306386771_thumb.jpg

    post-57-0-96053500-1306386771_thumb.jpg

    post-57-0-32759200-1306386773_thumb.jpg

    post-57-0-02262200-1306386774_thumb.jpg

    post-57-0-91194800-1306386774_thumb.jpg

    post-57-0-56531600-1306386775_thumb.jpg

  7. Since it has been a wile, I thought I'd bump this topic and see if there were any further thoughts.

     

    Since upgrading the Win7, I now found that the OS claims ownership of the Win-P and Ctrl-Win-P (swell).

     

    So while I'm now thinking about other intuitive keystrokes to use for printing the screen, I stumbled across my old thread and thought I'd see if there were any current thoughts on supports remapping of the PrtSc key(s) in MEP.

  8. I'm surprised to read this. For a while I was using RDP extensively inder XP since my development machine was remote, and pressing Win-L always locked the local workstation (and I don't know whether the remote one was locked or not).

     

    Yes, it works that way when using RDP. But when using Remote Administrator (Famatech.com), it is different. I guess I thought it had something to do with Macro Express, but apparently the behavior you see nominally using RDP w/ both XP and Win 7 is "normal".

     

    Guess I'm outta luck.

  9. Great idea, Paul! But I don't really want to disable it entirely. I just want the Win-L keystroke to get passed to my remote session when it has focus.

     

    I think the problem is that, even when the remote session has focus, Win 7 is acting on the Win-L keystroke itself. That behavior is different than XP.

     

    In Win 7, the OS seems to pass all other system hotkeys to the remote session when it has focus (e.g. Win-E, Win-R etc). But Win-L locks the local workstation whether the remote session has focus or not. :(

     

    I initially thought your idea would work if I disabled the Lock Workstation function and then wrote a macro to run the Lock Workstation command and use Win-L to activate it. But when I disable the lock capability using the registry, it really turns it off at a fundamental level so the capability is completely unavailable.

     

    Maybe I can figure out how to remap the Windows 7 Win-L to something else so I can make it available in a macro. But even that might still cause the local workstation to lock instead off the workstation on the remote session.

     

    Thanks for the suggestion though.

  10. When I have a remote session active (I use Remote Administrator, www.famatech.com) and press Win-L to lock the remote workstation, MEP locks the local workstation at the same time. But this only occurs under Windows 7. Under XP, MEP catches the keystroke and passes it onto the remote session as expected (e.g. the local workstation does not act on the "lock" keystroke).

     

    I've tried "Restore Keyboard and Mouse Hooks", but the local PC is still acting on the Win-L keystroke.

     

    Is there way under Win 7 to make sure that MEP gets the keys like XP does?

  11. Some programs use windows that are not really "windows". QuickBooks does this a lot which can make it tough to navigate reliably using Get Control, and Capture Control. But we limp along. :)

     

    Anyway, sometime QuickBooks unilaterally resizes these "non-windows" (acc'ding to Get Control, they are something called a MauiReport).

     

    Can you think of a good way (or any way) set the coordinates and resize these things?

  12. Thanks for all the tips guys. In the end, I piggybacked off the PGM Macros (the PGM library has some great date/time functions already) to come up with the following macro "Convert Date To Decimal"

     

    <COMMENT Value="Set String \"DateString\" before calling. Returns \"DateDecimal\""/>

    <WRITE REGISTRY VALUE Key="HKEY_CURRENT_USER\\Software\\Professional Grade Macros\\Parameters\\ParameterString1" Destination="%DateString%"/>

    <MACRO RUN Use_ID="FALSE" Name="{ DateTime - Format Input String }" ID="-1" Wait="TRUE"/>

    <READ REGISTRY VALUE Key="HKEY_CURRENT_USER\\Software\\Professional Grade Macros\\Parameters\\ReturnString1" Destination="%lclDateString%"/>

    <WRITE REGISTRY VALUE Key="HKEY_CURRENT_USER\\Software\\Professional Grade Macros\\Parameters\\ParameterString1" Destination="%lclDateString%"/>

    <MACRO RUN Use_ID="FALSE" Name="{ DateTime - Date to Julian }" ID="-1" Wait="TRUE"/>

    <READ REGISTRY VALUE Key="HKEY_CURRENT_USER\\Software\\Professional Grade Macros\\Parameters\\ReturnDecimal1" Destination="%DateDecimal%"/>

     

     

    The nice thing about the above is that the PGM macro "{ DateTime - Format Input String }" takes a variety of date formats as input strings. So this is pretty flexible.

     

    Finally, in my case, I'm seeding DateString from a known-good date (not user-typed input) and so stripped out all the error-checking. Maybe I'll be sorry, but not yet. :)

     

    Usage is as follows:

     

    <VARIABLE SET STRING Option="\x00" Destination="%DateString%" Value="12/22/2010" NoEmbeddedVars="FALSE"/>

    <MACRO RUN Use_ID="FALSE" Name="Convert Date to Decimal" ID="-1" Wait="TRUE"/>

    <VARIABLE SET DECIMAL Option="\x00" Destination="%Result%" Value="%DateDecimal%"/>

     

     

    I think three lines is as tight as I can make it. The most elegant solution would be if MEP supported passing in/out parameters to macros directly using "Macro Run". Then of course we would not have set input values nor retrieve output values using individual lines of code, but could write something like:

     

    Macro Run: Convert Date to Decimal ("12/22/2010", %Result%)

     

    Can I get an Amen!?!?! :)

×
×
  • Create New...