Jump to content
Macro Express Forums

MacroPolo

Members
  • Posts

    26
  • Joined

  • Last visited

MacroPolo's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Many years ago, I wrote a macro in MEX that used the Julian date formula. (See: http://en.wikipedia.org/wiki/Julian_day). Julian date formula is based on decimal conversions, similar to what Excel uses. It's nice to see this functionality built-in to the new macro express version.
  2. lol. Refreshing the page worked. Boy do I feel stupid now! (At work, i'm the one usually suggesting that someone should clear their cache/cookies, etc). Thank you!
  3. 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,
  4. 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!?
  5. 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!
  6. 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.
  7. 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.
  8. 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!
  9. 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.
  10. 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.
  11. 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!
  12. 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).
  13. 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!
  14. 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.
  15. <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:>
×
×
  • Create New...