| View previous topic :: View next topic |
| Author |
Message |
Dave Campbell
Joined: 09 Jun 2005 Posts: 25 Location: Clearwater, Florida
|
Posted: Mon Oct 22, 2007 3:18 pm Post subject: Need Script to Click Button on Webpage |
|
|
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 |
|
 |
snurre Guest
|
Posted: Mon Oct 22, 2007 3:20 pm Post subject: |
|
|
| 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
|
Posted: Mon Oct 22, 2007 3:47 pm Post subject: |
|
|
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 |
|
 |
Hasso
Joined: 23 Mar 2005 Posts: 158 Location: Germany
|
Posted: Tue Oct 23, 2007 9:07 am Post subject: |
|
|
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 |
|
 |
|