Jump to content
Macro Express Forums

Cory

Members
  • Posts

    4,207
  • Joined

  • Last visited

  • Days Won

    61

Posts posted by Cory

  1. If you disable your network then there is no path an an ICMP ping will complete quickly and tell you there's no route.

     

    Kevin: Please explain how ICMP Ping can access a resource only accessible with HTTP. In the Help for MEP is clearly shows an example of a URI pointing to "support.htm". Also it says to omit the scheme. HTTP requires a scheme to access a resource. It needs to know if it's HTTP, HTTPS, FTP, SMTP, or whatever protocol to use. 

    It seems contradictory to omit she scheme suggests ICMP ping as it is a protocol (IMCP is a protocol like HTTP) and doesn't use it, but having a path suffest HTTP or other protocol that uses a path to resources. 

  2. Also I tried a URL without the https:// that I know takes a long time. It just happens to be a thorn in my side for some software I'm developing right now. Their response times are typically around 30 seconds as their back end servers are slow as molasses in a Montana winter. I tried with a 5 second parameter in the Ping Site command and it returned as failed immediately. 

    I also increased the parameter to 5000 in case there was a mistake in units, milliseconds instead of seconds, but it came back immediately also. 

     

    Once we know the mechanism being used we can judge if it's behaving normally or not. 

  3. I have some ideas, but I think I need some explanation from ISS.

    ISS: Is Ping using ICMP or and HTTP request?

     

    I don't think this is a "ping", I think it's a HTTP HEAD Request. Ping uses ICMP packets and is below the HTTP protocol. If memory serves, it's a part of the Internet Protocol. You might have seen the initialism TCP/IP before. I think it's part of the "IP" suite. But ISS shoudl be able to tell us. You see a ping only accepts a domain or subdomain as a parameter, one can't ping to a resource. That is, no path or resource name like "support.html" and this is what they show in their help file.

     

    Assuming it's using something like an HTTP HEAD, you need to be more specific about your terms. What do you mean by "no connection"? Do you mean you disabled your internet connection?

     

    I created a macro and set the wait time to 10 seconds but the macro showed me the fail message immediately. I also used Slowly to simulate a 10 second response delay, but that came back immediately as failed also. This isn't making sense to me. If it was an HTTP request and the server was slow to respond, my test shoudl have worked. But then that doesn't explain why it fails if it's ICMP ping. Hopefully ISS can shed some light on what's happening behind the scenes, but it does appear something is broken. 

  4. There is no way. 

    I write my own scrapers in .NET that use HTTP Request/Response and one needs to  have the credentials in the request. They don't magically transfer over to another. However you can add credentials to a URL but that's basic authentication and not secure. I know Chrome and MS browsers stopped supporting it, however you won't be using them. 

    You can see my other post here where in your browser you can use a "view-source" protocol in Chrome to get the HTML. So see my web page for instance you enter "view-source:http://bluepointdesign.com/" in the address bar. 

    I'm available for hire making scrapers that do HTTP Req/Resp type scraping if you have a need. 

  5. acantor: I already suggested using window activation but the OP said he doesn't know what the window title will be. 

     

    OP: I assume that the window title is so different that the partial match or wildcard option will not work. Is that correct? Can you give us some examples? Screen shots?

    I'm confused. How do you know the app if every time the window appears is has a radically different window title?

     

    Another thought: How about being proactive instead of reactive? Instead of launching the program and then trying to detect it, have MEP launch the program and then you can get the window title of the active window. Create a shortcut or whatever to MeProc.exe. CHeck out the help section "Command Line Parameters". 

  6. Insight Software Solutions makes MEP. YOu shoudl have read this sticky post at the top of the forum about reporting bugs, requesting features, and requesting support. The link is in there. Since you are licensed you will get prompt and effective support.  

    Interesting choice in Windows user name "383321". I wonder what you're using this for.

    It is possible your macro is trying to access files in that folder. Try closing your MEX and creating a new blank MEX. If the problem goes away, then the problem lies in one of your macros. Normally MEP would not access temporary files of Internet Explorer.

  7. If you did my idea of navigating to the bookmarks page directly, you wouldn't have to deal with default pages. If you don't trust MEP, try it manually. Open chrome and paste in this address. "chrome://bookmarks". It will not be painful, I swear.

    As for the last line, I can't remember the last time I used Program Shut Down. As I remember one should only use this when Windows Close doesn't suit your needs. Try Window Close.  Since you have it focussed, you just use the basic command.

     <WINDOW CLOSE Option="\x00" Partial="TRUE" Wildcards="FALSE" _IGNORE="0x0006"/>

     

  8. On 8/29/2020 at 12:34 PM, Cory said:

    I've made posts here ages ago about MEP and UWP when I first discovered this. You might search and check out some of the discussions back then. Not only does it not 'hear' it can't send things like commands to controls or type. MEP was designed to work with the traditional WinForms architecture, and UWP is a completely new technology. I'm not sure if it's just that it doesn't have the facilities, or, as some has suggested, that UWP apps are more protected to guard against malware and such that often operate in the same ways MEP does. I just know the if it's a UWP, there's nothing I can do in it with MEP.

    I was wrong. MEP works fine in UWP apps. I've been doing my activations incorrectly. I apologize for the misinformation. 

  9. I think you need to work on some fundamentals like controls. Also I think I have failed to explain to you things like not using my repeat, but rather the code under it. Also I don't think you are understanding the direct editor code and I don't think you are pasting my code into a macro. And I don't think you are using my first code to get to the bookmarks. And you're not showing me your code. It seems you want to do this differently than all the methods I've shown you. Good luck. 

×
×
  • Create New...