AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need Script to Click Button on Webpage

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Dave Campbell



Joined: 09 Jun 2005
Posts: 25
Location: Clearwater, Florida

PostPosted: Mon Oct 22, 2007 3:18 pm    Post subject: Need Script to Click Button on Webpage Reply with quote

I have a website http://www.sundaycrosswords.com/sudokushop/SPSudoku.htm that has a Java button for printing a sudoku puzzle. I want to compose a script that brings up the browser to that web page and clicks on the print button so that it prints in the pre-arranged size and format.

I can do it with the browser print function but it produces a smaller copy. I suspect the only way to do what I want is with mouse controls, a feature I have yet to get a handle on. Every time I set out to learn how, I get frustrated.

Any help I can get would be appreciated.

Thanks.[/url]
Back to top
View user's profile Send private message
snurre
Guest





PostPosted: Mon Oct 22, 2007 3:20 pm    Post subject: Reply with quote

I guess you would have find the correct X/Y coords and use MouseMove or Click
Back to top
engunneer



Joined: 30 Aug 2005
Posts: 6847
Location: Pacific Northwest, US

PostPosted: Mon Oct 22, 2007 3:47 pm    Post subject: Reply with quote

an easy way top get frustrated is to try and automate webpages. you could use a javascript bookmarklet to push the button, maybe.
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
Hasso



Joined: 23 Mar 2005
Posts: 158
Location: Germany

PostPosted: Tue Oct 23, 2007 9:07 am    Post subject: Reply with quote

Unfortunately the button is not controlled by JavaScript but part of an embedded Flash object. So you couldn't do anything else than mouse clicking, I fear.
_________________
Hasso

Programmers don't die, they GOSUB without RETURN
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group