rifts Posted March 10, 2010 Share Posted March 10, 2010 hey im using this code i snagged from another post #include <IE.au3> ;This opens your IE to google.com $oIE = _IECreate ("http://emailx.discoveryvip.com/") $hIE = _IEPropertyGet($oIE, "hwnd") WinSetState($hIE, "", @SW_MAXIMIZE) ;This gets a Form Object by its name. The form it tries to find is named ;When it gets the form, $oForm is the Form Object. $oForm = _IEFormGetObjByName ($oIE, "extractor") ;This looks in the form object for a form element object named ;When it finds "q" $oQuery is the form element object $oQuery = _IEFormElementGetObjByName ($oForm, "rawdata") ;This sets the value of the $oQuery form element object _IEFormElementSetValue ($oQuery, "Hello") MouseMove(wtf goes here) _IELoadWait($oIE) everything works fine except i can not get the mouse to move to the area named "rawdata". Is it even possible to move the mouse without using the coords.? Thanks ps I dont want to use the coords because they vary depending on if the sites was changed and they vary computer to computer Thanks again Link to comment Share on other sites More sharing options...
bogQ Posted March 10, 2010 Share Posted March 10, 2010 (edited) the only thing that can move it with no coordinates is psychokinesis, so one way or another you need some coords Maby if you explaind what do you whant to do with mouse, someone can provide some other idea. Edited March 10, 2010 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
rifts Posted March 10, 2010 Author Share Posted March 10, 2010 ok well I was just using the textarea as a test but what im actaully trying to do is have autoit detect the "extract" button and move the mouse to it and then click on it. I need it to autofind the button without using coords. Link to comment Share on other sites More sharing options...
kaotkbliss Posted March 10, 2010 Share Posted March 10, 2010 This might give some ideaslink 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
rifts Posted March 10, 2010 Author Share Posted March 10, 2010 so there isnt an easy to way to just uses mousemove(xxxx) where like xxxx would be the var of the extract button? Link to comment Share on other sites More sharing options...
bogQ Posted March 10, 2010 Share Posted March 10, 2010 heare you go #include <IE.au3> $oIE = _IECreate ("http://emailx.discoveryvip.com/") $oForm = _IEFormGetObjByName ($oIE, "extractor") $oQuery = _IEFormElementGetObjByName ($oForm, "rawdata") _IEFormElementSetValue ($oQuery, "abv@hotmail.com"&@CRLF&"AAV@hotmail.com") $buf = _IEGetObjByName($oForm ,"BUTTON") _IEAction ($buf, "click" ) TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
rifts Posted March 10, 2010 Author Share Posted March 10, 2010 wow thank you so much that is exactly what i needed!! now just lots of editing and adding haha thanks again 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