Jump to content
Macro Express Forums

MacroPolo

Members
  • Posts

    26
  • Joined

  • Last visited

Everything posted by MacroPolo

  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:>
  16. 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.
  17. 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!
  18. 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:>
  19. 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?
  20. 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!
  21. 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.
  22. 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!
  23. Could you provide a sample code to accomplish this? Would love a working example of a MORE and PREVIOUS menu selection. Thank you!
  24. 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
  25. 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...