Jump to content
Macro Express Forums

MacroPolo

Members
  • Posts

    26
  • Joined

  • Last visited

Posts posted by MacroPolo

  1. Hello,

     

    A few weeks ago, I saw the download link on Insight's webpage (www.macros.com) for the ME Pro version. (I think it was 4.0.0.0).

     

    The last few days, I've gone to the download page to get the trial program, and its not there anymore.

     

    Am I just blind as a bat, or am I missing the location of the link to download the trial program?

     

    I only see the links to download version 3.7d (exe or zip).

     

    Thanks,

  2. Instead of

    Text Type: <CONTROL>c

    try using

    Text Type: <ControlDown>c<ControlUp>

     

    Instead of

    Delay 100 Milliseconds

    after the copy-to-clipboard, use Options | Preferences | Delays | Delay after clipboard -- I believe the default is 250 milliseconds, which seems to work pretty well, if not bump it up to 500 milliseconds and try that. Using the Preference just saves you having to code the delay after each copy-to-clipboard.

     

    No guarantees, but maybe these methods will help.

     

    I'm glad the issue was something else and is now resolved.

     

    However, in addition to the solutions above which work for me too, I also use the "Wait Text Playback" command immediately after a Text Type command. The wait text playback also helps when nothing else seems to work, especially with copying and pasting text from the clipboard. Perhaps our macros sometimes run faster than the computer can keep up!?

  3. It seems the delete file function in Macro Express doesn't work as intended, it doesn't delete the file, it simply moves it to the recycle bin.

     

    As part of the macro, I'm dynamically creating temporary files that have sensitive information in them, when I'm done, they need to be automatically deleted.

     

    I don't know if there's a different way to do this, or if I need to just submit a bug report?

    We also ran into this same problem a few years ago.

     

    Our 'work around' involves a few things:

     

    First, after the macro is finished with the temporary file, the macro Renames the file to "TRASH" (no file extension). If it was a notepad (.txt) file, the renaming part destroys the association to notepade so the contents can't be viewed.

     

    Second, you can use the "Set File Attributes" command to hidden=true.

     

    Third, we used the Move File command, and moved it to our own "Trash" folder on our network. By moving it to a folder (and not the windows recycle bin), it will overwrite the previous file named "TRASH". (There can only be 1 file named "TRASH" in that folder.)

     

    Finally, you can have a scheduled macro that runs once a day (or whenever) move the "TRASH" file to the window's recycle bin using the "Delete File" command in Macro Express. Originally, we used to do this once a day, then we just stopped moving the file to the Window's recycle bin. By moving the file on our network to a secret "Trash" folder, we felt it was sufficient since the file was always being overwritten, and was 'hidden'.

     

    Ahhh.. i just had an epiphany. After you have moved the file to your secret "Trash" folder, you could have macro express create an empty notepad file, and then rename it to "TRASH", and then move it to your secret "Trash" folder (which will override the file containing potentially sensitive information with a blank file with no data).

     

    I think I will update our macro to do this! :)

  4. The point is to make something that works in a game. I'm sure you met game where you need to remove pressure off a key and press it again for it do do "whatever" action.

     

    This mean you HAVE to press the key over and over to do it (you can't just hold it, its not like text). This is the point of what I'm trying to do.

     

     

    It needs to be literally like a turbo key, having to shut it down manually would make it overcomplicated for gaming purpose. I guess the basic of what you posted wold works, just need a way to stop it when you don't press the key anymore. I'll try and see but I don't think I will figure it out alone. But thanks for your post.

     

    EDIT: I can't even find the Loop command... :/ Well, there are Repeats commands but I don't know how they work I can't make them work.

     

    I've written many macro express macros for games. Sometimes it takes a little work to get the macro to do the function you need. If you could provide more information regarding which game, and which function you are trying to do, I would be happy to help out further.

     

    I have a macro that can do what you are asking, but I have a better macro that uses the mouse instead of the keyboard.

     

    In the example above, it asks you to assign the hotkey to something like ALT+A. For games, I always try to use an F key, (ie: F1 or F2). It's just one keyboard key to activate the macro.

     

    The keyboard version of what you are asking would go something like the example below (assuming you've set up the scope to be program specific to the name of your game) [i used dots to help indent and make the code look easier to read]:

     

     

    Variable Set Integer %N5% to 0

    Repeat Until %N5% <> 0

    .....Wait for Key Press: A

    .....Text Type: a

    Repeat End

     

     

    That's pretty much it. If you assign the macro to F1, once you hit F1, the macro is waiting for you to press and hold the 'A' button. The macro will wait forever for you to press 'A'. When you press A, or while the 'A' button is held down, the macro will type the letter A over and over and over. When you let go of the 'A' button, the macro stops typing 'A', and waits again.

     

    The only problem with this macro is that its not as 'turbo' as you might like, depending on the game. Additionally, one of the shortcomings of Macro Express is that you can only have 1 macro running at any time. Since this macro is always on, always waiting for the letter 'A', you can't have any other macros running or activating until this one ends.

     

    The macro below, gets away from the keyboard and uses the mouse. This macro checks the mouse position. If the mouse is in the upper left corner, it stops turbo firing the 'A' key. If you move the mouse away from the upper left corner, it goes balistic, and SUPER turbo's the 'A' over and over (Much faster than the example above). Also, if you need the macro to stop (so you can use your mouse for something else in the game, just move the mouse down to the lower left corner, and the macro quits immediately... no questions asked. To get the macro to run again, just type F1 (or whatever activation you set it. You can even set the activation to be Shift+Mouse click if you want to):

     

    Variable Set Integer %N5% to 0

    Get Mouse Position Window: %N1%, %N2%

    Repeat Until %N5% <> 0

    .....Get Mouse Position Window: %N1%, %N2%

    .....If Variable %N1% < 15

    ..........AND

    .....If Variable %N2% < 15

    .....Else

    ..........Text Type: a

    .....End If

    .....

    .....If Variable %N1% < 15

    ..........AND

    .....If Variable %N2% > 999

    ..........Macro Stop

    .....End If

    Repeat End

     

     

    Anyways, I hope these examples are more in line with what you were expecting. If I had more time tonight, I think it would be possible to use the letter 'A' as a shortkey activation with no prefix key assigned. (ie: everytime the letter 'A' button was pressed, it would activate the macro). This isn't recommended, especially if you also chat or type other things in the game that involve the letter 'A'. But to set the shortkey to NOT have a prefix, go to "Options", then click on "Shortkeys". In the "prefix Keys" window, there is probably 2 ##'s. Just remove all text in this window, and there you go.

     

    Let me know which games you are designing this macro for, and I will see if i have more time later to improve it.

  5. I want to get all the txt files out of a directory that has a bunch of subdirectories with txt files.

     

    For instance.

    C:\PLR\cats\cat1.txt

    C:\PLR\cats\cat2.txt

    C:\PLR\cats\cat2.txt

    C:\PLR\dogs\dog1.txt

    C:\PLR\dogs\dog2.txt

     

    would be copied to

     

    C:\ALL_PLR\cat1.txt

    C:\ALL_PLR\cat2.txt

    C:\ALL_PLR\cat3.txt

    C:\ALL_PLR\dog1.txt

    C:\ALL_PLR\dog2.txt

     

    When I tried it, it seems to move the subdirectory folders too. I just want all the text files copied to one directory all together without being in subdirectory heirarchy. Thanks.

     

    I would suggest using the Repeat command called "Repeat with Folder".

     

    Start with the folder C:\PLR\cats\

    Make sure the radio button for "Files" is selectes (as opposed to Folders).

    Also make sure the checkbox "Process Subfolders" is checked too.

     

    The macro will then repeat through that directory (including subfolders) and return each FILE as a variable. Then inside your repeat, have a line of code that copies the variable (File Name) to your designated directory (ie: C:\ALL_PLR).

     

    Add a 2nd repeat command for any other directories (ie: C:\PLR\dogs\).

     

    Hope this helps.

  6. I want to have Macex type text in a program which is running, but minimized. Is there any way to have a macro activate a window, type some text commands, but not show the window?

     

    This *might* be possible. It depends on if the Get Control Utility can save the window into a control variable. Basically, go to Window Controls -> Get Control, and then "Launch Get Control Utility". You will then see a window that has a "cross hairs" at the bottom. Use your mouse and drag the cross hairs off the window and drag it to the window you wish to have text entered. If the Capture Window Control shows text in the "Class Name" after doing this, click "save". Then on the "Get Control" window, click "ok". By default, this saves the window into variable C1.

     

    Now, if that window is minimized, you can use the "Text Type" command to send text to that window (while it is minimized). Make sure the "Send Text to Control" radio button is selected at the bottom. Also make sure that if you used variable C1 in Get Control, that you use the same variable in "Send Text to Control".

     

    I tested this with notepad minimized, and it worked great. While it also works great in other programs (linking a control to a button, or menu item) it may not work in your program. The Macro Express help pages explain that some programs (ie: Microsoft programs) have fewer controls than programs written by other software companies. You really need to run the "Launch Get Control Utility" and see if it works.

     

    Good luck!

  7. With Macro Express, you should be able to do this quite easily.

     

    There are several functions for using text files. If you had a single text file, and on each line, you had a client's name, you can use a function called "Text file begin process". This command will start with the first line in the text file. You can then take that client's name and use it how you need. When your code ends, it will then process the 2nd row in the text file, which contains the next client. Your macro will then repeat the same code using the 2nd client's info. It will continue until it has run the code on every line in your text file.

     

    You can even use Excel if you had more data for each client. (ie: column 1 = client name; column 2 = password; column 3 = address; etc). If you save this excel file as a .csv file, macro express will loop through each row, and assign the values in each column into variables. In other words, on the first loop through the .csv file, it will store column 1 ; row 1 into a variable; column 2 row 1 into a 2nd variable; column 3, row 1 into a 3rd variable; etc). On the next pass through the loop, it will go to second row in the .csv file and continue in this manner.

     

    What I like about Macro express is that there are several ways to achieve the results you need.

  8. Hi all,

     

    I need some help with a potential dilema I've been trying to sort out. I have about 2 Dozen different Macros that I run on a single PC. I'm considering setting them up to run on multiple computers in my Network because the work load is becoming too great for just one PC to handle. Without addressing the Licensing Issues, (I'm already well aware of them). I'd like to know if it's possible to manage a Single Macro File on a Master Computer that several other computers can Simultaneously open/read/run this macro? Also, can the .MEX File be updated while it is also being accessed (IE. PC1 is running Macro1 and I use PC2 to update Macro2 at the same time. I'm sure if I tried to update Macro1 on PC2, that it would mess things up on PC1, so that would not be the issue. But the .MEX File would be accessible simultaneously).

     

    I'm sure I can copy the Macro file to each computer, but when I start making changes to the individual macros, then I would have to make sure that all computers are updated and I would prefer to just manage the code in a single location.

     

    Thank you in Advance for your responses.

     

    Sincerely,

    MGuyM

     

    Another solution you might consider is instead of having 1 .MEX file on your network, to instead save your individual macros into text files. In your case, you would have 12 text files saved to your network drive. The contents of each text file would be a single macro. Then, use macro express to copy these text files to the local machines and then load them as macros from a text file.

     

    Now, to be a little more clear and to make this solution work, you need to do a couple more things.

     

    First, I recommend using a scheduled macro that runs at least once a day on each local machine. This macro essentially checks the timestamp of the network text files against a local copy of the same text files. If the network time stamp of a particular text file is newer than a local copy, than this scheduled macro will copy that particular macro to the local machine. We use several hundred macros in this manner, and the scheduled macro almost instantly updates the local machine with new versions. It's very fast.

     

    (In regards to the local machines, I personally save the macro text file at %userprofile%/macros/ on each machine where %userprofile% is a windows environment variable for "c:\document and settings\<nt login name>".)

     

    Now that each local machine is being updated at least once a day, we need to take this further to ensure that each macro on the local machines get updated the moment there is a newer version of a macro. This second step involves adding code at the beginning of each macro that checks if the network text file is newer than the local machine. If the network contains a newer version, then you would have the macro copy that version to the local machine and then have code re-run the macro. The end effect is that macro gets updated instantly, and the macro runs the newest version.

     

    Yes, I would love a Macro Express t-shirt for this macro solution! :) hah.

  9. I've noticed, and maybe I'm overlooking the answer, that the properties tab will only allow an "OR" situation to trigger the macro.

     

    For example, if Windows title and mouse click are checked to perform an action, the macro is triggered if one or the other happens. Why can't the macro be triggered when two things happen at the same time or both situations are satisfied?

     

    Using the example above, I would like the macro to trigger ONLY IF I am on a certain window title AND I click on a certain area in the active Window title.

     

    Is it something I am overlooking or I am thinking of this correctly?

     

    If so, can this be added on to the next version? I am sure it's only a simple dropdown (and/or) that can be added to the properties tab.

     

    Thank you,

     

    -P

     

    I like the previous example, and it works well assuming the application you mentioned is open when you start the macro. However, sometimes you start in one application, and the macro opens another application to get information, etc, and then the application gets closed. If this is the case, I have another solution for you to get around limiation using variables.

     

    I dont have access to ME on this machine, but my code would look something like the following:

     

    If window title is active..

    Set T10 to "True"

    End if

    If Mouse click condition = true

    If T10 = "True"

    <do something here>

    End if

    End If

     

    Also, if the macro required both conditions to be true before moving on, you could wrap a repeat command around them. (ie: Repeat until T11 = "done". Then in the "<do something>" area, when both conditions have been met, set T11 to "done". Note: above the repeat, you would want to set T11 to something else.... ie: T11 = "undone".

     

    Hope this helps!

  10. For one client we have enjoyed one version of Office for some time but now we have a mix. Certain macros need to be tweaked for the different versions so I would like to use ME to determine which version of, say, Outlook is installed and perform slightly different instructions. I have some ideas how I might divine this but I was wondering how others addressed this problem.

     

    One solution is to use the registry to obtain the information. ie:

     

    HKEY_LOCAL_MACHINE

    Software

    Microsoft

    Office

     

    But I am interested in reading other solutions. :) Sometimes the simple-ist solution is the best solution. (and the registry isnt so simple).

  11. THEN:

    When I hit the macro key, I need that letter/number combination to print to the screen. Do nothing else, just print to the screen.

     

    Then I want to manually hit return which will cause the curser drop to the next cell down. (Excel will auto do this movement when enter is pressed)

     

    Then I want to hit the macro key again and have it print the next number/letter combination in line (without having to repeat choosing the letters and number I want) and have it print that to the cell and wait for me to hit enter so it will move to the next line.

     

    I need the program to do this as many times as I need (it will vary and you need not ask me how many letter number combos I need) until I have enough numbers then I can hit disable and shut the program off when I reach the number of consecutive numbered cells I need.

     

    I wish I had more 'spare time' to offer to work on this. While i'm not sure exactly why you want to create 1000 serial numbers and have the macro pause after it types each one in individually, I am certain that the windows clipboard copy/paste is much faster at entering the data into excel than having the macro enter them in seperately one at a time waiting for a key to be pressed.

     

    If I had the time to continue helping you with this macro, I would have tried something along the lines where the macro creates the 1000 serial numbers and stores them to a text file. Then have the macro loop through that text file, line by line, and do what you are now asking. However, one limitation of Macro Express is that you cannot run a 2nd macro when the first macro is running/in use.

     

    It sounds like you have a very very specific function that you want to implement. This will most likely require more time and detail to getting the macro to work 100% to your expectations. I apologize for not having the 'spare time' to do this for you.

     

    I know the help files that came with macro express are pretty detailed. I learned to use Macro Express almost exclusively from trial and error and reading the help documents. I understand there is also a decent book available called "Macro Express Explained". Everyone who talks about it on these forums speaks highly of it. I also understand you can purchase it as a download file if you prefer. Learning how to use Macro Express really comes easy. I find myself learning new things about Macro Express every day (and i've been using Macro Express for about 8 years, and Keyboard express for 2 years prior to that).

     

    While I dont have the 'spare time' right now to continue, i'm sure there must be someone who reads these forums that knows how to accomplish your request.

     

    Good luck!

  12. Another idea is that if I click in the window and type "//" then some text, MacExp would launch the Remarks dialog.

     

    Does that make sense? Thanks. -steve

     

    Great ideas!

     

    I wish everytime you started creating a new macro and opened the scripting editor that it would already have one empty remark already entered. I always like to add a few comments up top, and with at least one comment already appearing would make it easy to add more comments (duplicate).

     

    At the very least, make this an option since all my macros have at least one line of remarks.

  13. <REM2:><CLIPE><REM2:Set Environment variable "CRLF" to cr/lf characters><ASCIIC:2:1:10><ASCIIC:3:1:13><TMVAR2:08:03:02:000:000:><TMVAR2:19:03:00:000:000:CRLF><REM2:><MENU2:2:T:21:CenterCenter:First letter in serial number:Please choose which letter this serial number begins with:A

    B

    C

    D

    E

    F

    G

    H

    I

    J

    K

    L

    M

    N

    O

    P

    Q

    R

    S

    T

    U

    V

    W

    X

    Y

    Z><MENU2:2:T:22:CenterCenter:Last letter in serial number:Please choose which letter this serial number ends with:A

    B

    C

    D

    E

    F

    G

    H

    I

    J

    K

    L

    M

    N

    O

    P

    Q

    R

    S

    T

    U

    V

    W

    X

    Y

    Z><TVAR2:01:02:FPlease enter the serial number here:

    ie: A00000001AFFCenter:Center><TMVAR2:01:01:00:000:000:><TMVAR2:09:91:01:000:000:><IFVAR2:1:01:7:TA><TMVAR2:21:01:01:000:000:A><ENDIF><IFVAR2:1:01:7:TB><TMVAR2:21:01:01:000:000:B><ENDIF><IFVAR2:1:01:7:TC><TMVAR2:21:01:01:000:000:C><ENDIF><IFVAR2:1:01:7:TD><TMVAR2:21:01:01:000:000:D><ENDIF><IFVAR2:1:01:7:TE><TMVAR2:21:01:01:000:000:E><ENDIF><IFVAR2:1:01:7:TF><TMVAR2:21:01:01:000:000:F><ENDIF><IFVAR2:1:01:7:TG><TMVAR2:21:01:01:000:000:G><ENDIF><IFVAR2:1:01:7:TH><TMVAR2:21:01:01:000:000:H><ENDIF><IFVAR2:1:01:7:TI><TMVAR2:21:01:01:000:000:I><ENDIF><IFVAR2:1:01:7:TJ><TMVAR2:21:01:01:000:000:J><ENDIF><IFVAR2:1:01:7:TK><TMVAR2:21:01:01:000:000:K><ENDIF><IFVAR2:1:01:7:TL><TMVAR2:21:01:01:000:000:L><ENDIF><IFVAR2:1:01:7:TM><TMVAR2:21:01:01:000:000:M><ENDIF><IFVAR2:1:01:7:TN><TMVAR2:21:01:01:000:000:N><ENDIF><IFVAR2:1:01:7:TO><TMVAR2:21:01:01:000:000:O><ENDIF><IFVAR2:1:01:7:TP><TMVAR2:21:01:01:000:000:P><ENDIF><IFVAR2:1:01:7:TQ><TMVAR2:21:01:01:000:000:Q><ENDIF><IFVAR2:1:01:7:TR><TMVAR2:21:01:01:000:000:R><ENDIF><IFVAR2:1:01:7:TS><TMVAR2:21:01:01:000:000:S><ENDIF><IFVAR2:1:01:7:TT><TMVAR2:21:01:01:000:000:T><ENDIF><IFVAR2:1:01:7:TU><TMVAR2:21:01:01:000:000:U><ENDIF><IFVAR2:1:01:7:TV><TMVAR2:21:01:01:000:000:V><ENDIF><IFVAR2:1:01:7:TW><TMVAR2:21:01:01:000:000:W><ENDIF><IFVAR2:1:01:7:TX><TMVAR2:21:01:01:000:000:X><ENDIF><IFVAR2:1:01:7:TY><TMVAR2:21:01:01:000:000:Y><ENDIF><IFVAR2:1:01:7:TZ><TMVAR2:21:01:01:000:000:Z><ENDIF><REM2:><REM2:vvvvv----- Repeat here><REM2:><TMVAR2:07:33:00:000:000:%T91%><TMVAR2:07:33:00:000:000:%CRLF%><REM2:><REM2:><IVAR2:05:12:1><REM2:><IVAR2:33:02:FHow many times would you like %T91% to increment? (ie: 1000)FTCenter:Center><NMVAR:02:33:1:0000033:2:0000001><REP3:05:000001:000001:0033:0:01:><REM2:><TMVAR2:05:01:01:000:000:><REM2:><NMVAR:08:01:0:0000001:0:0000000><REM2:><NMVAR:05:01:0:0000001:0:0000000><IVAR2:06:12:1><NMVAR:02:02:1:0000005:1:0000006><REM2:><TMVAR2:07:10:00:000:000:%T21%><REP3:05:000001:000001:0002:1:03:><TMVAR2:07:10:00:000:000:0><ENDREP><TMVAR2:07:10:00:000:000:%T1%><TMVAR2:07:10:00:000:000:%T22%><REM2:><TMVAR2:07:33:00:000:000:%T10%><TMVAR2:07:33:00:000:000:%CRLF%><REM2:><TMVAR2:05:10:01:000:000:><TVAR2:10:01:><REM2:><ENDREP><REM2:^^^^^----- Repeat here><REM2:><TMVAR2:16:33:00:000:000:><REM2:><TBOX4:T:1:CenterCenter000278000200:000:Output copied to clipboard%T91% was incremented %N33% times.

     

    This information has been saved to your clipboard.

     

    To paste it into Excel, select the first cell, and then use windows paste to paste the results downward.><REM2:>

  14. WOW! Thanks! That letter menu is great and you are correct about the number not always starting or ending with 'A'.

     

    I copy/paste like you mentioned (thanks for the details on copy from REM, I needed that) and got the macro to run but when it runs it opens its own box in the center of the screen and prints the letter/number in that box. Also it prints only once, then when I hit the hot key again it will cycle back to the letter menu again. Also, the numbers will not print to a cell in Excel. Is this because I am doing something wrong?

     

    To sum up:

     

    1. I need it to print to a cell in Excel. The maco needs to repeat with the hotkeys (using both first chosen letters) as many times as I need acending numbers (usually 100 but sometimes 1000+) with the letters staying with what I chose when I first started the program (A-A, B-D, or whatever I first slected)

     

    2. Each time I hit the hotkey, have the number add one and print the result to an Excel cell with an ENTER key so the next hotkey number in the sequence will print in the next cell down. Hit the key again, the letters stay the same, the number goes up by 1, prints to the cell and then moves to the next cell. Hit the key again and again and again ect.

     

    I would like to start with say A0000001A (both letters will not always be 'A' so keep both letter menus!) and will not always be 00000001 so keep the number box also!) and each time I hit the hotkey have the number add one and print the result to an Excel cell followed by the ENTER key so the next hotkey number in the sequence will print in the next cell down.

     

    As for the spacebar, it is handy for me to use as a hotkey. I can always disable Macros when I am done, that is, have the correct number of excel cells (hotkey presses). This Macro will be a stand alone program used to generate number/letter combations in an excell program. All the rest of the data will be added later by hand.

     

     

    OK, i'll post the updated code in a separate post below. Sorry for the delay, I was gone on a business trip.

     

    With Macro Express and Excel, I haven't had much luck getting the two programs to work smoothly together. Trying to get macro express to paste one piece of data in one cell, then advance to another cell, and paste more data can be tedious. It also leaves more room for error if there is a macro delay causing the wrong cell to become activated.

     

    Having said that, I know if you have a vertical list of data and you copy all of it at once, and then paste it in the first cell in Excel, it will achieve the same results as if you had pasted data in cell A1, then A2, A3, etc. etc. Pasting information straight from the windows clipboard is also much faster than trying to get macro express to copy paste, copy paste... one piece of data at a time.

     

    I don't have Microsoft Excel installed on my home computer, however I was able to test the macro with google docs (google's online version of a spreadsheet program). I tested the macro having it increment 100 times and then 1000 times. Needless to say the macro is very fast and easy to use.

     

    The macro works just as before. Select a beginning letter per your criteria, then select an ending letter per your criteria; then copy in the serial number you want to start with. The new thing with this macro is that it will now ask you how many times you want the serial number to increment (ie: 100 times 1000 times, etc). You can enter any integer you want.

     

    Instantly, you will see a pop-up message saying the macro is complete and the results have been copied to the windows clipboard. From here, you can open up excel, insert your cursor in the first cell, and then use windows paste. It will paste all the data downward (vertically).

     

    Your original post didn't mention anything about excel, so I hope this new version is more useful for you.

  15. Since you are new to Macro express, I thought I would also explain that you need to copy the code above starting with "<REM2" and continuing to the end of the post. Once you have copied it (control-C), open up macro express, go to the Scripting editor, click in white space underneath "Macro Script". Then paste (control-V).

     

    While in the scripting editor, if you move from the "script" tab to the "properties" tab, you can give the macro a name, and assign whatever hotkey activation you want. (I would not recommend using the spacebar. Instead, i would use control+shift+spacebar, or even win+spacebar).

     

    You can then save the macro by clicking on File Menu and choosing save, or simply typing control+S.

     

    I hope this macro accomplishes what you need!

  16. Let me explain what I would like to do:

     

    You have a serial number like this: A00000001A I need to call this number with a hot key (lets use the SPACE BAR as the hot key) and each time I call this number I need it to increase by 1.

     

    As in:

     

    A00000001A

     

    A00000002A

     

    A00000003A and so on...........

     

    Also, I need to be able to set the letters and numbers to where I would like the program to start. As an example I might like to start with A012345678B then continue my hotkey-driven numbering sequence with A012345679B A012345680B ect.

     

    It is NOT necessary to have the program ask me for the starting numbers and letters because I could very easily (I think) edit the macro with Direct Editor at the beginning of each secession. Compaired to what I am doing now, this editing would not be a hardship in the least! On second thought, you might want to let me know how to set the numbers to begin with. I am looking at this forum screen and the only thing I full understand is the box I am supposed to type my question into!

     

    I would much appreciate you’re help with the code that I need. Please keep in mind if you do send me code, I will need explicit, and I do mean explicit, instructions on what to do with it! I know next to nothing (or maybe even a little less than that!) about computer programs.

     

    Thanks in advance for your time and trouble

     

    GRichard

     

     

    Hello,

     

    I had to make an assumption about your serial number that it always starts with a letter and ends with a letter. If this assumption is correct, then this code should work. The output is displayed in a text box. However, it would be possible to have the output saved to a text file. The macro could generate hundreds or thousands of serial numbers quickly, all showing up in a text file.

     

    <REM2:><MENU2:2:T:21:CenterCenter:First letter in serial number:Please choose which letter this serial number begins with:A

    B

    C

    D

    E

    F

    G

    H

    I

    J

    K

    L

    M

    N

    O

    P

    Q

    R

    S

    T

    U

    V

    W

    X

    Y

    Z><MENU2:2:T:22:CenterCenter:Last letter in serial number:Please choose which letter this serial number ends with:A

    B

    C

    D

    E

    F

    G

    H

    I

    J

    K

    L

    M

    N

    O

    P

    Q

    R

    S

    T

    U

    V

    W

    X

    Y

    Z><TVAR2:01:02:FPlease enter the serial number here:

    ie: A00000001AFFCenter:Center><TMVAR2:09:11:01:000:000:><TMVAR2:01:01:00:000:000:><IFVAR2:1:01:7:TA><TMVAR2:21:01:01:000:000:A><ENDIF><IFVAR2:1:01:7:TB><TMVAR2:21:01:01:000:000:B><ENDIF><IFVAR2:1:01:7:TC><TMVAR2:21:01:01:000:000:C><ENDIF><IFVAR2:1:01:7:TD><TMVAR2:21:01:01:000:000:D><ENDIF><IFVAR2:1:01:7:TE><TMVAR2:21:01:01:000:000:E><ENDIF><IFVAR2:1:01:7:TF><TMVAR2:21:01:01:000:000:F><ENDIF><IFVAR2:1:01:7:TG><TMVAR2:21:01:01:000:000:G><ENDIF><IFVAR2:1:01:7:TH><TMVAR2:21:01:01:000:000:H><ENDIF><IFVAR2:1:01:7:TI><TMVAR2:21:01:01:000:000:I><ENDIF><IFVAR2:1:01:7:TJ><TMVAR2:21:01:01:000:000:J><ENDIF><IFVAR2:1:01:7:TK><TMVAR2:21:01:01:000:000:K><ENDIF><IFVAR2:1:01:7:TL><TMVAR2:21:01:01:000:000:L><ENDIF><IFVAR2:1:01:7:TM><TMVAR2:21:01:01:000:000:M><ENDIF><IFVAR2:1:01:7:TN><TMVAR2:21:01:01:000:000:N><ENDIF><IFVAR2:1:01:7:TO><TMVAR2:21:01:01:000:000:O><ENDIF><IFVAR2:1:01:7:TP><TMVAR2:21:01:01:000:000:P><ENDIF><IFVAR2:1:01:7:TQ><TMVAR2:21:01:01:000:000:Q><ENDIF><IFVAR2:1:01:7:TR><TMVAR2:21:01:01:000:000:R><ENDIF><IFVAR2:1:01:7:TS><TMVAR2:21:01:01:000:000:S><ENDIF><IFVAR2:1:01:7:TT><TMVAR2:21:01:01:000:000:T><ENDIF><IFVAR2:1:01:7:TU><TMVAR2:21:01:01:000:000:U><ENDIF><IFVAR2:1:01:7:TV><TMVAR2:21:01:01:000:000:V><ENDIF><IFVAR2:1:01:7:TW><TMVAR2:21:01:01:000:000:W><ENDIF><IFVAR2:1:01:7:TX><TMVAR2:21:01:01:000:000:X><ENDIF><IFVAR2:1:01:7:TY><TMVAR2:21:01:01:000:000:Y><ENDIF><IFVAR2:1:01:7:TZ><TMVAR2:21:01:01:000:000:Z><ENDIF><REM2:><IVAR2:05:12:1><TMVAR2:05:01:01:000:000:><NMVAR:08:01:0:0000001:0:0000000><NMVAR:05:01:0:0000001:0:0000000><IVAR2:06:12:1><NMVAR:02:02:1:0000005:1:0000006><REM2:><TMVAR2:07:10:00:000:000:%T21%><REP3:05:000001:000001:0002:1:03:><TMVAR2:07:10:00:000:000:0><ENDREP><TMVAR2:07:10:00:000:000:%T1%><TMVAR2:07:10:00:000:000:%T22%><REM2:><TBOX4:T:1:CenterCenter000278000200:000:OutputYou entered:

    %T11%

    Macro created:

    %T10%><REM2:>

  17. Does anyone know how to accomplish the following with Macro Express? :

     

    We all know that when a macro is running, the icon for Macro Express changes from an M to a running stick figure. (This icon is located down in the system tray near the clock).

     

    I have been trying to figure out how to manipulate icons in the system tray (preferably using Macro Express) whenever a specific system process launches.

     

    For lack of a better example, if Notepad were to be opened up, I would like Macro Express to show an icon in the system tray. And when Notepad closes, I would like the icon to disappear from the system tray.

     

    What I will be using the macro for is to troubleshoot my computer. Every so often, when i look in the task manager, I notice certain applications running. I'm not certain what causes these application to launch, so I would like to visually see when they are active and when they stop running.

     

    I'm certain if a macro can be created to show an icon in the system tray when notepad is active, that it can be applied to any running process on the computer.

     

    Anyone have a solution?

  18. I would recommend using the "Repeat Until" command.

     

    The key is to Repeat until some condition is met (you run out of "more" pages for that user).

     

    You can use either a string or integer variable, whichever you prefer.

     

    Your code might look something like this:

     

    Variable Set N1 to 0

    Repeat Until N1 = 1

    <copy page>; <assign text to String variable>

    If Text contains "more" data

    {Code here to process data on specific user}

    Else

    {If "no more", set N1 to 1 to break out of Repeat. (or can use the 'break' command).

    End If

    End Repeat

     

     

    Note: You can put another repeat around the code above to loop through each user.

     

    Hope this helps!

  19. When a macro is running I’m getting a problem where if I click the mouse or type anything, it will interfere with the macro and it won’t complete correctly... Is there a way to lock out the keyboard and mouse until the macro has completed?

    Cheers

     

    One workaround I use (while we wait for such a ME function to exist) is to use a Text Box Display and set it to "Floating Box until 'Close Box' command or end of macro".

     

    The key here, is to set the size and position of the Text Box manually. Make it BIG. Take up the whole screen. Make sure to check the box that says "Always on top". In the middle of the text box, I type something like "Please do not touch the mouse or keyboard". At the end of the macro, use the "Close Text Box" command. While the text box is open, and on top of any other application, your macro will work as normal.

     

    This workaround isn't fool proof, but it sure is effective. It's also great for hiding sensitive information the macro may be working on. (ie: company data, etc).

     

    Hopefully this helps, and hopefully a ME function comes out soon to lock the mouse/keyboard.

     

    Cheers.

  20. Johnboy691... Thank you! Thank you!! Thank you!!! In my 75 minute drive home, I put some thought into what you said. And after my drive home, I had a few drinks. In a matter of minutes, I came up with this working solution:

     

     

    
    Variable Set Integer %N2% to 1
    // used to initialize the Switch(N2) command
    
    Variable Set Integer %N1% to 500
    // set this integer rediculously high
    
    Repeat with Variable using %N1%
    Switch (N2)
    	Case: 1
    		Multiple Choice Menu: 1
    		If Variable %T1% = "--> Next"
    			Variable Set Integer %N2 to 2
    		Else
    			Break
    		End If
    	End Case
    
    	Case: 2
    		Multiple Choice Menu: 2
    		If Variable %T1% = "--> Next"
    			Variable Set Integer %N2 to 3
    		Else
    			If Variable %T1% = "<-- Back"
    				Variable Set Integer %N2% to 1
    			Else
    				Break
    			End If
    		End IF
    	End Case
    
    	Case: 3
    		Multiple Choice Menu: 3
    		If Variable %T1% = "--> Next"
    			Variable Set Integer %N2 to 4
    		Else
    			If Variable %T1% = "<-- Back"
    				Variable Set Integer %N2% to 2
    			Else
    				Break
    			End If
    		End IF
    	End Case
    
    	Case: 4
    		Multiple Choice Menu: 4
    		If Variable %T1% = "--> Next"
    			Variable Set Integer %N2 to 3
    		Else
    			If Variable %T1% = "<-- Back"
    				Variable Set Integer %N2% to 3
    			Else
    				Break
    			End If
    		End IF
    	End Case
    End Switch
    Repeat End
    Text Box Display:  You selected %T1%
    
    

     

    I could kick myself for spending HOURS on this earlier today, when it only took a few minutes to type out.

    If I could figure out how to paste the MEX code in here without messing the code up, I'd do it.

    Anyways, there you have it. It works good enough for my needs. Thanks again!

  21. This is a simple way...in addition to the MORE selection, also have a PREVIOUS selection on menu 2, 3 and 4. Put a IF statement with a repeat in it and it will start back at the top (menu 1). You could put additional IF's in for specific menu's, but that would mean using (wasting) more selections. I've used the above to go back to the first then quickly choose the More till I get to the one I wanted.

     

    Good Luck!

     

    Could you provide a sample code to accomplish this? Would love a working example of a MORE and PREVIOUS menu selection.

     

    Thank you!

  22. I've searched everywhere for a solution to this, and cannot seem to find one.

     

    Here is what I am trying to accomplish:

     

    There is too much data to fit in a single multiple choice menu. (In fact, the menu items fill 4 menus). I saw the recent solution adding a (more) option. However, I need to take this one step further, on the menu's I would like a "--> next" option to go to the next menu. I would also like a "<-- previous" option as well.

     

    Since there is no "goto" command, I tried experimenting with the repeat command without any luck. Using repeat, I can scroll forward through the menus, but I can't seem to get back to the prior menus.

     

    Below is my current macro. All the Multiple Choice Menu's have the destination variable of %T1%. When %T1% contains some value, the repeat ends. I included %N1% to differentiate the Menu # (ie: Menu 1; Menu 2; Menu 3; Menu 4).

     

    Variable Set Integer %N1% to 1
    Variable Set String %T1% ""
    Repeat Until %T4% <> ""
    
     Switch (N1)
    
        Case: 1
             Multiple Choice Menu: 1   [destination variable = %T1%]
             If Variable %T1% = "  next -->"
                  Variable Set Integer %N1% to 2
             End If
             If Variable %T1% = " prev <--"
                  // no prior menu; do nothing
             End If
        End Case
    
        Case: 2
             Multiple Choice Menu: 1   [destination variable = %T1%]
             If Variable %T1% = "  next -->"
                  Variable Set Integer %N1% to 3
             End If
             If Variable %T1% = " prev <--"
                  Variable Set Integer %N1% to 1
             End If
        End Case
    
        Case: 3
             Multiple Choice Menu: 1   [destination variable = %T1%]
             If Variable %T1% = "  next -->"
                  Variable Set Integer %N1% to 4
             End If
             If Variable %T1% = " prev <--"
                  Variable Set Integer %N1% to 2
             End If
        End Case
    
        Case: 4
             Multiple Choice Menu: 1   [destination variable = %T1%]
             If Variable %T1% = "  next -->"
                  // no further menu's; do nothing
             End If
             If Variable %T1% = " prev <--"
                  Variable Set Integer %N1% to 3
             End If
        End Case
     End Switch
    Repeat End

     

     

    Any ideas how to get the repeat to recognize the " prev <--" ?

     

    Thanks!

    Steve

  23. In the mean time, you already have the script. Load the mxe file into a text editor and do a "search and replace" all "PGMCRLF"s with real CR/LFs.

     

    Was there an error of some sort during the import?

    When I imported the script, ME did not recognize the following:

     

    <REP3:08:000002:000002:0001:1:01:N1>

     

    (The above showed up in the scripting editor as a text type).

     

    I wonder if this repeat is the new "repeat with process" from 3.5+? (I'm only using 3.4b at the moment).

×
×
  • Create New...