Jump to content
Macro Express Forums

Wulfgar

Members
  • Posts

    6
  • Joined

  • Last visited

Wulfgar's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hey folks, I've looked through the archives, and I can't seem to find something similiar to my question, so here goes. I'm wondering if it's possible to assign macro script commands to variables? I'm pursuing top-down programming, similar to what's found here. Yes, I know it's PHP and HTML. I'm trying to work the idea, not the specific code found on that page. Can we assign several lines of script to a variable, and then create a 'backbone' macro that calls those variables? I'm currently experimenting with the method that ejs proposed here. Has anyone tried this?
  2. Hi folks, I'm sure this one is easy, but it's one of those can't-see-the-forest-for-the-trees kinda things for me right now. // Write clipboard to T8 // IF T2<>T8 // do this thing // ELSE T2=T8 // do some other thing If T2 doesn't equal T8, my macro will flip to another screen. On this next screen, I want to perform the comparison again. It will in fact continue flipping forward until T2=T8. After flipping forward, how do I get the macro to go back and compare again? Will it just be another IF statement? Or is there some kind of RETURN statement that can go back? Now that I look at it in another light, I could do another IF statement. But that's not so elegant. Is another IF my best shot? As always, you folks rock. I wish I could give more info than I take, but maybe, with time...
  3. All, I must copy a block of text. I have to search that text for a tax id number. Tax id numbers are always 9 digits. My organization uses no punctuation, so they will always be in the form nnnnnnnnn. It's easy to detect if a particular taxid is in the text. I'm having a hard time finding any random taxid, and then extracting it. That's what I need. 1. Does the block contain a taxid? 2. If so, copy it into a variable. I'm fairly proficient with MEX, but this one has me stumped. Any thoughts?
  4. Thank you! I'm darn glad to be here. I love this program so much, I've built my current career around it. But it still confounds me on a regular basis. I didn't know that! I'll try it.
  5. I had to modify it a bit, but it looks like it's going. Of course, I have no way of delaying the "Done", so I'll have to wait for some big system lag to truly know... Get Control %C1% Delay 0.5 Seconds Repeat Until %T99% Contains "Done" Variable Get Control Text: %C1% to %T99% If Variable %T99% does not contain "Done" Break End If Repeat End Thank you much...
  6. Hi All, I've looked back through the archives, and I can't find a post to fit this situation. I'm moving from one web page to another. They are on a server, so the URL doesn't change. I want to capture the control "msctls_statusbar32" (that's the IE status bar). When the web page is finished loading, it displays "Done." I want to wait for the Done, not just delay a set amount of time. Wait for Done indefinitely if necessary. I've captured the control into C1, and the control text displays "Done", so I know I have the right control. How specifically do I code the bit about waiting for C1 to equal "Done"? I'm missing that part! Any help is greatly appreciated.
×
×
  • Create New...