PDA

View Full Version : [HELP]Doing Mouse Script



Kaskame
01-12-2009, 15:39
So I did this Thread as I was needing some help about this...
And because you guys said to every people who needs help create a new thread..so here it is :P



Well, first of all download and install AutoIt. After that make a name AutoIt v3 file (rightclick anywere > New > AutoIt v3 script). And you should make a search for "Mouse" in the help file.


And the 2 most basics commands with mouse are: "MouseMove" & "MouseClick".

So this is not just for me but for whole ppl with need of help :3

BTW trying to understand how that works :P

Reinn
01-12-2009, 16:10
Well, it will be really "tiredly" if we have to answer to every function.

The best way you can read about what functions do, etc. is to read the help file. (If you open Scite Editor & press F1, the help file will open.)

What I said up there, doesn't mean I don't want to help... MouseMove is easy, and when you write a command in Scite, you can see what to input after it...

Kaskame
01-12-2009, 16:11
How do I know the coordinates ? :S

Bat
01-12-2009, 19:06
Try AU3info in the AutoIT folder.

AlmarM
01-12-2009, 19:54
Try AU3info in the AutoIT folder.

Im always using this little script to get screen coordinates:


HotKeySet("{HOME}", "_GetPos")
HotKeySet("{ESC}", "_Exit")

While 1
$pos = MouseGetPos()
Sleep(100)
WEnd

Func _GetPos()
ToolTip("X: " & $pos[0] & @CRLF & "Y: " & $pos[1], $pos[0], $pos[1], "XY Pos", "", 1)
EndFunc ; ==> _GetPos()

Func _Exit()
Exit
EndFunc ; ==> _Exit()

:rolleyes:

Kaskame
01-12-2009, 20:22
Yay Thanks :D!

^^ Now ima trying doing something :3 I will post here my results ^^

AlmarM
01-12-2009, 20:40
Sure, always tell us if u need any help with anything ;)