Jump to content
Macro Express Forums

Samrae

Members
  • Content Count

    407
  • Joined

  • Last visited

  • Days Won

    20

Everything posted by Samrae

  1. That depends on what the upload window looks like and how it works. Ask yourself, what should I type in the upload window to select more than one file? Once you answer that you can create a macro to perform those actions.
  2. PotterHarry: Your macro looks like it was written in Macro Express 3. Is that the case? Are you aware that this is the Macro Express Pro forum and there is a separate forum for Macro Express 3? You will get better help if you post in the correct forum. I echo Cory's comment. It seems dangerous to write to HKEY_CLASSES_ROOT. That area should be reserved for Windows. If you want the values to be accessible to only one user, write to the HKEY_CURRENT_USER area of the registry. Perhaps here: HKCU\Software\Macro Express Variables\ If you want the values to be accessible to every user of
  3. Try something like this: You may or may not want to round the decimal value before converting it to an integer. If you do not care about rounding it you can leave out the "Variable Modify Decimal: Round" command. When trying this out I discovered a bug. When variable names, that do not already exist, are entered into the "Value 1" and "Value 2" fields of the "Variable Modify Decimal: Multiply" command Macro Express Pro only offers to create them as Integer or Large Integer variable types. It should also offer to create them as Decimal variables. To get around this you can either use
  4. If you are using a 64-bit version of Windows you will need to use "C:\Program Files (x86)\Macro Express Pro" instead of "C:\Program Files\Macro Express Pro". Macro Express Pro can have multiple macro files loaded at the same time. The /A command line parameter can be used to specify the macro file along with the macro to run. This is what worked for me. Create a batch (runmacro.bat) file containing this: You will need to adjust the path to your macro file (c:\Macros\Test4.mex above). You may need to adjust the path to where Macro Express Pro is installed. As Paul mentione
  5. Can you highlight the web page and then copy it to the clipboard? Another approach is to save the web page to a file and then parse through the html. The later is a bit involved, however.
  6. Yes, Windows 10 has assigned many Win+xx hotkeys and Windows does not let them be reassigned by macro or keyboard shortcut programs. I could not find any description of Win+Z but it is not available for a macro activation. There are two descriptions for Win+G "Opens the Windows 10 Game Bar to take game screenshots and record gaming videos of Windows 10 games" "Cycle through gadgets."
  7. If your macro can determine "which of those to call" at "run time" then the technique I suggested should work. If Variable %Data% Equals "Something1" Variable Set String %MacroToRun% to "Macro001" End If If Variable %Data% Equals "Something2" Variable Set String %MacroToRun% to "Macro002" Else If Variable %Data% Equals "Something3" Variable Set String %MacroToRun% to "Macro101" End If End If Macro Run: %MacroToRun% However, rberg's suggestions about how to save variable data will also work. I would add that you can use .INI files as well. Depending on what type of informati
  8. If I understand correctly, your macro could calculate the name of the macro to run, put it in a variable and then do a Macro Run using that variable. This works for me: Variable Set String %MacroToRun% to "Test OSVersion Windows 10" Macro Run: %MacroToRun%
  9. But my experience has been that when they are not visible pressing and releasing the Alt key makes them visible.
  10. Did you press and release the Alt key? Windows hides the underlines until you press the Alt key.
  11. On a similar one-time task last week I used a repeat loop with needed delays. However, to avoid having to spend a lot of time adjusting and optimizing the delays I made them extra large and went to lunch while it ran. In this case there were over 500 items to process and the delays were 3-4 times longer than necessary but, since it was running without any supervision, reliability was more important than speed.
  12. You are correct, Macro Express Pro will not run on Windows RT. It should work on other Windows tablets that are designed to run regular Windows applications. If I understand correctly, the Surface 2 runs Windows RT while the Surface 2 RT Pro runs regular Windows. However, both Surface 3 and Surface 3 Pro run regular Windows. Here are the system requirements listed for Macro Express Pro: Pentium or equivalent or greater Windows 8, 7, Vista, XP or 2000 Windows Server 2012, 2008, 2003 or 2000 (64 bit and 32 bit versions) 56 MB free hard disk space As long as the table meets these specificat
  13. Here are some things you could try. I have not tested any of these. 1. At the top of your macro add a command to write something somewhere, in the registry or in a file, that indicates the macro has started. At the end of the macro add a command to remove it. Have a second macro that runs on a schedule. Have it look for the indicator written by the first macro. If it is there then the macro will know that it started but did not finish. You can then have the second macro rerun the first. 2. Similar to #1, use the "Log Data to File" or "Log Errors to File" command to indicate when th
  14. Macro Express 3 does not support the Split String command or array variables. The Direct Editor text for macros is different for Macro Express 3 and Macro Express Pro. If you are not running Macro Express Pro you will not be able to use this macro. Here is what Cory's sample looks like in the Macro Express Pro Script Editor: Variable Set String %Sample% to ""TEXT:Alesci Homes Inc" "3" "1" "" "Alesci Homes Inc § § § 3044 S 92nd St § West" Split String "%Sample%" on "§" into %Result%, starting at 1 Variable Set String %Output% to "%Result[4]%" Variable Modify String %Output%: Trim Text Box
  15. When I press Ctrl+2 in that dialog it recognizes it as Ctrl+2, not Ctrl+c.
  16. I'm pretty sure the filename for a shortcut is Notepad.lnk not Notepad.exe.lnk.
  17. There is an article with step-by-step directions on how to launch Macro Express Pro as administrator here. The topic was mentioned in these newsletters: Tip: Run as Administrator (Macro Express News - November 12, 2012) Tip: Run as Administrator Redux (Macro Express News - December 13, 2012) When running Macro Express Pro as an administrator, programs that Macro Express Pro launches may also be launched as administrator. This newsletter article describes a work around: Tip: Run a program as a non-administrator when Macro Express is running as administrator (Macro Express News - December 9, 2
  18. pepanee, are you aware of the HotKey that can abort your macros? By default this is Scroll Lock + Pause. You can change it by clicking Options, Preferences, Playback and then the Miscellaneous tab. This will abort all running macros. I do not know whether or not you can put the abort macros hotkey in a macro. I would think that if you did it would abort the new macro that is running also. I don't have time right now to test that. The suggestions from Cory and terrypin are similar. You can have your second macro place something on the computer somewhere that the first macro looks for an
  19. Only PotterHarry knows for sure what he did. I only wanted to add the explanation about his first example to help PotterHarry and to aid anyone else who reads this topic. I see that the second result he posted does contain TAB (09 hex) characters.
  20. When cells are copied from Excel CR and LF characters are added to the content of each cell. Let's examine your example: 00 32 30 0d 0a 33 30 30 0d 0a 31 35 30 30 0d 0a 39 35 0d 0a 31 30 30 30 0d 0a I do not know where 00 (character NUL) comes from so I won't try to explain it here. These are hexadecimal numbers. 32 is the hexadecimal value for the digit '3' 30 is the hex value for the digit '0'. 0d = CR and 0a = LF. So your sample data is: NUL 3 0 CR LF 3 0 0 CR LF 1 5 0 0 CR LF 9 5 CR LF 1 0 0 0 CR LF When viewed it might look like this: 30 300 1500 95 1000 Cory says he e
  21. Terry, when I saw your post the other day I thought of using Window Controls and decided to try it. It did not work for me.
  22. Could you use the DateTime variables? If you want the time 30 minutes in the future from the current time you can do this: Date/Time: Set %AdjustedTime% to an adjusted date/time // Set time 30 minutes from now <DATE/TIME Flags="\xB2" Date="7/3/2014 8:21:49 AM" Day_Offset="0" Month_Offset="0" Year_Offset="0" Hour_Offset="0" Minute_Offset="30" Second_Offset="0" Left="Center" Top="Center" Monitor="0" Variable="%AdjustedTime%" IsDateVar="TRUE" _COMMENT="Set time 30 minutes from now"/> If you have the date/time in a variable and it is not the current date/time you could try this: D
  23. From the Macro Express Pro help topic "Macro Activation": VBA Example HWND hwnd = FindWindow("TMainWin", "Macro Express Player"); if( IsWindow(hwnd) ) { for(int x = 0; x < strlen(s); x ++) PostMessage(hwnd, WM_USER+20, s[i], 0); PostMessage(hwnd, WM_USER+20, 0, 0); } else MessageBox(GetForegroundWindow(), "Macro Express is not running", "Error", 0); Private Declare Function FindWindow _ Lib "User32" Alias "FindWindowA" ( _ ByVal lpClassName As String, _ ByVal lpWindowName As String) As Long Private Declare Function PostMessage _ Lib "User32" Alias "Porterag
  24. I am sure that is intentional. What if you have a series of Splits or if you have a variable amount of data? You wouldn't want an entry in, say, T[15] to be left over from a previous split. If the split command did not clear the other elements in the array it would require you to do a Clear Variables command prior to any Split command. That would make your macro even more complicated. I think it is a good idea to have separate variables for separate purposes. The named variables feature of Macro Express Pro makes this possible. I would suggest that you define an array variable %TimeCode%
×
×
  • Create New...