Jump to content

mousemove


muehli
 Share

Recommended Posts

hi

is it possible to make a mouseMove from (x1, y1) to (x2, y2) and stop with the mouse move when _IEPropertyGet($oIE, "statustext") returnes a specific text?

background:

i like to find a link at a homepage, but _IELinkClickByText don't work because it is a php page and this page hides the link-text. But when i move over the link, the URL of the link is displayed in the statustext and so i can find the link.

i hope someone can help or have a better solution :-)

thx

greetings

Muehli

Link to comment
Share on other sites

hi

is it possible to make a mouseMove from (x1, y1) to (x2, y2) and stop with the mouse move when _IEPropertyGet($oIE, "statustext") returnes a specific text?

background:

i like to find a link at a homepage, but _IELinkClickByText don't work because it is a php page and this page hides the link-text. But when i move over the link, the URL of the link is displayed in the statustext and so i can find the link.

i hope someone can help or have a better solution :-)

thx

greetings

Muehli

Maybe something like this

$x1 = 0
$x2 = 1000
$y1 = 0
$y2 = 200


for $n = $x1 to $x2
    mousemove($n,$y1 + ($y2 - $y1)*$n/($x2-$x1),0)
    ;if somecondition then exitloop
    sleep(10)
Next
Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

Maybe something like this

$x1 = 0
$x2 = 1000
$y1 = 0
$y2 = 200


for $n = $x1 to $x2
    mousemove($n,$y1 + ($y2 - $y1)*$n/($x2-$x1),0)
    ;if somecondition then exitloop
    sleep(10)
Next

why mouse speed is practicly same with sleep(1) true sleep(10) but without sleep() statements is very quick?!

This mean that sleep(1) is more then 1ms?

Link to comment
Share on other sites

why mouse speed is practicly same with sleep(1) true sleep(10) but without sleep() statements is very quick?!

This mean that sleep(1) is more then 1ms?

Basically you can only sleep for 0 or 10 (and higher) ms. See this thread for an explanation. Edited by AdmiralAlkex
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...