Jump to content
Macro Express Forums

iceman

Members
  • Posts

    51
  • Joined

  • Last visited

Everything posted by iceman

  1. Thanks a bunch for the installer information and the batch file idea. I really appreciate your quick and thorough responses. You are a big help. iceman
  2. Can Environmental Variables (e.g. %HOMEDRIVE%) be used for a Silent Install to a %HOMEDRIVE% drive other than C:? The following scenario actually worked when %HOMEDRIVE% was C:. When %HOMEDRIVE% = H: on a network, no files were installed or written to the INSTALLPATH (e.g. INSTALL.LOG). I was able to run the regular install process successfully to the exact same folder when destination H:\\ICEadmin\ViaMacro was entered. The files that make up the silent install are attached. "text file to automatically respond to the install questions during the installation process" SlashM.txt: I noticed in during my testing that [My Documents] was in an exported mcf file. May the brackets be used in place of the percent signs? Thank you in advance. iceman
  3. Do you know if the Macro Express command <SHUTDOWN> sends a message to Windows that forces all applications to close, like the /f command does in shutdown /s /t 30 /f? Thanks. iceman
  4. Thanks Kevin and Cory. Kevin, Do you know of any good on-line resources that explain how "All programs, including Macro Express, communicate within Windows via messages."? Thanks. iceman
  5. Does it use the Microsoft shutdown command? I noticed that Windows 2000 and XP use different parameters for the shutdown command. <REBOOT><SHUTDOWN><POWEROFF> Thanks in advance.
  6. Here it is zipped. Sorry, I didn't know files had to be zipped. ClipMate.zip
  7. Post some of your code and more information about the destination program. You may want to look into Controls: <VARGETCONT:3:3> Here's a generic strategy: copy number from excel set string t1 from clipboard set integer n1 to t1 string length repeat with n1 with counter in n2 copy n2, 1 from t1 to t2 type t2 delay t3 get text from pull down box compare t3 to t1 same? do what ever. get the end? type it in the other box. I know it's cryptic, but maybe we can help you with more information about the destination program. iceman
  8. G, I came up with a scenario that may work for you. I split your one macro into four, one Global to grab the title of the destination window, and three Program Specific (ClipMate) macros to work only with ClipMate: one to up arrow, one to go down, and one to paste on destination window. See attached mex. The last three macros require that you change the Scope-Program Specific from Notepad to ClipMate Explorer, which I don't have. You may also want to change the HotKeys to a preference. Note: You'll be limited to those in the HotKey list. I chose the following because it's all one handed: HotKey: F4 Name: ClipMate-Down HotKey: F1 Name: ClipMate-Up HotKey: ESC Name: ClipMate-PasteT2 Hope it works for you. iceman ClipMate.mex
  9. Is the name or part of the name of the link the same? If it is, go to the home page, find the text, and hit Enter.
  10. What kind of menu? Post your code. Did you use a built in Floating Menu, Multiple Choice Dialog?
  11. Welcome. Here's some code that you can use. Press ESC to stop. <TEXTTYPE:<CTRLD>><LDN><WAITKEY2:000010:000000:48><LUP><TEXTTYPE:<CTRLU>>
  12. Are the folders both in the same subdirectory? Maybe go down to the root of the drive and add a new folder. I know that older Windows have a limitation to the number of files and folders within one folder (e.g. C:\Images can only have x number of files/folders in it before bad stuff happens). You might also want to name the folder with the range of images (e.g. C:\Images-0001-0900, C:\Images-0901-1800) Here's some code that might help get you started with the above idea: <REM2:Setup><REM2:N2 - Total bytes of all the files in prior folder.><IVAR2:02:01:0><REM2:N3 - File counter.><IVAR2:03:01:0><REM2:T2 - Path to folder.><TVAR2:02:01:C:\Images><DOFILE:01:NN:%T2%>><REM2:Loop all the files in the folder.><REM2:T1 - Filename><REP3:07:000001:000001:0001:0:01:%T2%><NMVAR:08:03:0:0000001:0:0000000><REM2:N1 - File size.><IVAR2:01:05:%T1%><NMVAR:01:02:1:0000001:1:0000002><REM2:Bigger than 1.5 Gigabyte (GB) = 1,610,612,736 Byte?><IFVAR2:2:02:5:1610612736><REM2:Go start a new folder and put it there ...><ENDIF><REM2:Clear file size.><IVAR2:01:01:0><ENDREP>
  13. Does anyone know of a way to show only the names of the Titles of the windows listed in the Alt+Tab menu of Windows (i.e. parse this list down of all those listed in Repeat with Windows - Visible Windows)? I created macro ActiveWindowT91 to Active Window with the text in variable T91 (e.g. T91 = "Notepad"). If the window is running, the macro will activate the window if it is not currently on top. <REM2:ActiveWindowT91><REM2:Running?><IFOTH:12:2:%T91%><REM2:No, prompt user to select window in case program can't find it.><MACRUN2:PromptWindowT91><ENDIF><REM2:On top?><IFOTH:11:2:%T91%><REM2:No, put on top.><ACTIVATE2:%T91%><IMSD:0010><ENDIF> If the text in T91 is not part of a currently running window, the macro will run macro PromptWindowT91, which will prompt the user to select a Window Title by utilizing the Repeat with Windows Command (Visible Windows). <REM2:T91 - Window to Interface with.><TVAR2:91:01:><REM2:Build list of active windows for user to select from.><REM2:T8 - CrLf><ASCIIC:7:1:10><ASCIIC:8:1:13><TMVAR2:08:08:07:000:000:><REM2:T79 - Visible Window List><TVAR2:79:01:><REPEATWIN:99:2:2><TMVAR2:08:79:99:000:000:><TMVAR2:08:79:08:000:000:><ENDREP><REM2:Remove Program Manager.><TMVAR2:21:79:00:000:000:%T8%Program Manager><REM2:T91 - Prompt for Window to Interface with.><MENU2:1:T:91:00LeftBottom:WindowProgram cannot find source/destination window to interface with. Please select applicable window from list below or click Cancel to abort process.%T79%> The list displayed via Multiple Choice Menu contains windows that are visible, but the user could select a Title from the list that is not the desired window to interface with (e.g. Macro Express, instead of Macro Express - Macro Explorer). Using the mouse to click on the Title bar doesn't work.
  14. Does anyone know of a scripting editor where multiple scripts can be viewed simultaneously? For example, if you have two Word documents opened at the same time and you click Window, Arrange All, you will see them both. As you know, the Scripting Editor in Macro Express is limited to a single script. Attached is an image of what I'm looking for. Does anyone know if there are any plans of making a "Professional" version of Macro Express for programmers? I use, create, and deploy powerful, complex, mission critical programs with Macro Express. It is my "language" of choice. Does anyone else want or think they might utilize such a program/feature? Thanks for your time and consideration. ICEman
  15. Below is code that will allow you to run a specific macro for time frame. The condition of time can be changed to anything. I successfully tested this concept. Please feel free to use, modify, and maybe post enhancements. Following are the Remark instructions at the top of the Macro Script. TimeBombThisMacro You want to call a macro for a certain amount of time. 1. Import this macro into another. 2. Replace text TimeBombThisMacro with Destination macro Nickname in Direct Editor. 3. Cut and paste CALLER section into Caller Macro. 4. Change date in If Variable T99 command. 5. Cut and paste CALLEE section into Destination Macro at the top. 6. Delete this macro (i.e. TimeBombThisMacro) in Macro Explorer. Enjoy! iceman <REM2:TimeBombThisMacro><REM2: You want to call a macro for a certain amount of time.><REM2:1. Import this macro into another.><REM2:2. Replace text TimeBombThisMacro with Destination macro Nickname in Direct Editor.><REM2:3. Cut and paste CALLER section into Caller Macro.><REM2:4. Change date in If Variable T99 command.><REM2:5. Cut and paste CALLEE section into Destination Macro at the top.><REM2:6. Delete this macro (i.e. TimeBombThisMacro) in Macro Explorer.><REM2:><REM2:CALLER><REM2:Caller Macro.><IFOTH:17:1:TimeBombThisMacro><MACRUN2:TimeBombThisMacro><ENDIF><REM2: / CALLER><REM2:><REM2:CALLEE><REM2:T99 - Date Stamp.><YYYYMMDD{YP000}{P000}99><REM2:Save data for three months.><IFVAR2:1:99:3:20070101><MACDEACT2:TimeBombThisMacro><MRETURN><ENDIF><REM2: / CALLEE>
  16. Here's a potential work around that just came to mind this morning: put a date stamp in the macro's Nickname (e.g. PutData20060413). The following is how I am going to implement the prior: Today, I wanted to change my PutData macro, which I have in multiple macros. So I created a copy of it, made changes, and renamed it to PutData20060413. Then I deleted all the existing code in PutData and added one line of code, Macro Run: PutData20060413. I don't have to change any of the other macros that Macro Run: PutData. I can and will import the two macros into the other macros that now have an outdated PutData macro. Cool! Now, I can also create different test versions (e.g. PutData20060418TEST) and upgrade (e.g. PutData20060420) by just changing the single reference in PutData, and not have to dig in all of the other macros that reference the original PutData.
  17. Here's an idea: Use a shortcut to run a macro that enables a Floating Menu macro. 1. Create a Floating Menu macro (e.g. MyFavorites). a. Add all or some of your favorite macros (e.g. OpenContacts) to the Menu. b. Go to Properties tab. c. Type Nickname. d. Select Nickname and Scope. e. Save macro. f. Close macro. 2. Close Floating Menu, which will disable the macro. 3. Create a new macro (e.g. EnableMyFavorites). 4. Add Macro Enable: MyFavorites to Script. 5. Add any additional parameters before the prior that you want to pass to your existing favorite macros (e.g. Set T99 to Username). 6. Create a shortcut in one of your existing toolbars (e.g. Quick Launch, Desktop) that will run the specific macro in your mex file using the command prompt parameters. (You could also set variables this way as well. (e.g. /VT2:Now is the time)) (You could also add a shortcut for each of your favorite macros, which is what I do.) I've attached a sample mex and shortcut in a zip. Be sure to change the path in the shortcut properties. Hope this helps. iceman Favs.zip
  18. In some future version, please consider making it possible to retain the imported macro's original Modified date and time stamp in the destination/"Importee" macro. Thank you.
  19. In some future version, please consider making it possible to change a macro's Nickname without changing/updating the Modified date and time stamp? (I use the copy macro feature a lot in development and testing. This would be helpful when comparing different versions of macros.) Thank you.
  20. Floyd, Just as jowensii posted, I too "have been a ME user for several years and I have been patiently waiting for the ability to do this. Even though it's not just native to ME, this workaround is greatly appreciated." Thank you so so much. The work you did is amazing. iceman
  21. Thanks Joe. As a part of the configuration, I have hidden the system tray icon. Maybe I could change it to not hide it and try your technique. Thanks again.
  22. Shane, I have found that nothing with screen references (Window Activate) will work with the workstation locked. Also, the Windows Task Scheduler is a bit flakey. Sometimes the task will "forget" the password and won't run as scheduled until it is re-entered. Try using the scheduler that is built into Macro Express on the Properties tab. Hope that helps.
  23. Try and change your Macro Express Hot Key to something else. ALT + Space bar kind of works but can be confused with executing the main window control box in the upper left of most programs, which allows you to Restore, Move, Size, Minimize, Maximize, Close a window. I used the following to grab a shape in Visio. I put a small delay before and after. My wait for Enter key code looks different from yours (<WAITKEY2:000000:000000:54>) too. <LDN><MSD:250><WAITKEY2:000010:000000:50><MSD:250><LUP> Hope it helps.
×
×
  • Create New...