Jump to content
Macro Express Forums

stan

Members
  • Posts

    278
  • Joined

  • Last visited

Everything posted by stan

  1. Hi, You can use the Text Type command to press Alt + D. Alt + D is the IE shortcut to place the cursor in the URL field. It also highlights the URL. You would still need to copy it to the clipboard. If your current macro only works about half the time, most likely it is a timing issue. Make sure you allow adequate time for windows to open, etc. before doing keystrokes.
  2. Here's what I would do. Open the web page first. Each time through the loop, activate the IE window. If you never leave the IE window during the entire process, then leave out the Activate Window command. Use the Text Type command to press Ctrl f to open the Find window. Web Site: http://www.macros.com [internet Explorer - Wait to load] Text File Begin Process: "Sample.TXT" Activate Window: "IE Web Page" Text Type: <CONTROL>f - Opens the Find window in IE or the Find box in Firefox Text Type: %T1% - This will type the text from the text file into the Search field. Rest of steps after entering the search Text File End Process
  3. You would use the Text File Begin Process command. It works similar to a repeat loop. What it does is reads the first line of the file and saves the contents to a variable such as T1. Your macro would be structured something like this. After it searches for the first item in the text file, it repeats the process for the second line of the file and so on until finished. Text File Begin Process: "Sample.TXT" Command to open the web page. Open the Search field. Text Type: %T1% - This will type the text from the text file into the Search field. Rest of steps after entering the search Text File End Process
  4. Pat, Sorry, I guess I misread your original question. I don't know of an easy way to find a moving icon on a menu bar. The only thing I can think is to use the Get Pixel Color command and have the macro check a specific pixel under each icon. After getting the color of the first pixel, use the If Variable command to see if it is the correct icon. If so, move the mouse to the coordinates and click, or do what you need. If not, move to the coordinates under the next icon and repeat the process until finding the correct icon. This will work if the moving icons are all the same size. If some are wider than others and they switch positions, then the above method will not work. Stan
  5. Pat, The Get Pixel Color command looks at specific coordinates on the screen and finds the color value for that specific pixel. You would then use the If Variable command to do a comparison to see if you have a match or not. If you are trying to click on an icon in the System tray, the icons located immediately to the left of the clock, you can use the Mouse Move to System Tray command. This moves the mouse over the icon that you select. It doesn't matter if the icon has changed positions. Then issue a Left Mouse Click or Right Mouse Click. Stan
  6. This requires quite a bit of string manipulation, but it can be done. Here is how I would approach this task. I have inserted the first part of the macro and description that should give you an idea. 1. Variable Set String %T1% - save the filename to a variable such as T1 2. Variable Set Integer %N1% from Position of Text in Variable %T1% - Use this command to find the position of the first _ character. 3. Variable Modify String: Copy Part of %T1% to %T2% - Copy part of the string to T2. The number of characters to copy is N1. This saves the string of LastName_ to T2. 4. Variable Modify String: Delete Part of %T2% - Delete the last character so that T2 is LastName. 5. Variable Modify String: Delete Part of %T1% - Delete the LastName_ string from the original T1 string of LastName_FirstName_Account-Number Discription Text_MMDDYY.pdf. Now T1 = FirstName_Account-Number Discription Text_MMDDYY.pdf and T2 = LastName. Repeat the process to save FirstName to a variable such as T3. Repeat again to extract the account number. Hopefully the account number is always the same number of characters, or there may not be a simple way to split the account number from the Description. You'll need to do string manipulation with the date as well. Save the 6 date characters to a variable. Then extract each set of two and save to individual variables. Then use the Text Type command to string your new file name together %T3%%T2%,etc.pdf. Stan Jones
  7. Hi, The way the shortkeys works is that the key or keys are actually typed into the application and backspaces erase the keys. Then the text or macro commands are played back. So when you type the "`" shortkey into your application, this key may do something in that app. The keystroke will be entered into the app before it is erased with a backspace. In this type of situation a hot key would be a better solution. The F1 key can also be tricky. Many applications have this key reserved to open a help file topic. This is a reserved key in Windows and we cannot reliably override the F1 key. This means that the help topic may open and then a macro plays back, or the help topic may open and the macro will not play back at all.
×
×
  • Create New...