Jump to content
Macro Express Forums


  • Content count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About iceman

  • Rank
  1. Universal Macros

    You may want to consider calculating the button position by using percentages. Get the screen and application height/width of the most popular resolution. Then get the button XY position and divide those numbers by the window height and width. For example, the window is 400 pixels tall, the button is 300 pixels down. Then use a calculated Y coordinate for all the screen resolutions. Y = Window height * 3 and then Y = Y / 4. (Kind of cryptic, but I hope you get the idea.) iceman
  2. Thank you for the confirmation and information Kevin. I appreciate it.
  3. Thank you Kevin for the answer and solution.
  4. Can individual variables be restored (e.g. from the registry via Read Registry String), instead of all (e.g. Variable Restore Text Variables), after they have been Saved (e.g. Variable Save Text Variables)? Where are the variables stored when Saved (e.g. Variable Save Text Variables)? I could not find sample text in the Registry or in the contents of any file on my hard drive. Here's the code I used in the attempt. <TVAR2:01:01:WhereAreYouInHere><VARSR:01><VARSR:06> This question comes in response to my post the other day (Passing text variable with forward slash via Command Line Parameters). My workaround uses T98, T99, and N99 to accomplish the goal. I have a scenario where I want to use the value in T98, but I end up overriding it trying to retain the forward slashes in the other variables. Today, I worked on modifying my workaround by adding saving and restoring T98, T99 via the clipboard.
  5. Exacute MacroExpress on the Fly

    Do you mean load the Editor? If yes, add /EY to the shortcut. Check out Command Line Parameters for all the available options.
  6. The code command used was /VT1:500000/5000. I am planning to do a manually workaround by replacing the forward slash (e.g. /VT1:500000[Chr47]5000) with a custom string of text (e.g. [Chr47]) and then replace the custom string with a forward slash (i.e. /) after Restoring Values. <VARSR:05><TMVAR2:21:01:01:000:000:[Chr47]/> To replace most of the forward slashes, here's a macro that loops through the first 97 text variables and replaces them. Note: I used ASCII47 in this sample code instead of [Chr47]. The following code is also attached as a playable macro that you may import. <REM2:RestoreTextVariablesReplaceForwardSlash><REM2:Converts custom text to forward slash in all variables except T98 and T99.><REM2:Uses T98, T99, and N99.><VARSR:06><REM2:T99 - Master String><TVAR2:99:01:><REM2:N99 - Variable counter><REP3:01:000001:000001:00097:1:99:><TMVAR2:07:99:00:000:000:<TMVAR2:21:><IFVAR2:2:99:3:10><REM2:Add leading zero.><TMVAR2:07:99:00:000:000:0><ENDIF><REM2:Replace ASCII47 with forward slash for text variable N99.><TMVAR2:07:99:00:000:000:%N99%:01:000:000:ASCII47ASCII01/ASCII01>><ENDREP><REM2:Replace ASCII Characters.><ASCIIC:98:1:01><TMVAR2:21:99:01:000:000:ASCII01%T98%><REM2:Run scripted macro to replace forward slashes.><RUNMACVAR:99> RestoreTextVariablesReplaceForwardSlash.zip
  7. Multiple field form

    See Floyd's posting How To: Multiple Field Input Form Example, Use a script powered by Macro Express! http://pgmacros.invisionzone.com/index.php?showtopic=248
  8. Exacute MacroExpress on the Fly

    See Kevin's reply to post How Can I Run A Macro From A Command Line? How Can I Run A Macro From A Command Line? ... http://pgmacros.invisionzone.com/index.php?showtopic=2048
  9. Copy And Paste From Input Field

    Good idea wbeldman.
  10. Text Typing An Expression

    Way to go Insight Solutions! I am so glad you added the Variables Evaluation Level Advanced Preference. This will make our programming so much easier!
  11. Text Typing An Expression

    Copy the code of your macro and post that up so we can read it. When you post click the CODE button, paste your code, then click the CODE button again to "wrap" it.
  12. Feature

    We've used PaperPort a lot over the years. Visioneer Click Products, 3rd Party Software. There was a feature that you could use to align by clicking on one portion of the document, drag and release or click again. It may also auto rotate. Here's some code I threw together to execute such a feature. Prompt the user for the number of times to rotate clockwise and rotate it. <REM2:Prompt user: Rotate clockwise how many times?><IVAR2:01:02:FRotate clockwise how many times?TTCenter:Center><REM2:Execute rotation N1 times.><REP3:05:000001:000001:0001:0:01:><REM2:Keyboard Shortcut><CTRLD><TEXTTYPE:r><CTRLU><REM2:OR><REM2:Click button.><MMW2:100,100><LCLK><REM2:Delay between rotations.><MSD:0300><ENDREP><REM2:Execute alignment feature.><REM2:Keyboard Shortcut><CTRLD><TEXTTYPE:i><CTRLU><REM2:OR><REM2:Click button.><MMW2:150,100><LCLK><REM2:Delay.><MSD:0300><REM2:Go near beginning of title.><MMW2:250,250><REM2:Click button down.><LDN><REM2:Go near end of title.><MMW2:450,250><REM2:User to click and release left button up.> iceman
  13. Copy And Paste From Input Field

    I believe the problem with the code you tried is because the input box seems to be in Firefox. The suggestion I gave before works well with stable windows GUIs, not web browsers. Being that your source and destination windows are Firefox, I would suggest using the Tab key to get to your in and out fields. Maybe go to some known set position on the webpage/window via the keyboard (e.g. Alt+D takes the cursor to the Address field of Firefox). Then use tab however many times to get to the fields. I understand you don't want to move the mouse, but you could save the mouse's current position, <MOUSEPOS:T:01:02> , move the mouse to a generic spot above the text box (You may want to go to the top of the page Ctrl+Home, click near the upper left hand corner of the page/window), press tab however many times to get to the field. (You may not have to Ctrl+A if the text is already selected.) And repeat on the destination window/page. Then restore the mouse to where you had before starting the macro <MMS2:1N,1N> , or some other desirable position. Hope it helps. iceman
  14. Copy And Paste From Input Field

    Copy and paste this code in a macro and modify with your source and destination boxes. <ACTIVATE2:Notepad><GETCONTROL2P:01:NOTEPAD.EXE:NotepadNotepad001:1Edit><VARGETCONT:1:1><ACTIVATE2:UltraEdit-32><DIS:<GETCONTROL2P:02:UEDIT32.EXE:Afx:400000:8:10011:0:bc066bUltraEdit-32004:1MDIClient1Afx:400000:b:10011:6:13007e71AfxMDIFrame42s4EditControl><DIS:<VARSETCONT:2:%T1%><TEXTTYPE:%T1%> Get your source and destination windows running. Start a new macro. Click Get Control command from Window Controls section of Scripting Editor. Check Hide Macro Express. Click Launch Get Control Utility. Place your mouse over the crosshairs. Click and drag to your source text box. Release mouse. Click Save. Click OK. Repeat prior for destination text box, but select C2 for destination box before doing the crosshairs part. You can then use the typing of %T1% or the Variable Set Control Text command.
  15. I attached a zipped macro with one macro inside that works "pretty okay." I created the new macro with a Program Specific Scope for Quicktimeplayer.exe (Run if on Top), a Properties Control (Control on Top) for the main "VCR buttons" control, and one command to center current window. iceman QT.zip