Jump to content
Macro Express Forums

jarichardusa

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by jarichardusa

  1. Thank you Mbone for your reply, though I'll be honest and say I was a bit confused, I'm not super saavy when it comes to programming stuff. This is what I have so far: ------------------------------------------------------ Repeat Start (Repeat 10000 times) If Ping Successful: "www.yahoo.com" Else Web Site: http://www.jackalwireless.net/hotspot/index.php [Default Browser - Wait to load] Macro Playback Speed: Normal Speed Mouse Move Screen 854, 198 Mouse Left Button Down Mouse Left Button Up Delay 6869 Milliseconds Mouse Move Screen 1010, 13 Mouse Left Button Down Mouse Left Button Up Delay 3444 Milliseconds Mouse Move Screen 898, 745 End If Repeat End ----------------------------------------------------- It works to a point, but I can't figure out the right spot to put the repeats to make the script actually stop if the ping is successful and start the script all over again, thus continuously just pinging, unless the ping comes up unsuccessful in which case it should continue with rest. Basically, what I'm trying to accomplish is that I use a wifi to connect to my internet provider. In order to have online access a webpage must be accessed and a log-in completed. Well, at times, the wifi provided drops my link, thus I have to go back to the website and log back in. If I'm trying to download a lengthy file or something, and I go to work, the whole day is wasted if the link is dropped. So my macro is to ping a website repeatedly and if the ping works, then wait a bit and ping again. If the ping does not go though, that probably means the link got booted, so open the browser, which will automatically bring up the login page to the provider, and click on a button to log-in (username and password are filled in automatically by the browser). Once the button is clicked, go back to the beginning of the script and begin the processess of pinging over again. What I'm getting with the above script is just constantly acting as if the ping is unsucessful. Every 30 seconds the browser is opened up, the website gone to, and the button clicked, whether I have internet access at the time or not. So, basically, I don't know what I'm doing wrong with the above. Again, any help would be greately appreciated.
  2. Okay, this is what I'm trying to do and can't for the life of me figure out the proper way to accomplish it. I've read the how-to's and such but they don't seem to cover it. The script I'm trying to create is to ping a website, if the ping is successful, repeat after x amounts of minutes. If the ping is unsuccessful, then continue on with the script to do another task, and after that second task is completed start from the beginning again (with the pinging) and on and on forever... I guess my problem is where to put the repeats in relation to the events. How to get the script to start over if the ping is successful or continue on with the script if not. Basically, in a nutshell: ::Position A if ping successful... go to position A if ping unsuccessful do this task go to position A repeated indefinately. If this were BASIC I'd be all set... Thank you all for any help you might be able to provide.
×
×
  • Create New...