-
Posts
4,207 -
Joined
-
Last visited
-
Days Won
61
Content Type
Profiles
Forums
Events
Everything posted by Cory
-
Javascript for External Sites
Cory replied to birdmanjenkins's topic in Macro Express and Macro Express Pro
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- 1 reply
-
- 1
-
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.
-
MEP can not manipulate controls in a web browser control. The best solution is hitting the home button and tabbing around.
-
Identifying one out of many Running Processes
Cory replied to Sebastian42's topic in Macro Express and Macro Express Pro
I don't believe so. -
Denied access to all locations for saving a backup
Cory replied to Sebastian42's topic in Macro Express and Macro Express Pro
Australia? -
Denied access to all locations for saving a backup
Cory replied to Sebastian42's topic in Macro Express and Macro Express Pro
Are you able to manually create a file in that location? You might try running MEP as an administrator. -
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.
-
You're welcome.
-
Incorporating imported macros
Cory replied to Sebastian42's topic in Macro Express and Macro Express Pro
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. -
Incorporating imported macros
Cory replied to Sebastian42's topic in Macro Express and Macro Express Pro
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. -
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.
-
I have no idea what you're talking about.
-
I'm not sure what you mean. Macros are contained in a macro file with an MEX extension. To open one, File > Open File....
-
It sounds like you didn't have a macro file loaded.
-
Try running MEP in Windows safe mode.
-
Are you running any security software that might be inhibiting MEP? You shoudl start a support ticket with ISS.
-
Scheduled macro activated an hour early
Cory replied to terrypin's topic in Macro Express and Macro Express Pro
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. -
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.
-
Macro involving Win10's Task Manager
Cory replied to Sebastian42's topic in Macro Express and Macro Express Pro
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. -
Fidelity Active Trader Pro chart opening macro
Cory replied to Trauton's topic in Macro Express and Macro Express Pro
Off the top of my head, the only thing I can think of is pixel scanning. -
MEX Pro 4 and Q-Dir Hotkey Problems
Cory replied to Alexis's topic in Macro Express and Macro Express Pro
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. -
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".