Check for clickability

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
n0rm4l
Newbie
Posts: 8
Joined: Tue Nov 10, 2009 2:54 am

Check for clickability

Post by n0rm4l » Wed Jan 13, 2010 1:24 am

Hi,

I was wondering if it is possible to check if a link is clickable. For example, I have a list of links which are clickable only at certain times. I was wondering if it it can check if the link is clickable and if not it will move to the next link.

So, how can I check if the link is clickable?
and, how can i make my mouse move down a certain amount of pixels to the next link whenever the first link is unclickable and repeat until the whole list is done?

Thank You

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

Post by Marcus Tettmar » Wed Jan 13, 2010 9:25 am

Is this a link in a web page?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

n0rm4l
Newbie
Posts: 8
Joined: Tue Nov 10, 2009 2:54 am

Post by n0rm4l » Wed Jan 13, 2010 9:55 pm

yes

adroege
Automation Wizard
Posts: 438
Joined: Tue Dec 07, 2004 7:39 pm

look for cursor to change to a "hand" to indicate

Post by adroege » Thu May 27, 2010 9:08 pm

This might give you some ideas based upon the premise that clickable links change the mouse cursor to a "hand" pointer when directly over the link.


[code]

Label>Loop
LibFunc>user32,GetCursor,OldCursorState
Wait>.1
LibFunc>user32,GetCursor,NewCursorState

If>%NewCursorState%%OldCursorState%
Let>WCC_RESULT=TRUE
Else
Let>WCC_RESULT=FALSE
EndIf

If>WCC_RESULT=TRUE
//Based upon the premise that clickable links
//change the cursor to a "hand" pointer
MessageModal>Link is Clickable
Endif
Goto>Loop

[/code]

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