AutoHotkey Community

It is currently May 27th, 2012, 2:49 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: November 24th, 2009, 10:27 am 
At 6:00am every morning, my athletic club website makes tennis courts available. The courts for that day are gone by 6:05am. I want to write a script that launches automatically at 6:00am that reserves a court for me. The key strokes, mouse clicks and data entry are very predictable. If this can be done easily and you want to make some $, let me know. Thanks.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 24th, 2009, 11:36 am 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8667
Location: Salem, MA
have you tried the script recorder? you might be able to save some money.

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 24th, 2009, 8:51 pm 
engunneer wrote:
have you tried the script recorder? you might be able to save some money.


I played around with a couple of recording options and couldn't get them to work the way I wanted. Plus, once I get that part down, I'll have to figure out how to schedule it at 6:00am. Since I only need this one application, I thought I'd save my time and offer some bucks to someone that can do this in their sleep. Any takers???


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 25th, 2009, 12:29 am 
Code:
#Persistent
Time := 0600 ; time to go&getIt

SetTimer, Go&GetIt, 900
Return

Go&GetIt:
If InStr(SubStr(A_Now,-5,4),Time) {
   SoundBeep, 523, 100
   }
ToolTip
Return

!z::SetTimer, Go&GetIt, Off ; press ALT+z to stop the timer
For the reason that you didn't provide the URL, we have to create a wake-up-son-workarround :?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 25th, 2009, 4:00 am 
Offline

Joined: February 17th, 2008, 7:09 am
Posts: 536
Perhaps if you did a recording of what you wanted and posted it, someone could clean it up and prepare the 6am timer to fire it off. Anything sensitive or can't be shared can be replaced with %input1% and you can save that for later.

It would be harder to write the script without being able to test it though.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 25th, 2009, 10:31 am 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
Taskscheduler anyone :?: (OS, no need for having the script running all day to do just one thing at a specific time)

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 25th, 2009, 6:41 pm 
We would need the url. It might very well be **not allowed** to automate this, check on the site.

If you do get help, consider donating to AutoHotkey instead.

HTH


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 28th, 2009, 6:58 pm 
If its *your* website, why don't you set up a server side code that does that, or the website defaults to one court that is reserved for your self.


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group