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
Check for clickability
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
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?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
look for cursor to change to a "hand" to indicate
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]
[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]