Jump to content

MoveMouse question


 Share

Recommended Posts

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

the only thing that can move it with no coordinates is psychokinesis, so one way or another you need some coords :mellow:

Maby if you explaind what do you whant to do with mouse, someone can provide some other idea.

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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

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

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 connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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

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...