Jump to content
Macro Express Forums

joe

Members
  • Posts

    1,002
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by joe

  1. External scripts seems like one of the most powerful and least documented features of M/E Pro

    Very true. Very powerful. I presume lack of documentation is because the developers of Macro Express assume the users have knowledge of the script language they are using.

     

    so I'm curious who is playing with them in what ways.

    My company, PGM, uses the External Script command all the time: date/time calcs, regular expressions, Excel DOM, file data, and all kinds of wonderful things.

     

    How would you return multiple variables from a HTA/HTML page?

    The only way to halt the macro until you receive a return value from your external script is to use the "Save console output to:" field, which means that your script must write a value to the console. The value will be saved in the variable you choose. I use it to return results from any function in the four allowed script languages. To return multiple values use a tab-separated string and the set a MX Pro array from it. Of course there are other ways to return multiple variable values from a script: write them to a known location in the Registry, write them to a playable macro and then play the macro, and so forth.

     

    How would you deal with a user filling out half an HTA/HTML page with a variety of form elements, (radio, multiple select, text area, etc) then coming back to it a day later?

    Your macro/script would need to store data for the HTA fields in, say, an INI file which can be read and written to by any of the script languages. There are other ways, of course, but this would seem to be straightforward.

  2. One solution is to replace each percent sign in the URL with a variable:

    <VARIABLE SET TO ASCII CHAR Value="37" Destination="%PCT%"/>
    <VARIABLE SET STRING Option="\x00" Destination="%T[1]%" Value="http://data.un.org/Data.aspx?d=MDG&f=seriesRowID%3a563%3bcountryID%3a100%2c108%2c116%2c12%2c124%2c140%2c152%2c156%2c170%2c178%2c180%2c188%2c191%2c212%2c218%2c222%2c231%2c24%2c246%2c250%2c276%2c288%2c300%2c308%2c32%2c36%2c384%2c4%2c40%2c50%2c56%2c64%2c68%2c70%2c752%2c756%2c76%2c818%2c826%2c84%2c840%2c854&c=2,3,4&s=_countryEnglishNameOrderBy:asc,year:desc&v=1"/>
    <VARIABLE MODIFY STRING Option="\x0F" Destination="%T[1]%" ToReplace="%" ReplaceWith="%PCT%" All="TRUE" IgnoreCase="FALSE"/>
    <WEB SITE URL="%T[1]%" Wait="FALSE" Default_Browser="TRUE" _IGNORE="0x000C"/>

  3. I would like to know how it is determining whether the text has been played back. I am concerned that it will not work in all applications. EG a java applet.

    My understanding Cory is that it simply waits until the keyboard buffer is empty. I am guessing that MX Pro, like MX3, uses an API call to check for characters in the buffer. Most higher level languages like Delphi have the ability to run API calls.

     

    I cannot speak to Java Applets, but generally, this will not work on any program that bypasses the keyboard buffer, or uses its own.

  4. I would like to know about how it works with MEP. Are there any pitfalls or limitation?

    There are zero problems . MX Pro as well as MX 3 work beautifully with VMware. There are no pitfalls. There are no limitations.

     

    Are there better VM software apps? What are you using...

    I don't know if there are better ones or not. I have been using VMware for years.

     

    As to the case study; I am using ESXi from VMware. It is a free bare-metal operating system for servers and is the ONLY way to go if you are going to have a server with different virtual machines running on it. The HP ML370 G5 server has ESXi running 24 virtual machines simultaneously. And each of them are running MX Pro for this and that and everything else.

  5. I don't know Cory, the percent sign is pretty common for script style programs as well as the dollar sign. The pipe and other keyboard characters would have their own baggage as well.

     

    Would something like this be possible to build a string?

     

    Variable Set String %T[1]% to "%"
    Variable Modify String %T[1]%: Append Text (T[1]%)

    What you end up with when MX Pro substitutes the variable %T[1]% is the string "%T[1]%".

  6. I have seen this many times before in Beta and have mentioned it to ISS as well but the circumstances have always been a little suspect so I don't think anyone has taken it seriously. I was wondering if anyone else is seeing something similar or has any idea what's going on.

     

    This seems to happen whenever I upgrade to a newer build. This time I know exactly how things were set up and witnessed this so I know for sure something is going on here. On a 2003 Terminal Server with multiple user profiles I have my own profile where I often develop macros for my client. There is a live file for users and a development copy I work in. Both are stored on another file server. In 4.0.0.1 I had all the users set with the option not to launch at startup but I do have a shortcut to their macro file to launch. IE I'm launching the MEX, not the EXE. So before today they are all in the user copy and I am in the dev copy. Perfect. Now today I install 4.0.1.1 and check my MEP and it has only loaded my dev copy. But all the other user profile find both the dev copy and the live copy open on their profiles! This causes all sorts of mayhem. I checked their preferences and MEP is not set to load at startup. BTW months ago I also saw this behavior on a regular Windows 2000 machine.

     

    So how is this happening? How does MEP running under user profile A decide to open a file only ever opened in user profile B? Is there something I'm doing wrong or is this some kind of bug?

     

    Update: One user reports only having one file open after logging in. This user was not logged on when I did the MEP update.

     

    Not sure if this has anything to do with it, but whenever an update is done all of my Macro Explorer column settings revert back to some sort of a default as if they were never saved. So maybe your problem is things are getting removed when a new install is done, too. I am only making a wild guess here. Grasping at straws as it were.

  7. I add a shortkey activation that is unused by any other enabled macro and then click Save and Close, but get "The ShortKey activation may conflict with one or more macros. You may have multiple macros launched when using this activation."

    According to the WhatsNew.txt it was fixed. Or something like it was fixed. If you are still experiencing it I would place another bug notification.

     

    Macro Express Pro v 4.0.1.1
    6. Fixed a problem in the menu builder which would generate duplicate
    shortkey warnings when saving a menu.
    46. Made a change to allow punctuation characters to be entered as a part
    of a shortkey activation.

  8. Doesn't seem to make any difference. I had no problem with ME. It started with MEP.

    It happens to me all the time, I just never reported it because it happens, or did happen, with a couple of other programs at diffrent times, too. Not being an expert in these things I simply assumed it to be a tick in Windows shutdown procedures. I could be wrong. Probably am wrong.

  9. ... but I was hoping for something a little more concise.

    Well here is something you can use. The attached zip contains both an executable and a Macro Express Pro library file (mex). Have at it. From the Notes tab of the macro:

     

    {Taskbar Client Desktop Metrics}
    
    Returns taskbar and client desktop metrics to MX Pro. Client desktop metrics exclude space used by the taskbar if it is visible.
    
    Macro author: Joseph Weinpert (Macros Limited LLC)
    Executable by: Floyd P Watergil (Macros Limited LLC) based on code writtten by Bruce Huber
    Released: Jan-25-2009
    
    Known issues
    1) Can produce strange but understandable results when using multiple monitors if the taskbar is positioned off of the primary monitor.
    2) Not tested with Vista but should be okay.
    
    Runtime program locations
    We keep executable programs such as this within the Macros Limited LLC subfolder %MacrosLimitedPath% but it doesn't mean that
    you have to. Feel free to place them wherever it suits best. Just be sure to change the required variables in the script.
    
    Return value
    MX Pro launches the executable and then waits for a string to be returned from it, which takes only a couple of milliseconds. The return
    string is a locally scoped variable named %returnValue% that contains 10 elements separated by commas. The first 6 elements are
    metrics about the taskbar. The last 4 elements deal with the client desktop metrics.
    
    Taskbar -
    1. Visible or Hidden
    2. Positioned Left, Right, Top, Bottom, or Unknown
    3. X position
    4. Y position
    5. Width
    6. Height
    
    Client desktop -
    7. X position
    8. Y position
    9. Width
    10. Height
    
    Notes
    1) If the taskbar is hidden the width and height of the client desktop will match that of the whole desktop.
    2) The whole desktop size is inclusive of all monitors.

    TaskbarClient.zip

  10. is there any limit to the multiple choice boxes (had been 36 entries maximum), is this any larger now?

    The allowable choices have doubled in size to 72. The sequence is A-Z, 0-9, AA-ZZ, and 00-99.

     

    There is a question of whether or not you can go beyond this limit because there seems to be a bunch of blank lines at the tail end that can also hold values. My testing proved inconclusive, but for sure there are at least 72 allowable lines.

  11. I had been really hoping that the next version of ME would have the option, but I can't find it, and don't know that it is part of this build.

     

    Alas, it is not built in to this release of Macro Express Pro and I do not know if it is planned for any future build. However, it is being considered as part of our (Professional Grade Macros) Macro Express Extended Library product, which is the name of the next generation PGM Functions Library. The release date is still to be determined. We have a ways to go.

  12. Welcome to the Macro Express Pro forum!

     

    Congratulations to the great folks at Insight Software Solutions, Inc. for the development of this superior product.

     

    I was honored to be an alpha and beta tester for Macro Express Pro and am happy to invite all of you Macro Express 3 users to a new and wonderful automation tool.

     

    Have at it.

     

    - Joe

×
×
  • Create New...