Jump to content
Macro Express Forums

another1one

Members
  • Posts

    18
  • Joined

  • Last visited

another1one's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Try Set Integer, then on the "option 2" tab you can set from various components of the date. Use an integer for each part you need. Then use a text type. For instance, if you save the day as %N1% and month as %N2% and year as %N3% and wanted to type them as "M/D/Y", then put %N2%/%N1%/%N3% in the text type command (substitute your own formatting)
  2. Cool. I didn't think to look in the integer options. ME has a lot of useful functions, if you know where to look for them. BTW, unrelated, but... are there any plans to add arrays to ME? That's one thing I really miss.
  3. Have you made sure that the window is in focus first?
  4. Could you do a Modify String, with "Delete part of text"? At least that would work if the number of digits was consistent. Otherwise you'd need to search the string for the space. That brings me to a question, can ME do something like that? Most program languages have a simple function that can return the first instance of a substring/char within a string (or, the first instance after a specified starting point), but come to think of it I don't recall such a function in ME. Much as I love how useful ME is sometimes I'm a little annoyed at it's lack of quite basic programming abilities (hopefully to be amended in later versions.)
  5. Thanks. I've opted not to use ctrl+f in the macro. A lot of the text on the form appeared elsewhere on the page anyway. The form at least uses javascript to open and close various subsections, so I'm having the user click on the collapse all link, then grabbing the mouse location of the link so the macro can click on it later. The I can tab into each section. I don't particularly like tabbing through everything, but it seems to be the best option.
  6. As I understand it, you were using recursion to repeat the macro? That's probably a bad idea, as it would continue to open instances of the macro within the macro and continually eat up more and more memory as each instance is added to the stack. The repeat works a lot cleaner.
  7. Wouldn't %N1% ALWAYS = %N1%? I think you meant to check it against something else (a constant?), otherwise that loop would not work. EDIT: I think you meant Repeat Until %N1% <> %N1%
  8. Repeat End merely specifies the end of the loop to be repeated. When the macro encounters the repeat end command, it jumps back up to the line after the initial Repeat statement (if the conditions for terminating the loop have not been satisfied yet). %N1% is an integer variable. It holds any integer within the macro, hence setting it to = 1 means any time you ask for the value of %N1% you get back 1. The macro will continue to repeat since %N1% will never = 0, therefore the repeat loop will not terminate until you manually break out of the macro.
  9. The issue is that I am writing the macro for others to use. If it were for myself, I'd simply write it so that it worked in Firefox and be done with it. But as most people go on ignorantly using IE, I need it to work in that. ctrl+f doesn't work in IE7? Yikes... I thought that version was supposedly an improvement. I'd be willing to do some coding outside of ME if anyone knows anything that can work with html...
  10. Anyone? So far the best solution appears to be using ctrl+f and finding text then tabbing in, but that's not as reliable as I'd like, certain strings could appear more than once, and I don't know if it would be compatible with all browsers (certainly Firefox and IE6 handle it differently, and I've no idea about IE7). But it would be really neat if there was a way - even using some code outside of ME - to enter into the form fields by knowing the html element name. Any ideas? Anyone do anything similar?
  11. How could Macro Express be used to input data into html forms? Is it possible if I know the names of the inputs in the html? Can't use the mouse, since they would render in different places in the window based on browser size or screen resolution. The only other option seems to be tabbing between them, but that may not be as reliable as I'd like. So... can info somehow be entered directly?
  12. A rare bug I have encountered when running macros that use the clipboard to paste text from text-type fields is that it will paste the contents of the clipboard before putting the text in the clipboard. I have submitted a bug report on this, however... I was wondering if tinkering with the delay for clipboard pasting setting would resolve this issue at all (or if the delay only occurs after a paste, and therefore would have no effect). On the same subject, I was wondering if it is safe to lower the delay in order to speed up macros, or if there is a good reason it is a 250 ms. Thanks, Jason
  13. I've been using Portable Firefox, and (aside from long loading time) it's quite excellent. Great to have a decent browser on any computer. ;-) I think it would be terrific if we could get a portable version of Macro Express. The only problem I see is that Portable Apps are generally free software. Perhaps there could be a way to play back Macros from a USB drive?
  14. I think it's very interesting, since I started using Macro Express for much the same reason. The GUI we use here is really horrible, and I found myself doing very repetitive tasks that really could be automated. So I taught myself Macro Express, the macros evolved over time as I got better. I'm using them the same way you are, getting data from a spread sheet (needs to be saved as tab-delimited of course). My solution is to grab the window you are keying data into as a control, and then whenever you have it enter data first have it wait for that control to gain focus. Here's what I did: When the window you're entering comes up: Capture Control to %C1% (control focused) Then whenever you enter something: Wait for Control (%C1%, gain focus) I also have it Set Focus to %C1% when entering, just to be sure that it's always in the proper window (on a computer other windows can sometimes pop up, and you don't want a macro running wild) Hope that helps. (BTW, is there a way to copy and paste Macro code?)
  15. I'm assuming that there are no built-in shortcut keys, or any way to select the menu item other than arrowing to it or clicking on it? (User-friendly interfaces seem so rare...) You could always try using the mouse, using the mouse locator to find the position of the item on the menu relative to the window, then giving it those coordinates in a Mouse Move and then Mouse Click command.
×
×
  • Create New...