Jump to content
Macro Express Forums

kunkel321

Members
  • Content Count

    178
  • Joined

  • Last visited

  • Days Won

    2

kunkel321 last won the day on March 1

kunkel321 had the most liked content!

Community Reputation

4 Neutral

About kunkel321

  • Rank
    Advanced

Contact Methods

  • Website URL
    http://www.nonags.org/members/kunkel321/index.html

Profile Information

  • Gender
    Male
  • Location
    Western Wa
  • Interests
    Wife and Daughter. Psychology stuff. Computer things.

Recent Profile Visitors

307 profile views
  1. I haven't worked with variable arrays, but I wonder if this would be a good use for one. Like collecting and storing all the lines of text, and then going to the web page and entering them all. ...as opposed to getting a line of text, making your browser active, pasting in the single line of text, going back to your text file, and so on. When you say you're entering them in "a text entry box" on a webpage, what do you mean? Is it a series of boxes, and one line of text for each box; or do you paste the value, then click a button, then paste the next value into the same box? I think the second one would be much slower. Edit: I see now (from your second post) that it is the latter. Probably you have to press <Tab> then <Enter>. You may also have discovered that Shift+Tab jumps you back up to the text box. Depending on the website, there might be ways to have MacEx wait for the site to be ready for the next entry. Maybe the window title changes, or maybe the text cursor changes.
  2. I'm not a programmer, so others can probably give better answers... I think most implementations have Repeat Until Some steps to do End Repeat. This loops until the "repeat until" is satisfied. You can also have conditional exit points inside the loop. Repeat Until Some steps to do -Does %Var% = XYZ? ---if yes, Break ---otherwise keep going End Repeat. In the Sample Macros file that ships with MEpro is a macro called Repeat Until that uses this "if yes, Break" setup. You can open and dissect it. Note Also: MEp has a pretty good context-sensitive help system. SO you can (for example) click on the End Repeat command in the code or in the list of commands, and press the <F1> button. That section of the help file will popup.
  3. You probably have already thought of this... But have you tried embedding the formatting information in different ways in the multi choice box? For example with accelerator keys, such as Allegr&o &Allegro Would appear as Allegro Allegro But each would appear as just Allegro when it was sent to a variable from the multi choice box. Also, maybe tag1Allegro tag2Allegro Then Variable Modify String > Delete part of text after the variable is sent from the multi box.
  4. Wow, very cool! I'm curious, how many commands are in your 3 scripts? Looking at your video, it seems like there must be hundreds.
  5. Well that's some good left-brain exercise there! LOL. Not sure I'm understanding... Also as Cory recommends, reworking your logic flow might be good. Nevertheless: I see that there is a Macro Stop command. If you select it and press F1, you'll get the relevant page in the help file. There is a note at the bottom that suggests you can put the Macro Stop command in there, and the macro will continue to play to the end... I'm not sure how that even works, as I have never used the command.
  6. Regarding checking for letters: I see that you can change a string from lower- to upper-case and vise versa. You could save copies of the sting, to var1 and var2, then make var1 UPPER and var2 lower and compare the two using the 'case-sensitive' option. If they're the same--no letters. ...wouldn't detect numbers or special characters though...
  7. It's been a couple years since I googled this topic, but I seem to recall that there are programmatic reasons that no single utility can list all or the possible hotkey assignments...
  8. Some good thoughts here on pixel testing. It occurs to me that, with rbert's example of sampling a few specific points, you might have a problem if the zoom factor of the page were ever changed, then the points might be at different locations. This might be a good use for "Ctrl+0" which would set the page to 100% zoom. In my last post (above), I mentioned the other thread, "Issues navigating in browser." It occurs to me that, using the method discussed there, you might be able to identify a form. If a particular web form has a unique phrase such as "Referral," then you could do Ctrl+f, type "referral," then Esc. If the word is found it would (i.e. should) be left highlighted. You could then copy to clipboard, and check if the clipboard = "referral." This would be really cludgy and I would hate it. Still though, should work in theory.
  9. Good to know! I didn't even realize WCAG was a thing.. I'll suggest this to the developers. As I look closer, I see that there actually is a difference in the URL when I go to different forms. Unfortunately the difference appears to be a random number such as "document?q=3BOJIA9BUU." I compared a bunch of them and there doesn't seem to be a pattern. I like your pixel-sampling work-around. How long does it take to scan a normal sized window though?? Interestingly, the other topic on this forum "Issues navigating in browser," overlaps a bit with this one. For example using Ctrl+f to see if certain words are on a page. I don't think it's possible for MEp to "see" whether or not anything was found though. Another interesting thing: In Chrome, if you press F12, you can see the actual code of the webpage and search it. Again though, I'm not sure that you can utilize this with a Macro (also you might not want to mess about in the code of webpages).
  10. I like the Alt+d tip. Another good one is Ctrl+0, which sets the zoom to 100%. I'm not sure how you'd use that in a macro though. Regarding the top post, I do wish there was a way to make the macro "identify" the form. For example with my above-pasted special education form text, there are a couple different types of forms. "Referral for testing" which will be one of multiple different scenarios, or "results of testing" which will be one of multiple different scenarios. I'd like the macro to "see" which form I have open, and only offer text templates relevant to that form. With the web database I use, the window title never changes and the URL never changes.
  11. Yep. I use macros on webforms a lot. I find that navigating with the keyboard, is the way to go. Some tips: Tab to the droplist, then press "m" to go right to "mammogram." Or, if mammogram is the 4th thing in the list that starts with a m, then press "mmmm." Tab to a checkbox or radio button and use <Space> to check/uncheck or select the item. Shift+Tab will jump backwards, though I never use that in macros. Here's an example of some text that might get sent to the webform: <CTRLD>a<CTRLU><DELETE>Please find the attached consent-for-evaluation form. Upon receipt of %txtName%'s consent-for-eval form we will begin the evaluation process. Remember that this consent form is only for the evaluation. If %txtName% does qualify for an Individualized Education Program (IEP), then you'll need to sign an additional permission form for us to start %txtHisHer% services. Please call if you have any questions. Stephen Kunkel, School Psych @ %TxtSchool% <TAB><TAB><CTRLD>a<CTRLU><DELETE>No other options were applicable. A file review and input from parents and staff suggest that an evaluation is appropriate at this time. <TAB><TAB><CTRLD>a<CTRLU><DELETE>N.A. <TAB><TAB><CTRLD>a<CTRLU><DELETE>This is based on the recent referral for special education testing. I always click in the first edit field, then activate the macro. As you might guess, Ctrl+A is "select all." That allows me to delete/clear any old text that is in the text boxes.
  12. Did some more experimenting... Not looking at the the "Hello World" message, but rather whether or not this context menu (https://imgur.com/Ejp4dmO) pops up before the macro runs. I think the determining factor is whether a webpage is launched. I also tried setting variables, adding logic statements, and launching programs. None of those cause the context menu to show. <VARIABLE SET STRING Option="\x05" Destination="%sWindowTitle%"/> <IF VARIABLE Variable="%sWindowTitle%" Condition="\x06" Value="TED" IgnoreCase="FALSE"/> <WEB SITE URL="https://pgmacros.invisionzone.com" Wait="FALSE" Default_Browser="TRUE" NoEmbeddedVars="FALSE" _IGNORE="0x000C"/> <END IF/> <IF VARIABLE Variable="%sWindowTitle%" Condition="\x07" Value="TED" IgnoreCase="FALSE"/> <ACTIVATE OR LAUNCH Title="Word" Exact_Match="FALSE" Wildcards="FALSE" Path="WINWORD.EXE" Mode="\x00" Default_Path="TRUE" Wait="1" Wait_For_Program="12"/> <END IF/> Running this macro, if I right-click the minimize button of TED N Pad, the context menu appears (and the forum opens), but if it's another app's menu button, the there's no context menu. EDIT: I see that it's not apparent in the above pasted code, but the macro is If window title contains "TED" then launch pgmacros.com If window title does NOT contain "TED", then launch Word.
  13. Getting on to another topic here, so I started a new thread. When using R-Mouse Click on Minimize button as a trigger, do you guys experience that the default context menu (that normally appears when r-clicking anywhere on the top window bar) is still shown, or does it not popup when MEp is monitoring the minimize button? Referring to this: https://imgur.com/Ejp4dmO I have a simple test macro that has a popup "Hello World" box. And I also have the macro that we were talking about here Each have the same trigger (the r--click thing). For each, the minimize button r-click is the only trigger. But they behave differently: The "Hello World" one does not show the default context menu popup, but the more complex macro does. Having the default context menu hidden makes the most sense to me.
×
×
  • Create New...