Jump to content
Macro Express Forums

rhadin

Members
  • Posts

    7
  • Joined

  • Last visited

rhadin's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thanks, Joe, for the information on PGM. As you can probably tell, I bought the PGM library and the source code (bought them in 12/04), but have yet to use them. I also bought your book when it came out. That I have used (or tried to, depending on my success ). The ini file is working great for just the reason you mention (plus I'm uncomfortable playing with the Registry) -- especially as a true novice. It is especially easy with the ME macro to reset the variable to 1. Now if only the rest of my life were so easy to conquer . Thanks for the help. Rich
  2. Kevin, I meant to write yesterday but got tied up in work and simply never got to it. Thanks again for the detailed explanation. By using the information in both of your responses, I was able to write my macro with the incrementing number portion included. It took a couple of attempts and about 30 minutes of time to get it figured out, but without your information I had been unable to do it even after several hours of trying. What I did do, however, was add a companion macro that I use to reset the counter in the .ini file to 1. Sometimes I work on a document for several days, necessitating the macro to continue incrementing from the number I last used the day before. By having a companion macro to reset the number to 1, I can continue incrementing until I need to start over and I can accomplish the start over easily by running the companion macro. I appreciate the help. Another question, if I might: Quite sometime ago (a couple of years, perhaps; it's version 3.4.01) I purchased the PGM add-on functions for ME. I have never used the functions. Should I consider redoing the macros using the PGM functions? Rich
  3. Thanks, Kevin. I will give it a try. I appreciate the help. Rich
  4. Thanks, Kevin. I'm not quite sure what to do with the samples you sent. What I mean is, how to incorporate the code into my macro. Part of the problem is that I use Direct Editor and what you provided doesn't fit the schema of DE. I've tried to use Script Editor but have found myself confused by it. I find it easier to follow entries in DE. In looking at the choices, I suspect that I would use the .ini file method because it would be easier to manually reset the number back to 1. If I save to an .ini file, I'm not clear how I would do it. Here is the macro I have: ________________________ [insert number here first]<ACTIVATE2:queries.doc><TEXTTYPE:<ALT>iks<ALT>g<ENTER>><TVAR2:01:01:A><MENU2:T:01:CenterCenter:Author QueriesSelect a query to enterBlank Query Age-related terms Confirm x-ref Change per AJR style . . . [additional options] Cancel><IFVAR2:1:01:1:TA><TEXTTYPE:AQ:<SPACE>><PAUSE2:000300,000400Enter query and click resume><TEXTTYPE:<ENTER><ARROW DOWN><HOME><ALT>iks<ALT>a><ACTIVATE2:EDT.doc><ENDIF>[macro continues similarly] ____________________ How do I fit the .ini language in it? The [insert number here first] is the placeholder for where the number has to be inserted in the EDT document (or doc 1 in my prior e-mail). That number has to be repeated between the Q and the : at the beginning of each variable (e.g. if I choose the first option, Variable A, the number replaces the text [number] in the following: <TEXTTYPE:AQ[number]:<SPACE>). The macro will run once and the number needs to be incremented by 1. I might not run the macro again until tomorrow or after a reboot, at which time, unless I have reset it to 1 in the .ini file beforehand, it needs to insert the incremental number. I'm also assuming that I can name the .ini file, for example, ARRS.ini and place it in the same directory as my MacroExpress keyboards. Is this correct or does it have to have a particular name and location? I'm sorry to be asking what are probably simple things, but I can't quite grasp how to do it. Rich
  5. I am struggling with a macro in 3.5e and hope someone can help me. Here is what I want the macro to do in MS Word 2003: 1. insert a number (beginning at 1) at the cursor location in doc 1 2. go to doc 2 and do the following 3. search for the bookmark named stop 4. at the bookmark type open a menu of choices of text to type at that location 5. when the choice is made, type AQ 6. immediately following the Q insert the same number as in step 1 above 7. type the balance of the text 8. add a paragraph return (so that the cursor is at the beginning of the next line) and insert at this location the bookmark called stop 9. go to doc 1 where the number inserted in step 1 is found 10. add 1 to that number and save it to the macro so that the next time the macro is run the number inserted in steps 1 and 6 is 1 more than it was the last time the macro was run. However, although the numbering will increase in doc 1 until until I am done working in doc 1, when I open doc 3 and its companion doc 4, the numbering need to start at 1 again. Consequently, I need an easy way to reset the starting number to 1. Although I have used the terms doc 1, doc 2, doc 3, and doc 4, the actual documents are paired and will always have the following in their names so that the <Activate:> command can be used and set once. Docs 1 and 3 would be the main text documents and always have .EDT.doc in the name. The companion docs, 2 and 4, are for questions about content in the other docs and always have _queries.doc in the name. I have not had much trouble with most of the coding, but I can't figure out how to write the code to accomplish 1, 6, and 10. What happens is that the number remains the same, that is, it remains the starting number (which is 1). It seems to me that the best way to store the number is in a separate "macro" that is called, but I'm open to any and all suggestions. Thanks. Rich Adin rhadin@editorsource.com
  6. Thanks, Kevin. I thought timing might be the problem and tried inserting delays, but not as you suggest, which didn't work. I suspect that the Text Type Delay (which I didn't use) might work. I haven't used the Get Control or Capture Control commands -- I probably need to check them out. I wish I could say that my macro writing is sophisticated, but it isn't. I'm only beginning to work my way through anything but replicating keyboard commands in sequence. Rich
  7. I have been writing macros using ME for a group of us who work on our own computers. Each has his/her own license to use ME. The macros are designed to work with Microsoft Word 2003. To make sure there are no conflicts with keyboard shortcuts, we all use the same Normal.dot -- I send them a copy of my Normal.dot. What I have discovered is that sometimes the macros work and sometimes they don't on other users' computers, even though they work perfectly on my computer. There are hardware differences between the computers, such as video card, make and size of hard drives, operating system (I'm on Win2000, some of them are on WinXP), as well as software differences -- but not as regards MS Word. I have tried to figure out the cause and to resolve the issues of not working or sometimes working, but have been unable to identify a cause. The one thing I have noticed is that we rarely had these problems when we were using ME 2.1 but have consistently had these problems since we migrated to ME 3.5e. Has anyone else experienced a similar problem? Does anyone have any suggestions on how to insure that macros written in ME will work on other computers correctly? Thanks for any help. Rich Adin www.freelance-editorial-services.com
×
×
  • Create New...