Jump to content
Macro Express Forums

Cory

Members
  • Posts

    4,207
  • Joined

  • Last visited

  • Days Won

    61

Everything 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. https://www.w3schools.com/js/js_htmldom.asp
  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. MEP can not manipulate controls in a web browser control. The best solution is hitting the home button and tabbing around.
  4. You don't need a macro. Just drag and drop the message onto the Tasks icon in Outlook and it will do what you want.
  5. You don't need a macro, just set the file extension association to whatever app you want to open it with. Settings > Apps > Default Apps > Choose default apps by file type. Or you can double click the file, then select yoru app and check the box to "Always use this app..."
  6. Are you able to manually create a file in that location? You might try running MEP as an administrator.
  7. 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.
  8. You could also search your My Documents or whole hard drive for all files with the MEX extension. The newest should be the one you were using.
  9. 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.
  10. 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.
  11. I have no idea what you're talking about.
  12. I'm not sure what you mean. Macros are contained in a macro file with an MEX extension. To open one, File > Open File....
  13. It sounds like you didn't have a macro file loaded.
  14. Try running MEP in Windows safe mode.
  15. Are you running any security software that might be inhibiting MEP? You shoudl start a support ticket with ISS.
  16. 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.
  17. 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.
  18. You don't really need MEP for that. Just use TaskKill in a batch file which would also have the command to launch the application.
  19. Consider using the Windows Task Scheduler. You might need to add a delay which can be specified in the 'At log on' trigger.
  20. Off the top of my head, the only thing I can think of is pixel scanning.
  21. 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.
  22. 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...