Jump to content
Macro Express Forums


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by jsampsonyyyyy

  1. 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.
  2. I did, but did not know what you meant by a "line comment". How does one make one?
  3. Thanks - I have made a feature request.
  4. Sorry, I wasn't clear enough. In the explorer the File menu has an option "Export" which has an option "Output macro information". This opens a box with "Macro Information to Output" with tick boxes "Activation" etc. On clicking "OK" one can choose a filename and folder wherein to save the information as a text file. However, no comments are saved. There may be a way of making and exporting comments but I do not know of it. The comments I mean are what one might type in the "Notes" tab when making a macro, or what one might type in the "comments" tab in "text type", etc.
  5. Is there a way to export the comments in the macros to a text file? "Export" has "Output macro information" but comments in the macros are not included. One can give a clue what a macro does in the nickname but it would be useful to have the comments visible in one place. One can then see what one has and prune out obsolete macros etc.
  6. Many thanks - these are just what I needed.
  7. In the "Dialogs" section there is a procedure "Text Box Display" which puts up a text box to show console output from a Python program that my macro runs. When my macro ends, a text box comes up with nothing in it except an "OK" box to click on to close it. Is there a command to close the box automatically or not to show it if there is nothing in it?
  8. I am wondering if it is possible to delete the beginning of a string if it consists of a certain substring. E.g. if, and only if, the string begins with "Joe " then delete "Joe " leaving the rest of the string intact. I have found "replace" but that would remove "Joe " wherever it was in the string, not necessarily at the beginning.
  9. I have, and had, "##" in the Prefix Keys box. So I reverted back to a previous version of my .mex file to get rid of the problem. I had not realized that I already had a shortkey "pn" that gave text type "pneumo" which starts with "pn". I suspect that playback started with the trigger string so that there was a feedback effect. If so, then the playback of a shortkey macro must not start with its own trigger string or with the trigger string of an existing macro whose "text type" starts with the trigger string. I would have thought the prefix key would prevent feedback in this situation but it
  10. I created a macro with shortkey pn to give text type "protein". It entered "proteiproteiprotei..." and so on until I stopped it. I cannot find the macro in the list of macros so cannot edit or delete it. I have tried to upload the macro file but it fails. I am usipproteiniproteiniproteing Macro Express Pro - while I was typiproteing this it produced the text you see. The behaviour is differeproteint iprotein differereproteint target programs.
  11. I see. It is a simulation. Is there a way of getting the console value into %ConsoleValue%?
  12. I said was there a way for the text box not to activate (meaning "appear") if there was no console output from the program. I do not know how to obtain acantor's script. Is %ConsoleValue% provided by Macro Express Pro, or do I have to create or populate it somehow? Or is it set to "Prompt" and "Prompt" picks up the console output from the program? I need a "Do this, do that" kind of answer.
  13. I have a macro which runs a Python program. I end the macro with Text Box Display to show any console output from the program. Is it possible for Text Box Display not to activate if there is no console output from the program? Also, is there some way of showing console output in a display that closes after a set interval without the user having to click "OK"?
  14. I rarely write macros so am always inexperienced. Today I cured a bizarre problem where I had entered <control>c in "Text Type" assuming that it would save selected text to the Windows clipboard. Instead, in one program it selected its edit mode and deleted the selected string. I tried it in another program where it added a space. I then changed the text in "Text type" to <control down>c<control up> and after that it did what I wanted. It may be useful not to bother with "<control>c" - I don't know why it does not do what is expected.
  15. I have a "mouse move" command in a macro. This is preceded by a "Get mouse position" and a delay. If I start the macro with a keyboard shortcut and then move the mouse manually, the mouse moves but not to the position I specified. Is there a way of preventing manual movement of the mouse sabotaging the macro in this way? If I have asked this before, I apologise. I cannot find the relevant post.
  16. I have Acrobat Reader DC open on one monitor and PDF-XChange Viewer open on the other. I am trying to write a macro whereby Acrobat is selected and "right arrow" is transmitted to it to see the next page of the open document, then PDF X-Change Viewer is opened and "right arrow" is transmitted to it to see the next page of the open document there. The first command is 'Launch Program and Activate Window: Program "ACRORD32.EXE", Parameters "", Window "[title of document]"' where I have the title of the document as it appears in the window title. The second command is 'Text Type (Simulate Keyst
  17. Thanks - this works with the following provisos: I think "registercard" here means "tab". I find that the properties button is greyed out until one selects the hotkey one wants to change. If one imports macros it must be a common requirement that the hotkey must be changed to avoid clashes with existing macros. Perhaps this should be covered in the user manual.
  18. I have found the answer, I think. I was running a program that has its own macro facility. Evidently if I use an activation key combination that it uses, that overrides any Macro Express macro.
  19. I found that 'mouse move' would not work. What did make it work was to select tkinter's console window. Although I have no command to select or deselect any window, "mouse move" seems to work only when this particular window is selected. The macro is: Mouse Move: 165, 67 Relative to Screen. Delay: 0.5 seconds. Mouse Left Click. Delay: 1 seconds. Nothing else. Activation is Ctrl+Alt+W. Scope is global. I closed the tk program to see what that did, but Mouse Move did not work. There was a momentary appearance of the circular blue progress icon. The macro behaves as if its scope is within tk. I h
  20. Many thanks. The window title is "tk" in this case. I have been investigating further. "Window Activate" and "Mouse Move" work better if confined to one monitor. I have a two-monitor setup which I suspect is a cause of problems.
  21. What is "Window Activate" actually supposed to do? When I try it it does nothing. Are there conditions to be satisfied before it does anything? I want to change focus to a particular window - if this is the wrong command which is the right one? Thank you for the "CTRL+Space" tip.
  22. Many thanks. The macro doesn't work so I expect I will be back with more questions.
  23. Is it possible to write a macro which selects the window of a running program and moves the mouse to a position relative to that window? One would need to set the mouse locator to show the position relative to that window, so as to know how to set "mouse move". Of course while writing the macro the currently-running program is Macro Express Pro, not the program of interest. The mouse locator does not then show the mouse position relative to the program of interest. Is it possible to make it do so while writing the macro?
  • Create New...