Next Clicker on google and ebay

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
szefte
Newbie
Posts: 2
Joined: Sun Sep 02, 2007 9:17 pm

Next Clicker on google and ebay

Post by szefte » Sun Sep 02, 2007 9:24 pm

I am working on a simple script to click 'Next' (in firefox) to use it together with a hotkey on my keyboard so I can easily move to next page while searching ebay and google. I have read the forum posts I could find and figured out 'mouseover' and any 'button' commands will not work as I am attempting to click just text. I am not familiar with html so I rule out searching in the sourcecode of the page, wchich would only limit the script to one page.

So far I have not figured out how to do it...help:)

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Sep 03, 2007 7:18 am

MouseOver etc work with Win32 controls. Can't work with HTML objects.

Best option if you are using FireFox is to use the FindImagePos command.

Best option if using IE is to use WebRecorder/VBScript. Plenty of examples on these forums for automating IE.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

szefte
Newbie
Posts: 2
Joined: Sun Sep 02, 2007 9:17 pm

?

Post by szefte » Mon Sep 03, 2007 7:35 am

not really - i'm looking for text

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Sep 03, 2007 7:36 am

Why not really?

Both my suggestions will work with text links.

Just trying to help.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Re: ?

Post by Me_again » Mon Sep 03, 2007 1:41 pm

szefte wrote:not really - i'm looking for text
Well, you could try that, but it would fail on a lot of pages like this one. Marcus FindImagePos is a good solution.

edauthier
Pro Scripter
Posts: 84
Joined: Sun Apr 13, 2003 1:26 pm
Location: USA

Post by edauthier » Mon Sep 03, 2007 6:38 pm

Marcus's response is probably your best option. Especially if you're working with HTML pages often, Web Recorder is indespensible.

The only other thing I can think of is on Google Search Results you could use the
Windows Find Function to locate hyperlinks.

Open Google Home Page and run the following:

Code: Select all

Press Ctrl
Send>f
Release Ctrl
WaitWindowOpen>Find*
WaitReady>Find*
SetFocus>Find*
wait>0.25
send>Advertising
Press Tab
Press Tab
Press Tab
Press Enter


Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Mon Sep 03, 2007 7:33 pm

IF you know how many results per page are being displayed in Google, you can calculate the URL for the next page of results. Here are the terminating characters of the first page of 10 search results, and the second page of 10 results. Setting the "start=" number will display any page.

...microsoft:en-US&ie=utf8&oe=utf8

...microsoft:en-US&start=10&sa=N

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts