Jump to content
Macro Express Forums

Dan H

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by Dan H

  1. I have a simular macro... my solution has been to have a single main macro that check few dozen pixel locations on screen, and variety of If statements that if true run a different specific action macros. My main macro runs once per second, my other macro's have various delays (and even some other run macro commands) to accomondate that particular action. One note: I've found then when a second macro calls a third macro instead of returning to main, some variables tend to get lost or something. My solution has been to output the variables to text files, and load them back in on the next macro in the chain.
  2. Ah.. I should be more clear. If possible, you need to switch the program from full screen to windowed (alt+enter usually works, or might need a switch in program paramaters)... take the screen positions you need in windowed mode, then subtract 11 (if you are running in 1024x768 screen resolution) from the Y coord to make the posistions valid for full screen mode.
  3. I would suggest a different macro for each of the 5 files.. as for proccessing only the last lines: 1. create a counter text file for each of the 5 macros 2. in each macro, add a quick routine of "get variable from text file" increment and save back to text file 3. set proccess from to the variable set by step 2 The first time the macro's run, they will proccess all lines.. then next time it runs, will proccess only lines it hasn't before processed.. etc.
  4. Hmm... can see how to easily do everything you want, except open the attachement part. I have a somewhat simular macro that works with Groupwise email... it first checks 4 pixel locations to see if there are attachments, then if there are it saves those to a specific directory while remembering the files names for use later in macro, at which point it add's those files into a form that the macro is designed to complete for me. Here's a copy of that section of my macro.. maybe you'll get some inspiration from it: Macro Playback Speed: 3 Times Faster than Normal Audio Mute Window Resize: Current Win - (Width: 551, Height: 417) Get Pixel: Window Coords: 115,325 into %N3% Get Pixel: Window Coords: 190,325 into %N4% Get Pixel: Window Coords: 265,325 into %N5% Get Pixel: Window Coords: 340,325 into %N6% If Variable %N3% <> 16777215 Mouse Move Window 115, 325 Mouse Right Button Click Delay 1 Seconds Text Type: s Delay 1 Seconds Clipboard Copy Variable Set String %T11% "c:\macrotemp\" Variable Set String %T12% from Clipboard Variable Modify String: Append %T12% to %T11% Delay 1 Seconds Text Type: %T11% Delay 0.5 Seconds Text Type: <ENTER> Text Type: y Wait for Not Mouse Cursor: Hour Glass Delay 0.5 Seconds Variable Set String %T12% "%T11%" Else End If If Variable %N4% <> 16777215 Mouse Move Window 190, 325 Mouse Right Button Click Delay 1 Seconds Text Type: s Delay 1 Seconds Clipboard Copy Variable Set String %T11% "c:\macrotemp\" Variable Set String %T13% from Clipboard Variable Modify String: Append %T13% to %T11% Delay 1 Seconds Text Type: %T11% Delay 0.5 Seconds Text Type: <ENTER> Text Type: y Wait for Not Mouse Cursor: Hour Glass Delay 0.5 Seconds Variable Set String %T13% "%T11%" Else End If If Variable %N5% <> 16777215 Mouse Move Window 265, 325 Mouse Right Button Click Delay 1 Seconds Text Type: s Delay 1 Seconds Clipboard Copy Variable Set String %T11% "c:\macrotemp\" Variable Set String %T14% from Clipboard Variable Modify String: Append %T14% to %T11% Delay 1 Seconds Text Type: %T11% Delay 0.5 Seconds Text Type: <ENTER> Text Type: y Wait for Not Mouse Cursor: Hour Glass Delay 0.5 Seconds Variable Set String %T14% "%T11%" Else End If If Variable %N6% <> 16777215 Mouse Move Window 340, 325 Mouse Right Button Click Delay 1 Seconds Text Type: s Delay 1 Seconds Clipboard Copy Variable Set String %T11% "c:\macrotemp\" Variable Set String %T15% from Clipboard Variable Modify String: Append %T15% to %T11% Delay 1 Seconds Text Type: %T11% Delay 0.5 Seconds Text Type: <ENTER> Text Type: y Wait for Not Mouse Cursor: Hour Glass Delay 0.5 Seconds Variable Set String %T15% "%T11%" Else End If
  5. If you can post a sample of the file, would be easier to say.. but at a guess the file would contain more then just the single character? If it's just 1 line of text in the file, I would use the Variable Set from File.. if more then 1 line, I would use the File Begin Proccess command. In either case, once you have the file text in a variable, you can setup a variety of If Variable statements with differing actions.
  6. I can easily seperate a comma deliminated text file out into it's component variables... ie "test1,test2,test3,test4" into T1, T2, T3, T4 by using the set interger value by posistion of text with value of ",". My current problem is that I need to do the same for "test1 test2 test3 test4" but don't know how to search for value equal to the TAB. Does anybody know how I can do this? Or know if a app that will convert a tab deliminated file to common diliminated quickly?
  7. If you need to do it not in a repeat loop, you can do what I've done for several of my macro's... create a text file with your variable as below simple sample: Variable Set String %T1% from File: "test.txt" Variable Modify String: Convert %T1% to integer %N1% Variable Modify Integer: Inc (%N1%) Variable Modify Integer: Convert %N1% to text string %T1% Delete File or Files: "test.txt" Variable Modify String: Save %T1% to Text File gives a counter outside of macro express...
  8. I've had simular issues.. my work around has been to get the coords in windowed mode, then subtract 11 from the Y coord. Additionally, some programs seem to disable getting coords (screen or window) even in windowed mode the coords stop updating when mouse is overtop of that programs window. To work around this, I move the Mouse locator to the postion on the screen I want and guesstimate the location. Hope some of that helps!
×
×
  • Create New...