Hello, I'm using replaceText() function to replace some string with another in a text, case sensitive, and I would like to inform the user about how many replacements have been done. Or, at least, how many occurences will be found (and replaced). All ...offset() functions I found are case insensitiv...
Well, it appears my previous script doesn't work on Windows 10. This one was successfully tested on MacOS, Windows 7 and Windows 10: function isConnected // return boolean put "google.com" into tUrl if (the platform <> "MacOS") then put "ping -n 1 " & tUrl & " > NUL && echo 1 || echo 0" into cmd set...
Considering the results I received outside of 'ping', again, I'm not really sure this site is a good example site even for the 2nd part of the thread. Despite the fact that this website seems to have trouble, as far as I know, all shared websites hosted at OVH don't respond to pings. But you're rig...
No, but all websites that are reachable return 'something', and you can test for that I found this: The responses to pings have been disabled by OVH on shared hosting. It can be tested with "durandexpertises.com" on mouseUp get "durandexpertises.com" put shell("ping " & it &" -c1") into fld "respon...
Please copy/paste field 2's result, or give me an example address, cause without anything to go on, I can't possibly improve the solution for you :P Well, it was in fact a friend's website in development, so maybe he has made some kind of special Apache settings. Sorry. I will post URL here if I fi...
Unfortunately, some websites don't answer pings. No, but all websites that are reachable return 'something', and you can test for that, the test doesn't have to be what I wrote up there, that was just a q&d example :P Well, I tested some websites with your shell script, and for some of them I had s...
Interesting solution, bogs. MacOS version of your script: on mouseUp put shell("ping " & field 1 &" -c1") into field 2 if matchText( field 2,"1 packets received") is false then answer "No Connection" else answer "You are connected." end mouseUp Unfortunately, some websites don't answer pings. So you...
Very interesting links, thanks :) Meanwhile, I tried to play with tsNetSetTimeouts command, without great success. The only way to have a quick answer from server (OK, you're connected, or can't resolve DNS) would be to insert tsNetClose tsNetInit before sending tsNetHeadSync command. This is quite ...
Hello, Using LC Indy 9.04, I would like to test if an internet connection is available from a stack. What is the best way to perform such a test with tsNet? I tried the following test with an ethernet cable and without wifi: 1 - ethernet cable connected: recovery of headers from google.com with tsNe...