Cory Posted July 25, 2016 Report Share Posted July 25, 2016 I was writing allstarleb about pushing MEP too far. That is trying to write complex routines which it really isn't designed to do. EG sorting an array or performing a RegEx match. I've gotten reasonable proficient in .NET and understand MEP pretty well so I'm willing to write simple command line programs for MEP users in cases where there's a simple function or whatever in .NET that does what you need. YOu can then run them hidden using the "Program Launch" command and it will return your value or values using the "Capture Console Output" feature. A few I've thought of An extension based on .NET WebClient. I could set it up to do GET and POST and return the contents of web pages to you without a web browser. Email send. I have one already for sending HTML formatted email. MEP has a simple email command but is missing many features. RegEx match. As I mentioned before. Very powerful. SQL Server client. Multiple input forms. MS Office Interop. Basically all Office apps have an Interop API. This allows one to open and modify Office docs just like a user. Mainly I was thinking about using it to get lists from Excel. ANd thousands more. As long as it doesn't take too much of my time I'm willing to do them for free. Quote Link to comment Share on other sites More sharing options...
allstarleb Posted July 28, 2016 Report Share Posted July 28, 2016 Hey Cory, I would love to test them out for you within my capacity and I think they would be a valuable addition to the community. I know you area busy person so this would be much appreciated, especially the multiple input form! An optimal objective when programming these is to make them easy to use, simple, and powerful. So they take complex things and make it easy for users to plug and play to achieve the desired outcome without having to pop open the hood and fiddle around. So the ideal scenario is the user only has to input the parameters for these items to function and they function. let me know if you need anything from me. Cheers, Ali Quote Link to comment Share on other sites More sharing options...
terrypin Posted July 28, 2016 Report Share Posted July 28, 2016 Hi Cory, Away from home (limited to iPhone and iPad) and just seen your generous offer. I'll post again when I'm back at my PC but meanwhile here's one personal requirement I have which I suspect lies outside the sort of thing you describe. I've just moved to a new PC and my file structure has changed drastically. So a great number of my macros need changing. For example I want all references to C:\Docs\My Dropbox to become C:\Users\terry\Dropbox. Ideally I'd like to be able to open my main macro file FULL.mex in a hex editor and make that replacement globally. But the only type of changes I've ever been able to make successfully by that method are those rare ones which retain exactly the same size. Like changing C:\ to D:\. I think an alternative (apart from writing a repetitive macro that examines every line of every macro and replaces that string when found) will be to export FULL.mex as a macro information text file and work on that. Rather like the excellent Find macro I recall you made some years ago. I'll look at this more closely when I get home in a week or so, but meanwhile would appreciate all thoughts please. Terry, East Grinstead, UK Quote Link to comment Share on other sites More sharing options...
Cory Posted July 28, 2016 Author Report Share Posted July 28, 2016 I've done that before. Exported to a macro info file and did a global replace. I can't remember exactly but I seem to think it worked. Quote Link to comment Share on other sites More sharing options...
Cory Posted July 28, 2016 Author Report Share Posted July 28, 2016 Many of these things I have in mind like basing a command on RegEx could be very complex. Forms for instance have hundreds of possible control and each has hundred of parameters. I would want to keep it simple. In a way that has been ISS's philosophy with MEP all along. And it's smart. Otherwise one should just learn a programming language ;-) Quote Link to comment Share on other sites More sharing options...
allstarleb Posted July 29, 2016 Report Share Posted July 29, 2016 Many of these things I have in mind like basing a command on RegEx could be very complex. Forms for instance have hundreds of possible control and each has hundred of parameters. I would want to keep it simple. In a way that has been ISS's philosophy with MEP all along. And it's smart. Otherwise one should just learn a programming language ;-) Cory, I agree we need to learn programming. For example, the form they have as a sample with the fancy stuff works. I understand the logic and can operate with it, but it's a completely separate eco system and not easy to work with. The objective is to make it easy for MEP users to do important things without needed to learn a new language. Quote Link to comment Share on other sites More sharing options...
Cory Posted July 30, 2016 Author Report Share Posted July 30, 2016 I completely agree. Quote Link to comment Share on other sites More sharing options...
terrypin Posted August 7, 2016 Report Share Posted August 7, 2016 "I think an alternative (apart from writing a repetitive macro that examines every line of every macro and replaces that string when found) will be to export FULL.mex as a macro information text file and work on that. Rather like the excellent Find macro I recall you made some years ago. I'll look at this more closely when I get home in a week or so, but meanwhile would appreciate all thoughts please." Back from holiday I tried that approach. But I'd hoped that I could then edit it using my text editor and then in MX Pro use File > Import > Import Text File... However, MX Pro expects the text file to have a rigid structure, different to the exported one and also seems to expect only macros with hotkeys or shortkeys. A substantial proportion of mine have neither, as I activate them from menus or Explorer. So unless anyone knows how to reliably hack an MEX file with a hex editor, it looks like I'll have to resort to the tedious task of a macro to operate on every line of every macro (over a thousand). -- Terry, East Grinstead, UK Quote Link to comment Share on other sites More sharing options...
Cory Posted August 8, 2016 Author Report Share Posted August 8, 2016 Terry you might want to start another thread for this. We've drifted off topic. Quote Link to comment Share on other sites More sharing options...
terrypin Posted August 8, 2016 Report Share Posted August 8, 2016 Terry you might want to start another thread for this. We've drifted off topic. OK, you're right, will do. In fact I was about to post afresh, as I've hit an obstinate snag with the basic find/replace approach. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.