Jump to content
Macro Express Forums


  • Posts

  • Joined

  • Last visited

  • Days Won


Posts posted by Cory

  1. I don't know as I use .NET, but I am guessing you can. You will need to create some objects and populate them. In .NET I have a WebBrowser object which I can navigate to an address. When it downloads the text of the HTML, it renders it into the DOM object. All elements become objects within the DOM object. WebBrowser Document. Then in there one can iterate though the element object or search for elements by ID. I'm guessing an equivalent could be found in JavaScript and you could command that from MEP. I'm sorry I don't know specifically and I'm not answering your question. I just thought I'd share how it works with other languages and that most languages have equivalent objects. 


    • Like 1
  2. Somehting like that is not simple and the interface is not simple. It would go in a direction of a proper programming language which is not the spirit of MEP. 

    I moved to .NET becasue MEP is not the right tool for large batch automation of web pages. Mostly I don't even use a web browser but instead I send and receive HTTP requests/responses directly to the web server and process the data. It's fast and efficient and doesn't have the problem of trying to control another app.

    Also sometimes I'll create a WinForm program with a WebBrowser control. As such, all the elements are as you describe and can programmatically read from, written to, and controlled. It works slick as the DOM is an object with methods and properties and there are nice features like being able to find an element by an ID or is position in somehting like a Div or table. 

    I believe if you want to start interacting with a DOM, you need to get into a proper programming language. I don't think a 'meant to be simple and easy' app can do that without making itself just as complicated as a programming language. And since they already exist, no need to reinvent the wheel.

    BTW I'm available for free consultations. 

  3. I do the same thing acantor does. It's sound advice.

    Don't forget to include reasonable delay in the loop also. For things like this I find 100 ms, 10 times a second, adequate.

    If a macro gets into an infinite or long running loop, don't forget you have a hotkey to abort macros. You can set it in preferences under the miscellaneous playback section. By default it's Win + End.

  4. I've tried explaining this. Macros are entities contained in an MEX file. You need that MEX file to be loaded. File > Open. Then they will appear on the left.

    Bear in mind you might have multiple files open at once so make sure when you create anew macro you are choosing the correct file to contain it.

    Just like Word, Excel, or whatever, you shoudl be mindful of which MEX files contain your macro and where they are. It's been a long time but I believe the default was a folder created by thin installed in your My Documents named "Insight Software\Macro Express 6". It's best you keep your macros in one place along with all your supporting files. 

  5. Tools > Export Program Configuration...

    You can also export your settings. But I suggest that if you only have a few customizations, to manually set them. 

    In my experience I sometimes make changes, forget to change them back, upgrades, or whatever. A new install with the basic configuration is a clean slate. 

  6. I don't have time to test at the moment nut there's mention of GMT here and a one hour difference. Please remember that GMT and UTC have no daylight saving time. Someone in the UK might be picking GMT instead of BT (British Time), which this time of year will be BST (British Summer Time). BST is UTC/GMT+1.

    My information might not be relevant, sorry i don't have more time ton consider it carefully. 

  7. Before rberg's suggestions I suggest you go into MEP's settings, disable the option of automatic startup, save settings, then enable it again. If it's missing, then it shoudl be added here again. 

    This is assuming you're saying MEP is not starting up automatically. If, as rberg asked, it will not launch manually, then you probably should repair yoru installation. But if doesn't function at all, then the startup issue is unrelated. 

    I also recommend doing a malware scan. Also don't run any of those cleanup/optimize utilities as they often disable needed things. 

  8. I don't have many ideas for you or any experience with this program. Some random thoughts. 

    Make sure your hotkeys are not reserved in the program in any mode. 

    Make sure your window is focused (active). 

    Use the debugger. I would specifically look at whether the macro activated. You can tell the by the last run time in Macro Explorer. Just becasue nothing appears to happen doesn't mean the macro didn't activate. 

    Try in safe mode. Might be some other utility messing with you. 

  9. You can use External Script to get the hex string. 


    <GET PIXEL COLOR Option="\x01" Rel_To_Screen="TRUE" X="500" Y="500" Destination="%Color%"/>
    <EXTERNAL SCRIPT Language="VBScript" Dest="%Test%" Script="Wscript.Echo Hex(%color%)" Encoding="0"/>
    <MESSAGEBOX Caption="Hex Value" Message="%Test%" Icon="0"/>


    Get Pixel Color at (500, 500) Relative to Screen into %Color%
    External Script: VBScript
    MessageBox: Hex Value


    In this example the message box displays "FFFFFF". To go back from hex "FF" to a decimal, use Wscript.Echo cint("&H%HexValue%") in the script. Don't miss the "&H". 

  • Create New...