muehli Posted October 17, 2009 Share Posted October 17, 2009 hiis 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 :-)thxgreetingsMuehli Link to comment Share on other sites More sharing options...
martin Posted October 17, 2009 Share Posted October 17, 2009 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 More sharing options...
microera Posted October 17, 2009 Share Posted October 17, 2009 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 More sharing options...
AdmiralAlkex Posted October 17, 2009 Share Posted October 17, 2009 (edited) 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 October 17, 2009 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now