Jump to content
Macro Express Forums

jsampsonyyyyy

Members
  • Posts

    49
  • Joined

  • Last visited

  • Days Won

    1

jsampsonyyyyy last won the day on May 21 2021

jsampsonyyyyy had the most liked content!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

jsampsonyyyyy's Achievements

  1. Wow! But many thanks for giving so much time to my problem. A very subtle trap.
  2. Thanks - substituting Ctrl +x does the same thing. I am trying to write a macro to make the first letter of the last word typed uppercase. What I have is the script: <TEXT TYPE Action="0" Text="<CONTROL><ARROW LEFT>" _COMMENT="Cursor to start of last word"/> <DELAY Flags="\x01" Time="0.2"/> <TEXT TYPE Action="0" Text="<SHIFT><ARROW RIGHT> " _COMMENT="Select first character"/> <DELAY Flags="\x01" Time="0.2"/> <TEXT TYPE Action="0" Text="<CONTROL>x"/> <DELAY Flags="\x01" Time="0.5"/> <VARIABLE SET STRING Option="\x02" Destination="%lastWordFirstLetter%" NoEmbeddedVars="FALSE"/> <VARIABLE MODIFY STRING Option="\x0B" Destination="%lastWordFirstLetter%"/> <TEXT TYPE Action="0" Text="%lastWordFirstLetter%"/> <DELAY Flags="\x01" Time="0.2"/> <TEXT TYPE Action="0" Text="<CONTROL><ARROW RIGHT>" _COMMENT="Cursor to end"/> It all seems to work as expected except that the clipboard contents pasted in are what was there previously.
  3. I have set delay after keystroke down, and delay after keystroke up, to 1000 microseconds. Also under "Use the hardware..." I have set the first box to 1000. However, the contents of the Windows 10 clipboard are not updated by "clipboard cut". Are my delays still not long enough to allow operation of the clipboard? This is Macro Express Pro 6.
  4. Does MEP have a way of making the mouse slow while a keyboard key is pressed? I see scripts for doing it in Autohotkey, and X-Mouse has a facility for it.
  5. Thanks both - I see that I can change the situation by fiddling with Keyboard Repeat speed etc. so I will experiment. I think there is something funny the way TCC accepts keystrokes.
  6. The recipient software is TCC by JP Software, a command-line shell. I suspect that if keystroke speed within the typing of the variable could be slowed down this might help. I haven't found how to do that. I have also tried the option to use clipboard and paste text but that produces "v" instead of the variable.
  7. If I set "text type" to type a string variable, where the string in the variable has an uppercase first letter, MEP may type the letter in lowercase on one occasion, or in uppercase on another occasion. This is Macro Express Pro v. 6.2.0.1 in Windows 10. To type a symbol on a number key such as "$" it seems to be necessary to have "shift key down" explicitly or the number will be typed, not the symbol. I have delays on both sides of the command to avoid clashes with previous or following commands.
  8. I have written a test macro which I attach here. The file being worked on is a simple text file of short lines and the intention is to display each line in a message box. However, at "Text File Begin Process" the above-mentioned error message occurs, "Undefined variable or the variable is the wrong type". This is despite "images" being set as a string variable of an array type. If there is an order in which I should set the macro up, what is it? If I need to edit it for debugging, how do I do that, or do I have to rewrite the macro from scratch for every bug? Does the error have something to do with the arrangement of percentage signs on the variable name? testFileProcess.mex
  9. If I open the Variables tab and "add" the variable there is an error "A variable with this name already exists". But if I run the macro there is an error "Undefined variable or the variable is the wrong type". As the variable exists (?) it must be the wrong type. If it should not be a string variable (for an array of strings) what type should it be? Or does it matter in what order I write the macro? In Basic or Python one can edit code freely before running it. Perhaps this is not so in Macro Express Pro.
  10. How do I define an array variable for use in "Text File Begin Process"? I get an error message "Undefined variable"...etc. I do not want to give the array any content when defining it as that should be read from the text file.
  11. It would be useful where it is not possible to predict where a button to click on will appear on the screen.
  12. Many thanks. I was not aware of this way of inserting comments. When it is done this way they can be exported. I might go through my macros and add line comments.
  13. I did, but did not know what you meant by a "line comment". How does one make one?
×
×
  • Create New...