Jump to content
Macro Express Forums

Amerifax-Bob

Members
  • Posts

    16
  • Joined

  • Last visited

Everything posted by Amerifax-Bob

  1. I am trying to create a hook "between Dragon NaturallySpeaking and Macro Express Pro. I was able to get some direction from the author of "Scripting for Dragon NaturallySpeaking 11". the game in the name of Larry Cantor who had created a hook quite some time ago. By hook I mean the ability to execute a Macro Express macro by use of voice. The following is the code and it's pretty much Greek to me I was hoping to get some help: Triggering Macro Express Scripts with NaturallySpeaking Code samples - Use NaturallySpeaking Professional edition to trigger a Macro Express script nicknamed "test 1" and activated by Ctrl+Alt+T: Hotkey method Sub Main ' Note: ^ = Control, % = Alt, + = Shift SendKeys "^%t" End Main There was also a second method: Shell command method Sub Main ' Note: Use /A switch before Macro Express nickname ShellExecute "[macro_express_folder_path]\meproc.exe /Atest 1" End Main Hopefully someone is for familiar with this type of approach to execute a macro by voice. Bob PS also I would like to thank those that helped me with my macros in the past. Without boring you with a lot of details let's just say this is my first day.
  2. Cory, Once again Thank you for the help. I believe we have your email address so I will shoot you an email personally. I checked out the RegEx like you suggested and it really seems like that just might be the way to go for what we are doing. We are trying to pull the data out of a text file that we have. This text file used to run the navigation for our website. We are completely updating our site so we would like to extract the work we have done in this prior format, into a data file that we can use to create and update our new navigation much easier. Due to our work we always have some kind of data processsing, parsing, extracting, etc that we are trying to do. We appreciate all the help you do offer. We took a look at the programs that JustGreat Software offers. What would you recommend we look at first? They have RegexMagic, RegexBuddy and PowerGREP. Obviously they are different levels but we wanted your opinion. Thanks once again for all your help. Heather
  3. Is it possible to split a string using a Wildcard? Could I say - Split String "%BLD[1]%" on "§ * ," into %BLD%, starting at 2 Just curious.
  4. I'm trying to take this down to the lowest common denominator, so I can better understand what I'm trying to accomplish. Here is the line I am trying to search within. "TEXT:Alesci Homes Inc" "3" "1" "" "Alesci Homes Inc § § § 3044 S 92nd St § West I'm thinking I can put this line into a variable and do the following: Clear Variables Clipboard Empty Window Activate: BLD-Model(WRK)Clean.txt - Boxer Text Editor // Builder (Variable as one line) Text Type (Simulate Keystrokes): <HOME><HOME><SHIFT><END> Clipboard Copy Delay: 150 milliseconds Variable Set String %BLD[1]% from the clipboard contents Delay: 385 milliseconds Split String "%BLD[1]%" on "§" into %BLD%, starting at 2 The bold is where it's fuzzy. I'm trying to take the value, 3044 S 92nd St , between the two section symbols, §, and creative a variable from that value. 1. Create variable 2. Search for "§" that have a value between them. 3. Trim spaces in front and back of value. 4. Save to a new variable. Is this the right way to start or is there a better approach? Bob
  5. Alan this is a process that we will need to repeat many times. We are looking to do exactly that, process the data in "variablespace." We have specific occurrences of symbols etc. but varying lengths of text. Our text file uses the "§" (section symbol) in a lot of cases to separate the text. I would like to be able to go to a location based on a § or a combination of § § § and pull the data between and trim the spaces from the front and back. In some cases I will want to find everything between a "," (comma) and a "§" (section symbol) and copy that to its own variable.
  6. Alan, Thanks for the help. I was able to get it to run through. I am still not exactly sure what was causing the problem with getting the text from the clipboard to the variable, but it is working. I am getting occasional problems but I think once I add a few delays all will be fine. Thanks again for the help. Heather
  7. Cory, This is the Macro I am using. Now I am having a different problem. The text is not being saved into the Variable. I have tried every which way. The text is in the buffer or clipboard but is not being carried into the Variable. I don't think I have done anything wrong but... I tested up to Line 7 and its not working that far or at least the copy to variable which throws off the rest. Can you see what I am doing wrong?? Window Activate: work - Boxer Text Editor - * Repeat Until %T[90]% Contains "STOP HERE" Clipboard Empty Text Type (Simulate Keystrokes): <SHIFT><END> Clipboard Copy Delay: 465 milliseconds Variable Set String %T[90]% from the clipboard contents // Test for Value If Variable %T[90]% Contains "BLD Info Update" Macro Run: Builder // Run Macro for BUILDER Else If Variable %T[90]% Contains "SqFt" Macro Run: Model // Run Macro for MODEL Else If Variable %T[90]% Contains "Picture" Macro Run: Picture // Run Macro for PICTURE Else If Variable %T[90]% Contains "Hours-" Macro Run: Hours // Run Macro for HOURS Else If Variable %T[90]% Contains "STOP HERE" End If End If End If End If End If Text Type (Simulate Keystrokes): <ARROW DOWN><HOME> End Repeat
  8. OK. Maybe I wasn't nesting properly. I will give it another try. I can definitely see how it gets complicated fast though. Thanks for your help. I will let you know how it goes. Heather
  9. The text that it contains is unique to the line. I did check out the Switch Case, but I got the understanding it wouldn't work with a "contains" situation but rather an exact equal situation...I could be wrong. (Its been known to happen from time to time...lol) I also need a Macro Return at the bottom of each of the Macros that I am calling right? Also how would be the best way to repeat the Macro? Thanks again Cory!!!
  10. I have a line of text that I am copying to Variable %T[90]%. I have a few different scenarios that I need to check that line of text for in order to run the proper macro. I am processing a text file into variables but I need to determine which line I am on within the text file, in order to run the proper macro against that line. I though and IF state would be best. I am familiar with If Statements but somewhere must be missing something. If my variable contains the text: "BLD Info Update" I want to run Macro - Builder "SqFt" I want to run Macro - Model "Picture" I want to run Macro - Picture "Hours" I want to run Macro - Hours I have tried so many different ways and I am just not getting it right. Can't I say: If contains... run macro a or if contains... run macro b or if contains... run macro c I was running into a problem with my End Ifs. I just can't quite see what I am doing wrong. Any help is always appreciated. Heather
  11. Cory you are always very patient and always very helpful. I really do appreciate the help you do give me. I think I figured this one out a different way. But I will try to explain in a little more detail in the future. Heather
  12. Please ignore this message Bob
  13. Years of Timing Issues Over I him and used macro express Pro over the years. It seems I usually give up when timing issues drive me up a wall and then put it back on the shelf. The editor that I was using to manipulate data was ultra edit. I just switched to Boxer and have ended up with absolutely no timing issues. I have not a clue as for the reason but more than happy to take the results. Bob
  14. Thanks for the quick response! I can have it on the clipboard... At this point I do not. Is one way easier than the other. I mean if I don't have it on the clipboard already, is there a different or more easy way to do it? It doesn't matter, to me, either way...on the clipboard or not; just whichever you think is the best way to go.
  15. I am copying a string of text to a Variable. The length isn't always the same, but it will occur between a ":" (semi-colon) and a "," (comma). What is the best way to select this text to put it into the variable. I do have a limited knowledge of ME. Thanks in advance for any help. Heather
  16. Window Activate: C:\Uty\Software\MacroExpressPro Delay: 450 milliseconds Wait for Window Title: *UltraEdit Mouse Left Click I have tried many different ways to activate the above Window. I tried several other windows all not workable. The above lines are just a few of the ways I try to execute line 1. On Save The macro's scope is set to Window/Program Specific and there are no programs or Windows assigned Bob
  17. I have been using Macro Express for many, many years. I always seem to get stuck in the same place with relatively the same issue and end up walking away. I always seem to have some kind of timing error/issue. Is there a way to slow down the running speed of the Macro so that each step can complete. I have included a portion of the code that is not working for me. Thanks for any help. Bob <DELAY Flags="\x01" Time="1"/> <CLIPBOARD COPY/> <WINDOW ACTIVATE Title="Microsoft OneNote" Exact_Match="FALSE" Wildcards="FALSE" _IGNORE="0x0006" _COMMENT="Go to OneNote Window"/> <DELAY Flags="\x02" Time="350"/> <MOUSE MOVE Option="\x02" X="393" Y="211" _PROMPT="0x000A" _COMMENT="Location of Page Title"/> <DELAY Flags="\x02" Time="350"/> <MOUSE LEFT DOUBLE CLICK/> <CLIPBOARD PASTE _COMMENT="Paste Page Title"/>
  18. I know I have done this before but just cannot seem to remember how nor figure it oiut. I need to write a macro that can return to my last mouse position but that position will not always be the same. I've read the help and search my old macros and cannot seem to find what I need. Any help is always greatly appreciated! Heather
  19. I am looking for an IF Statement that would recognize a KeyPress. I have a Macro that is taking a Value, going to another program and searching for that value. I have the Macro holding at that point for a keypress. If I Press Enter, I would like the Macro to continue one way. If I press a different key (Ctrl+Alt+Keypad2) I would like the Macro to continue a different way. I could not find an IF statement for this. I am still looking but not having much luck. I am not even sure if this is possible. Any help would be greatly appreciated! Thanks, Heather
  20. I am not sure how Macro Express might treat this situation and I was hoping someone could help. I have a program that has Radio Buttons positioned over a table of data. When one of the buttons is clicked it indexes the information below it accordingly. But then the cursor or the row that is active changes. What is active changes but does that change the mouse or cursor position because what is active changed? Bob
  21. Macro continue's before file is saved. Problem is files are created using a counter: File: Bob 001 File: Bob 002 File: Bob 003 There for "Wait for File to Exist" does not seem to be a solution. Hundreds of files are involved. This is MacroExpress Pro 4.2.2.1 code: Window Activate: Robert's Help Mouse Move: 628, 1032 Relative to Screen Mouse Left Click Text Type (Simulate Keystrokes): <CONTROL><SHIFT>r The program I'm using "SnagIt 10" is called by the "<CONTROL><SHIFT>r" Bob
  22. Trying to find a better mouse trap for selecting a Button. Bad joke! 1. I Activate the window first. 2. Second I have to click a location in the window. a. My Window is: "Robert's Help" b. Location of button: is x621 y1030 I was thinking of using "Mouse Click on Control". I don't remember seeing this function in the past. It sounds interesting. My problem is the Variable stuff is over my head. I'm hoping for some help tonight. Bob
  23. I am running a macro that is splitting up the clipboard contents into variables by %Line[]%. When the Macro gets down to the bottom, the lines may or may not exist. I seem to be hitting a problem around %Line[19]%: If Variable %Line[15]% Contains "Web" Text Type (Simulate Keystrokes): <TAB>%Line[15]% Text Type (Simulate Keystrokes): <TAB>%Line[18]% Text Type (Simulate Keystrokes): <TAB>%Line[19]% Text Type (Simulate Keystrokes): <TAB>%Line[20]% Text Type (Simulate Keystrokes): <TAB>%Line[21]% Text Type (Simulate Keystrokes): <TAB>%Line[22]% Text Type (Simulate Keystrokes): <TAB>%Line[23]%<ARROW DOWN><HOME> Delay: 95 milliseconds Else Text Type (Simulate Keystrokes): <TAB> Text Type (Simulate Keystrokes): <TAB>%Line[17]% Text Type (Simulate Keystrokes): <TAB>%Line[18]% Text Type (Simulate Keystrokes): <TAB>%Line[19]% Text Type (Simulate Keystrokes): <TAB>%Line[20]% Text Type (Simulate Keystrokes): <TAB>%Line[21]% Text Type (Simulate Keystrokes): <TAB>%Line[22]% Text Type (Simulate Keystrokes): <TAB>%Line[21]% Text Type (Simulate Keystrokes): <TAB>%Line[22]% Text Type (Simulate Keystrokes): <TAB>%Line[23]%<ARROW DOWN><HOME> Delay: 95 milliseconds End If For the most part there are not many variables after %Line[18]%. In some cases though, there are... I am getting a problem where if a record above has values for %Line[18]%-%Line[20]%, it is duplicating those values (18-20) on the next record if the current record DOES NOT have it's own values for %Line[18]%-%Line[20]%. I thought if there was no value for the variable, it would be blank, but it is retains the values from the prior record. I am not sure what I can do to clear out the Line Variable if there is not value for that Line, because from %Line[17]% on there is not always a value in the variables. Thanks for any help. Heather
×
×
  • Create New...