Jump to content
Macro Express Forums

Rustywinger

Members
  • Posts

    120
  • Joined

  • Last visited

Everything posted by Rustywinger

  1. Ugh. I am still confused, sorry! I just want to understand these things so I can consider them in the future. How is an ME "Double click on control" different than an ME "Mouse left button Double Click"? I would have just assumed that ME delivered on both action requests the same way since the "on control" part of that is just a means of focusing the click on X-Y, same as "move mouse". Obviously it doesn't work that way because one works and one doesn't. Is it because the "Mouse Left Button Double Click" sends the command through a different process, ie- through the the mouse handling routines and "Double Click on Control" bypasses that and sends the command directly to the system?
  2. I took a quick look at this: At first I thought it could be done within a repeat- but the problem is there is a "Wait for keypress" but no "If keypress". So the only way I could think of for this to work is to put it in an argument. Simply setting up a "wait for keypress" and then setting it for 30 seconds results in an Macro abort, when what you need for this is a Break or Macro Return. It would be fantastic if the Wait controls were further developed to add this capability!
  3. Thanks for the insight, both of you. Sorry I was so late in responding. Ok, I am entering a double click into a text field that contains text. If I just double-click on it manually, the text- if it exists- is highlighted (This is what I want to happen). If I use ME to click on control, the text prompt is inserted into the text field at either the point of click or beginning of line (if it was blank) If I use ME to double click on control... nothing. Not even the text prompt. If a "double click on control" is simply two clicks in sucession, why isn't the first one at least inserting the prompt? BTW- this is all just "discussion" now... I had to use "move mouse" and "left button double click", which does the job- I was just wondering why double-click on control couldn't do this since now my script is no longer dynamic! How awful. ;-)
  4. So I capture control to C7. Mouse Click on Control is then entered into the Macro script, with C7 as the control specified to reference. Single click... works as advertised. A click is entered into the control. Double click... does not. It will not even click on the control. Sorry if this has been previously covered. Ideas? I have tried using different mouse speeds, etc.
  5. Wow, it sure seems to take awhile for the program to put the macro name into a variable! there is a two second pause everytime that Macro Run is called up.
  6. Never mind... "Variable Set from Misc" allows me to do this.
  7. I have a dialog box that pops up at the beginning of a macro which lets the user know a macro is currently running. Since there are quite a few "Run Macro" links to external scripts in my work, I would like the dialog box to update with the name of the linked script currently executing. To do this, I just need the name of the current macro putinto a variable. Sure, I could hard-code that into every macro script, but I want to link this dialog box from all my macros in case I want to change the position of the dialog box- this way I only change one script since the name of the macro in the dialog box would be dynamic. Any ideas?
  8. I have started to include at the top of my macro scripts, a display box callup that contains all the variables used in the current macro. I have it off by default, but when things go wrong, I just open the macro, make a copy of the display callup and then paste it into the code where I would like to see what is happening in memory. When done, I delete the copy. I was also thinking of... making a repeat argument that would poll all 297 variables and list any that have contents in a display box, beside the variable ID (ie- T50=555-5555). I know that you can get this information from the debug window in ME, but I feel that is too many steps and the different types of vars are not all on the same page. I have an Excel spreadsheet that keeps track of what all the variable functions are and it would probably be a snap to run a text processing argument to add labels from this file to the results of the first repeat argument so that the data collected and displayed is clearly identified by what it represents. (I have a lot of %NX% vars that are either 1 or 0 to represent "states") This repeat argument would probably be accessed via a Macro Run command and also be saved at the top of macros and turned off by default, so it takes up only one line in my script. Anyway, feel free to add to this thought... We're all a bunch of optimizing control freaks here... you know who you are :-)
  9. This is driving me nuts. If I am in Excel and hit CNTL-A via keyboard, everything gets selected. If I put that into a "Text Type" macro, only a single cell gets selected. I tried a "record macro" just to see if recording the CNTL-A made a difference, but no. Still wouldn't select within the workbook. ??... I mean... ?!?!?! Also, CNTL-N is not creating a new file in Excel when used in a macro so this *seems* like a common issue, but I don't see any instances of this problem in the knowledge base (or am guilty of not looking hard enough). So if anyone can shed light no this, please send a light bulb my way.
  10. Sorry, not sure where to put this- This has to do with the Macro Run script. Sometimes the process of making life easier using Macro Express can get complex itself! Troubleshooting macros that have several large external links which necessiate closing one macro, hunting down the other (which might be in a different category) and then repeating the process to go back to the original one. When there's only one undo and no history, sometimes this process can cause problems. The interface feature for ME I would like to see is the ability to open and edit macros linked via Macro Run from within the script they are linked to. It could just be an expand/collapse function or double-clicking opens them in a new window, or even view them in context with the rest of the macro you are working on. Just add that to my other feature request, which is have ME identify linked macros by something other than their dynamic name because if the name of the linked macro is changed, you need to hunt down all instances of linked files and update the Macro Run command manually. That is all. :-)
  11. Cory- "plowing through the pixels" was actually my second choice for tackling this. I have a macro very similar to that which uses a repeat loop, with an incremental Var Mod String to adjust the pixel detection coordinates to determine which row in a list is highlighted (at which point the XY coords are stored) in order to remember which row was previously opened. I guess I will be modifying that with an additional repeat loop within it to search a diagonal path across a character space to look for black. I guess my question was more of a "Windows" question than an "ME" question, but thanks for answering it all the same!
  12. That sounds very neat- It brings to mind a potential solution for a similar problem (On topic, too, I believe!) I'm working on. I work with a program that fills out rows of data, but ME can't get control or select the contents of the individual fields in the rows. Is there a way to do a custom screen capture so it only takes an X-Y/X-Y sample of the screen (the field in question) and then compare what the size of a blank field would be to a populated field? I know you can do this in OS-X (command-shift-4, then click and drag) but how about WinXP? Looking in the XP help just shows a full screen or window capture.
  13. Hi, Kevin! Thanks for sharing your brain activity! :-) What I don't understand is all the information I need has been put into %T57%, yet it is being treated differently when being displayed in different ME dialog boxes, which are an itegral part of making this macro work. When I put %T57% in a Text Box Display, all the info is there, but there are quotes around the name that mysteriously appeared, and when I put %T57% in a Multiple Choice Menu, part of the string disappears. (the part in quotes). I'm curious mainly because I want to know if I am up against a known issue or simply that my programming sucks! :-)
  14. Thanks!!! That makes the lookup nearly instant! One last question: The data is in two columns, I want the results of this lookup to display the full row in a multiple choice menu. When I put the resulting Variable %T57% in a dialog box for testing, the data from the entrie row is visible, but when I put the variable into a mutltiple choice dialog box, it only shows the contents of the first row of the result. 1- Original Excel tab-delimited text File looks like this: 555555 (col) firstname,lastname 2- When displaying this result in an ME dialog box I get: 555555 (tab) "firstname,lastname" (that's right, somewhere in this process, quotes get added to the name) 3- When displaying it in the multiple choice dialog box I get: 555555
  15. Ok, I edited the original post to include what I think it is you're asking for... Thanks!
  16. For the life of me, I cannot grok text processing. I capture a reference number from a record in a program, and then try to match it to a name in an Excel file saved as a comma delimited CSV. The Excel file has two columns, one with a match for the aforementioned number and the name associated with it in the next. It has 10800 rows in it, and the file size is 223kb. The crude way I have this set up to work right now is: Variable Set Integer %N60% to 0 Repeat Until %T57% Contains "%T58%" Text File Begin Process: "referring_lookup.txt" Text File End Process Variable Modify Integer: %N60% = %N60% + 1 Repeat End <IVAR2:60:01:0><REP3:08:000007:000001:0057:0:01:%T58%> <BTFBEG:057:N00060:000001:\\nevermindthis\referring_lookup.txt> <BTFEND><NMVAR:01:60:1:0000060:2:0000001> <TBOX4:T:1:CenterCenter000278000200:000:T58=%T58%-T57=%T57%><ENDREP> %T58% is the captured reference number, which is the condition for the repeat loop to end. %T57% is the destination variable for the result from the Text File Begin Process (TFBP) command. %N60% is an incremented integer within the loop that is used as the starting line value within the TFBP. The TFBP is processing one line at a time. I have no doubt I am doing this wrong, it takes forever to process the file line by line, but I can't see how to just load the whole thing into a variable and get the information I need, which is a single row matching the criteria being put into another variable.
  17. Never mind, I'm obviously an idiot.... I accidentally deleted my "Capture Control" line which should have preceded "Variable get control text". D'Oh!
  18. Following some advice on this board, I am using "Variable get control text" as opposed to scripting in a double-click over the text and copying it into clipboard and then saving it into a Variable. When text is present, this method really speeds things up! My problem right now is sometimes the control has no text, in which case, the macro reports an error and aborts. Having an empty control is an attribute I would like the Macro to process as well, but the logic within ME handles "If control" and not "If control text", somewhat limiting my ability to deal with the absence of data. Suggestions, gentlement? :-)
  19. That sounds pretty good, I'll give that a try, thanks Kevin and Floyd!
  20. Is there a way to disable keyboard and mouseclick input while a macro is running? Sometimes it is not obvious to my users that a macro is running and they start to enter text before it is done, resulting in data being put into the wrong fields, etc. There also needs to be some kind of failsafe that re-enables them if the macro fails or is stopped so users aren't stuck with a dumb PC. Thanks! edit- It would be fantastic if there was some way to buffer the input instead! :-)
  21. My hazarded guess is that the screen resolutuion might change in the absence of a detected monitor. That might throw off a macro that expects elements to be in certain positions if they dynamically react to the screen resolution.
  22. Ok- I am totally unable to figure out what I am doing wrong. I tried blopib's example of putting text in clipboard into a Variable and then using the variable in a multiple choice menu and it worked. However, for the life of me, I can't get the process text/ascii file to do the same thing. It is not recognizing the line breaks and anything after the first record simply disappears. I have been trying both process text file and ASCII file. I have tried comma and tab delimited, using a file exported from Excel and a text file created with notepad. Again, just copying the contents of these files into the clipboard and using the first example in this post worked. Processing the file automatically doesn't. Please clue me in! :-) Thanks!
  23. I don't suppose there is any way to have the multiple choice dialog box put a number in a variable instead of a character? This is so I can use the number in the variable as a counter for the repeat function. I guess I can select "Put text into variable" and add a number prefix to the selection, and then delete everything past the first character with a Variable Modify String?
×
×
  • Create New...