Jump to content
Macro Express Forums

All Activity

This stream auto-updates     

  1. Yesterday
  2. The "Run Macro" command runs another macro in a macro file. If you want to run a macro in a variable use the "Run Macro in Variable" command. The "Run Macro in Variable" command can be a bit tricky. There is a sample macro that demonstrates its use: Date String to DateTime Variable
  3. Hello, On my macro, I declare the variable : <VARIABLE SET INTEGER Option="\x00" Destination="%vit_s%" Value="1"/> <MACRO RUN Use_ID="FALSE" Name="#variables" ID="-1" Wait="TRUE"/> And on the macro #variables, I use a debug box to cheak the value of %vit_s% : <TEXT BOX DISPLAY Title="Debug : " Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1036{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs20 %vit_s%\r\n\\par %test%\\f1 \r\n\\par }\r\n" Left="Center" Top="Center" Width="278" Height="200" Monitor="0" OnTop="TRUE" Keep_Focus="TRUE" Mode="\x00" Delay="0"/> It return me the value 0... The variable is on the 2 macros, and allowed to be called...
  4. Last week
  5. ah i see. I didn't know that. Thanks I'll give that a go.
  6. I've moved away from this idea. I had 2 more vaiables being set in the URL which where not working I had 2 prompts at the start to enter start and end dates T1 and T2 then it would go to a spreadsheet and copy the main URL something like http://mainurl.com/date=%T1%-%T2% and anytime it pasted this into the browser is would just paste T1 and T2 and not the actual dates. In the end I just set Excel to change the dates based on a cell value and copied the whole URL into the browser and that worked.
  7. terrypin

    Breakpoint puzzle

    Does anyone know why using a breakpoint on a command could change the behaviour of a macro before that command? The initial section of the macro shown here simply opens the properties of a file selected in Win 10's File Explorer. But, running it with F9, when it stops at the breakpoint, the properties window is nowhere to be seen. I eventually found it hidden under the Script Editor. And instead of two '<CONTROL><TAB> commands it had executed only one, so that the Security tab was selected. If I removed the breakpoint and instead inserted a Pause directly before the Mouse Move, I got the correct result: the Properties window was on top and its Detail tab had been selected.
  8. I tested with MacroExpress version 3, using the URL for this forum page, and running the macro successfully brought me right here: // Variable Set String %T1% "https://pgmacros.invisionzone.com/topic/8145-store-web-url-in-variable-and-launch-it/" Web Site: %T1% [Default Browser] //
  9. Earlier
  10. acantor

    Store web URL in variable and launch it

    1. Check that the "Don't Process the Embedded Variable" checkbox is unchecked. 2. Confirm the URL is actually in %T15% by outputting the value somewhere, e.g., Text Box Display or Text Type. 3. Then ensure the URL is correctly formatted: Macro Express does not like spaces before or after the URL when you are using the Web Site command.
  11. Variable Modify String [Trim] removes spaces, line breaks, carriage returns, and the like from left and right ends of the variable. You don't "tell" Trim what to trim, it just does it. See Macro Express "Help" screens for further explanation. If you want to see what is there, you could write your text variables to a text file, then look at the file with a hex editor if you have one. But start by just trying Trim and see if it helps.
  12. I'm trying to store a URL in %T15% for example and use "Web Site: %T15% [Default Browser] to launch that URL. but it's not working. Is this possible ?
  13. How do I know what to trim if I can't see it ?
  14. terrypin

    macro with a list

    Hi Mark, Sounds odd if you’ve simply imported my macro as I exported it. Does variable nIndex exist in the list under the Variables tab? Is it an integer variable as it should be? if still having a problem please show us your macro. Terry, UK
  15. Try opening the samples.mex in the installation folder. and typing Alt+P. If a popup menu launches, it's working. Or run any of the other sample macros like "Type Special Characters".
  16. What is an SNT file? I don't know of anything in MEP with an SNT extension. SNT is the extension for Windows Sticky Notes. If this is what you're referring to, then MEP will not work because, as I pointed out earlier, it's a UWP application. I doubt any automation utility will function. The keyboard hooks don't work so the macro will never activate because MEP never sees the hidden keystrokes. Have you tired MEP in other applications? Try a simple text type macro in Notepad.
  17. mdoverman

    macro with a list

    Terry, this looked like an interesting macro I could use to learn more about arrays and also to possibly use to build other macros but I keep getting an error on Line 2 of an undefined variable or the variable is the wrong type. Thanks, Mark
  18. Hmmm...I converted a user from Win 7 to Win 10 and copied their .snt file to their new pc. They can see the macros in MEP, but they will not run.
  19. Mostly. One problem is UWP apps including Edge. AKA "Modern" or "Store" apps. MS has designed them to be more secure against keystroke loggers and other malware which defeats most functionality for automation apps like MEP. But all traditional WinForm apps and Windows API functions (E.G. file manipulation) still work with MEP.
  20. Is M E P 4.4.1.1 compatible with windows 10?
  21. James534

    macro with a list

    Thank you
  22. kevin

    Forum bug

    I just installed an update to the forum software. It does not specifically mention the symptom you describe but it does list "bug fixes" in the change list. Hopefully this will have a positive effect.
  23. terrypin

    Forum bug

    On the occasions that I've been puzzled about unexpected posts in bold I think it's because I didn't refresh the page. I'm using Waterfox, a version of Firefox.
  24. terrypin

    macro with a list

    I'm late to the thread but if it helps here's a section for your macro. It takes a 'combined' list of the format you specified earlier today and delivers two arrays for use in the rest of the macro. List AAA , abdominal aortic aneurysm AAD , antibiotic-associated diarrhea AAI , acute arterial insufficiency AAPMC , antibiotic-associated pseudomembranous colitis ABCD , airway, breathing, circulation, disability ABE , acute bacterial endocarditis ABG , arterial blood gas ABI , acquired brain injury ABMT , autologous bone marrow transplantation ABPA , allergic broncho-pulmonary aspergillosis ACPO , acute colonic pseudo-obstruction ACS , altered conscious state AD , Alzheimer's disease ADD , attention deficit disorder ADHD , attention deficit hyperactivity disorder ADHF , acute decompensated heart failure ADR , adverse drug reaction AFL , atrial flutter BD , bipolar disorder DIIK , darned if I know Macro Text File Begin Process: D:\\ListMedical.txt Variable Modify Integer %nIndex%: Increment Split String "%tLine%" on " , " into %tBoth%, starting at 1 Variable Set String %tInput[%nIndex%]% to "%tBoth[1]%" Variable Set String %tOutput[%nIndex%]% to "%tBoth[2]%" Text Box Display: // Delete/Disable after testing Text File End Process Text Box Display: Result Code <TEXT FILE BEGIN PROCESS Filename="D:\\\\ListMedical.txt" Start_Record="1" Process_All="TRUE" Records="1" Variable="%tLine%"/> <VARIABLE MODIFY INTEGER Option="\x07" Destination="%nIndex%"/> <SPLIT STRING Source="%tLine%" SplitChar=" , " Dest="%tBoth%" Index="1"/> <VARIABLE SET STRING Option="\x00" Destination="%tInput[%nIndex%]%" Value="%tBoth[1]%" NoEmbeddedVars="FALSE"/> <VARIABLE SET STRING Option="\x00" Destination="%tOutput[%nIndex%]%" Value="%tBoth[2]%" NoEmbeddedVars="FALSE"/> <TEXT BOX DISPLAY Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang2057{\\fonttbl{\\f0\\fnil Tahoma;}{\\f1\\fnil\\fcharset0 Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs20 nIndex\\f1 = \\f0 %nIndex%\r\n\\par tLine\\f1 = \\f0 %tLine%\r\n\\par tBoth[1]\\f1 = \\f0 %tBoth[1]%\r\n\\par tBoth[\\f1 2\\f0 ]\\f1 = \\f0 %tBoth[\\f1 2\\f0 ]%\r\n\\par tInput[%nIndex%]\\f1 = \\f0 %tInput[%nIndex%]%\r\n\\par t\\f1 Ou\\f0 put[%nIndex%]\\f1 = \\f0 %t\\f1 Out\\f0 put[%nIndex%]%\r\n\\par \r\n\\par \r\n\\par \r\n\\par \r\n\\par }\r\n" Left="Center" Top="Center" Width="278" Height="200" Monitor="0" OnTop="TRUE" Keep_Focus="TRUE" Mode="\x00" Delay="0" _ENABLED="FALSE" _COMMENT="Delete/Disable after testing"/> <TEXT FILE END PROCESS/> <TEXT BOX DISPLAY Title="Result" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang2057{\\fonttbl{\\f0\\fnil Tahoma;}{\\f1\\fnil\\fcharset0 Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\b\\f0\\fs20 %tInput[\\f1 1\\f0 ]%\\f1 = \\f0 %t\\f1 Out\\f0 put[\\f1 1\\f0 ]%\r\n\\par %tInput[\\f1 2\\f0 ]%\\f1 = \\f0 %t\\f1 Out\\f0 put[\\f1 2\\f0 ]%\r\n\\par %tInput[\\f1 3\\f0 ]%\\f1 = \\f0 %t\\f1 Out\\f0 put[\\f1 3\\f0 ]%\r\n\\par \\f1 \r\n\\par etc\\f0 \r\n\\par \r\n\\par %tInput[\\f1 20\\f0 ]%\\f1 = \\f0 %t\\f1 Out\\f0 put[\\f1 20\\f0 ]%\r\n\\par \\b0 \r\n\\par \r\n\\par \r\n\\par \r\n\\par }\r\n" Left="622" Top="485" Width="434" Height="240" Monitor="0" OnTop="TRUE" Keep_Focus="TRUE" Mode="\x00" Delay="0"/> Result and macro file below Terry, East Grinstead, UK MedicalList-James.mex
  25. Cory

    Forum bug

    When I come to this forum after being away for a while there will be several unread posts, indicated in bold. When I open one of them and return to the main form page, that one should be marked as read and not bold anymore. But what I'm experiencing is that all of the messages are marked as read. Now I don't know which I have not read. Has anyone else experienced this problem? If so, what browser are you using. I'm using Chrome. Also does anyone know of a work-around? Right now I'm choosing to right click and open in a new tab. But sometimes I forget.
  26. So in my example, #2. Correct? I'm sorry I don't have time to write the macro for you. I am available for hire at reasonable rates if you like. Between rberg and I we have given you commands to explore. Part of learning is reading the documentation on a command, and experimenting with it. Go create a macro with Repeat With Folder like I suggested in my first message and see how far you get. If you get stuck show us what you have and we can advise from there. Also if I have mentioned a command you don't know what it is, please let me know. Sometimes we get so used to what we do we don't see our omissions. But I think most are self explanatory. I mentioned increment an integer variable. Well... Let's think about that. Look at the variable commands. You should be able to guess that Variable Modify Integer might be it. And you would be correct. Now your curious mind should be exploring this command's methods. Add... subtract... Oh look! At the bottom. "Increment" and "Decrement". Easy and fun!
  27. Cory

    Puzzling absence of explorer.exe

    That was one of them.
  28. Cory

    Repeat Loop For 30 Seconds

    RTFM. LOL. JK.
  1. Load more activity
×