Re: IE and scripted mouse clicks
Re: IE and scripted mouse clicks
- Subject: Re: IE and scripted mouse clicks
- From: JJ <email@hidden>
- Date: Thu, 07 Mar 2002 00:27:38 +0100
>
I get no event from using Sdndi's Additions' *MouseClick* command with
>
Internet Explorer (on links). I've tried pre-setting the cursor using Cursor
>
OSAX's *MoveMouse* prior to using the command, along with the *Multitask*
>
command, and anthing else I could think to do. What am I missing? (OS 8.6)
>
--
>
Tony Wilson <email@hidden>
Perhaps you can only click on app controls (buttons, pop-ups...).
Try this pseudo-click:
tell app "Internet Explorer"
set | x.com | to do script "document.links[0].href"
--> first link: "
http://www.x.com/"
do script "window.location = '" & | x.com | & "'"
end tell
I.e. in "
http://www.google.com/" you're clicking in "images" cathegory. If
you wish make a search then:
tell application "Internet Explorer"
set the_query to "fish"
do script "document.forms[0].elements[0].value = '" & the_query & "'"
do script "document.forms[0].submit()"
end tell
JJ
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.