Jump to content
Macro Express Forums

cyberchief

Members
  • Posts

    283
  • Joined

  • Last visited

Everything posted by cyberchief

  1. Why not just Copy 7 characters... and do a Trim to get rid of the space? Text Type: <SHIFTD><ARROW RIGHT><ARROW RIGHT><ARROW RIGHT><ARROW RIGHT><ARROW RIGHT><ARROW RIGHT>... Clipboard Copy Variable Set String %T2% from Clipboard Variable Modify String: Trim %T2%
  2. Try this... I think this might work for you. Rather than keypresses... uses a mulitple choice box in a repeat loop... // Repeat Until "End of Music" Choice is selected Repeat Until %T1% <> %T1% Multiple Choice Menu: Instruments Switch (T1) Case: A Variable Modify String: Append "Guitar, " to %T2% End Case Case: B Variable Modify String: Append "Drums, " to %T2% End Case Case: C Variable Modify String: Append "Saxophone, " to %T2% End Case Case: D Break End Case End Switch Repeat End // Launch/Activate specifc text program here // Type out %T2% (list of instruments) to text file. Text Type: %T2% Macro Stop <REM2:Repeat Until "End of Music" Choice is selected><REP3:08:000002:000001:0001:1:01:T1><MENU2:2:T:01:CenterCenter:InstrumentsGuitar Drums Saxophone End of Music><SWITCH:T1><CASE:A><TMVAR2:07:02:00:000:000:Guitar, ><ENDCASE><CASE:B><TMVAR2:07:02:00:000:000:Drums, ><ENDCASE><CASE:C><TMVAR2:07:02:00:000:000:Saxophone, ><ENDCASE><CASE:D><BREAK><ENDCASE><ENDSWITCH><ENDREP><REM2:Launch/Activate specifc text program here><REM2:><REM2:Type out %T2% (list of instruments) to text file.><TEXTTYPE:%T2%><MSTOP>
  3. // Set T10 to "comma space" Variable Set String %T10% ", " // Copy your first text and set to T1 Clipboard Copy Variable Set String %T1% from Clipboard // Append T10 to T1 to be "Text, " Variable Modify String: Append %T10% to %T1% // Copy next set of text Clipboard Copy Variable Set String %T2% from Clipboard // Append new text to T1 (will now appear as "Text, NewText" Variable Modify String: Append %T2% to %T1% Variable Modify String: Append %T10% to %T1% // Repeat Append T10 to T1, Clipboard copy, save to T2, Append to T1 as many times as needed.
  4. Joe, Sure... take the easy way out. I know... but sometimes I forget... I only do the hotkey's when I am testing them... otherwise, all (but a few utility macros I use) are set up with no hotkey... and when I am ready to use them, I set the hotkey (usually to Ctrl-a).
  5. Just a thought... rather than using the "Paste" in the text type... use "Type Text Normally" and use the "Wait for Text Playback". You didn't mention whether or not there was a reason you were "Pasting".
  6. That is exactly why I want to block it... to preven ME from using it... and keep it as a windows short-cut key for copying.
  7. Man... You guys must not have enough to do... 2 people from Insight both replying... You guys are too good! Thanks much!!!
  8. Under Email preferences... there is an option to keep a log. Is their a way to change the root directory of where this log is stored? I would rather keep this log on a server that is able to be accessed by other machines with ME. Also, is there some way to extract the log information into a readable text file or excel file? If you open this file up directly, it is not in a very freindly format.
  9. Come on Kevin... you didn't waste my time. If it wasn't for you... I would be behind on my work by about 30 years!!! If anything... I owe you at LEAST 5 minutes!!!
  10. I got both ways to work. Thanks guys! Oh... Kevin... are you sure it wasn't supposed to be <Ctrl>C? instead of <Alt>C? AltC didn't do anything for me... Tried doing that for about 5 mins. Thanks guys!!!
  11. Is there some way to get the current URL of an open web page and send that to a variable? Looking through the macro commands... I can't find one that fits.
  12. Actually, my intention is to allow the Ctrl-C to send highlighted text to the Clipboard... but thinking about that now... I could just set up a macro to do just that. Hmmm....
  13. On Tweake-ME, there is an option to remove some keys from hot-key functionality. I would like to know if this can be used (and if so, in what format), or if there is another way, to block certain hotkeys such as Ctrl-C, Ctrl-X, Ctrl-V, etc.
  14. When the Macro has ended... just add the Send Email command at the end of your code... just outside of the loop (after "Repeat End"). As far as when the macro stops or aborts... I am not sure... but I can tell you how I do it. My Macros work between certain screens. Each time the macro changes to a new screen... I use a repeat loop looking for the window title... if not seeing it, delay 1 sec, repeat again. Once it gets to 30 seconds, it sends a "Net Send" command to me through the network (screen pop-up message), and then pauses with a "wait for keypress" command. In the below code... the Macro Run: MACRO ERROR is a separate macro that does the net-send function. I use that set of commands quite often in my macro, so I set it up on it's own and just call it in my scripts. Repeat Start (Repeat 30 times) Variable Set String %T70% from Window Title If Variable %T70% contains "Partial" Break Else Delay 1 Seconds End If Repeat End If Variable %T70% does not contain "Partial" Macro Run: MACRO ERROR Text Box Display: Error With Macro Wait for Key Press: ESC End If You can replace my "Macro Run" command with the Send Email command.
  15. In the repeat loops I use... I leave an "out" at the beginning of the loop... Repeat Until %T1% <> %T1% Clipboard Copy Variable Set String %T1% from Clipboard If Variable %T1% <= "1" Macro Stop End If //continue coding here Repeat End
  16. Well, I can tell you right away that you have a missing "End If"... in between where you set %N1% to 1... and your "If %N1% = 1%. You have "else" between them... Should be: Delay 2 Seconds Text Type: <ENTER> // Selects Last Episode Wait For Window Title: "Episode" Delay 1 Seconds Text Type: <ENTER> Delay 5 Seconds Wait Window Lose Focus: "Processing" Delay 1 Seconds If Window Title "ERROR" is on top Variable Set Integer %N1% to 0 Text Type: <ENTER> Delay 2 Seconds Else Variable Set Integer %N1% to 1 End If End If // If client has no information If Variable %N1% = 1 Macro Run: Printing Macro - Choose All End If Or better yet (and simpler) Delay 2 Seconds Text Type: <ENTER> // Selects Last Episode Wait For Window Title: "Episode" Delay 1 Seconds Text Type: <ENTER> Delay 5 Seconds Wait Window Lose Focus: "Processing" Delay 1 Seconds If Window Title "ERROR" is on top Text Type: <ENTER> Delay 2 Seconds Else Macro Run: Printing Macro - Choose All End If
  17. Never mind... it worked. Uhg. Didn't give it long enough.
  18. Well, I don't have any experience with using the file functions in ME. What I am trying to do is pretty simple. I have over 200 Excel documents. All are named "QMacro Express xxxx" where "xxxx" is the project number... from 0030 to 0260" I basically need to replace the "QMacro Express" portion with "QME". So.. it would read "QME 0030". Simple enough... but how to do? Here is what I have: <REP3:07:000002:000001:0001:0:01:C:\Documents and Settings\dbarber\Desktop\New Folder><TMVAR2:11:01:00:001:068:><TMVAR2:10:01:01:001:004:><DOFILE:06:NN:C:\Documents and Settings\dbarber\Desktop\New Folder\QMacro Express %T1%.xls>C:\Documents and Settings\dbarber\Desktop\New Folder\QME %T1%.xls><ENDREP> Repeat with Folder Variable Modify String: Delete Part of %T1% Variable Modify String: Copy Part of %T1% to %T1% Rename File or Files: "QMacro Express %T1%.xls" Repeat End
  19. Ignore Case is what I was talking about... Seeing if your IF statement contained text of the same case (capital or small letters) of the same text you were capturing.
  20. Your First IF statement looks correct to me. For your archive question... I would check to see if text case is an issue. In your command "If T8 does not contain: Tryg OPC"... I would check the "Ignore Case". Timing should not be an issue when dealing with "IF" statements. If variable does not contain that text... it should not even go on with that statement.
  21. In David, we Trust! Unlike Dash in another post recently... I find hte open source of PGM to be an invaluable tool! This is the first instance where I have had to actually copy a small portion of code... But I will say that being able to read the PGM macros has helped me tremendously! If nothing else... I can see how others write macros and it gives me great ideas for my own. So, I hereby declare... I, david, being of sound mind and of no affiliation with PGM Macros, announce that PGM Libraries are the greatest thing next to sliced bread and budwieser.
  22. Thanks All. I did get it figured out. I used some ideas from PGM Library (ok... copied a small portion of the code)... and some of my own ingenuity... Works like a charm. I would post it here... but feel that I would betray PGM to do so...
  23. Ok... kind of confusing... I have 2 Text Variables that are as such: T1 = 2/15/06 T2 = 3/23/06 What I want to do is... subtract T1 from T2 to get the amount of days between the two dates. Since these are text string variables... I cannot do math functions. I know the PGM functions can probably do this... but I need to try and find a way to do this without PGM for now. Any ideas?
  24. Thanks guys!!! That's a ton of help!
  25. Is there a way to overwrite ME preferences to other machines running ME? I have set email preferences under options... and would like a quick, easy way to write these preferences to the other machines running ME.
×
×
  • Create New...