Sign in to follow this  
Followers 0
sumkid

mouse clicking script help

5 posts in this topic

#1 ·  Posted (edited)

Well, i am trying to make a script i have read around alot looking for help but i think i need to post this.

I dont want a GUI just a script to run this command. this is what i have

Func
MouseMove(521,-9,10)
MouseClick("left")
Sleep(1500)
EndFunc

Func
MouseMove(53,173,10)
MouseClick("left")
Sleep(1500)
EndFunc

Func
MouseMove(566,99,10)
MouseClick("left")
Sleep(1500)
EndFunc

Func
MouseMove(457,77,10)
MouseClick("left")
Sleep(1500)
EndFunc

Func
MouseMove(53,173,10)
MouseClick("left")
Sleep(1500)
EndFunc

Func
MouseMove(546,46,10)
MouseClick("left")
Sleep(1500)
EndFunc

Func
MouseMove(53,173,10)
MouseClick("left")
Sleep(1500)
EndFunc

Func
MouseMove(488,218,10)
MouseClick("left")
Sleep(1500)
EndFunc

Func
MouseMove(53,173,10)
MouseClick("left")
Sleep(1500)
EndFunc

Func
MouseMove(-150,173,10)
MouseClick("left")
Sleep(1500)
EndFunc

Func
MouseMove(-150,173,10)
MouseClick("left")
Sleep(1500)
EndFunc

the problem i get when i try to execute it is it says "badly formatted "Func" statemant"... any help?

Edited by sumkid

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Name your function.

Example:

Func _MyFunction()\
;Code
EndFuncoÝ÷ Øò¢ìÛh{º×²¢êߺw-ãºËiºÛazv¦zíçîËb¢x§±Êâ¦Ñ1jjey«­¢+Øí±ÐÌäíÌÍÑÉÐÕѼ±¥­¥¸)}5åչѥ½¸ ¤ìQ¡¥ÌÝ¥±°ÉÕ¸µäչѥ½¸(í±ÐÌäí̼ͽµÑ¡¥¹±Í
Edited by Generator

Share this post


Link to post
Share on other sites

Hey Generator thanks for the help but i did it a different way, i also made the clicks faster heres what i did (i have to close autoit by myself but thats fine with me)

While 1

MouseMove(521,-9,10)

MouseClick("left")

Sleep(500)

MouseMove(53,173,10)

MouseClick("left")

Sleep(500)

MouseMove(566,99,10)

MouseClick("left")

Sleep(500)

MouseMove(457,77,10)

MouseClick("left")

Sleep(500)

MouseMove(53,173,10)

MouseClick("left")

Sleep(500)

MouseMove(546,46,10)

MouseClick("left")

Sleep(500)

MouseMove(53,173,10)

MouseClick("left")

Sleep(500)

MouseMove(488,218,10)

MouseClick("left")

Sleep(500)

MouseMove(53,173,10)

MouseClick("left")

Sleep(500)

MouseMove(-150,173,10)

MouseClick("left")

Sleep(500)

MouseMove(-150,173,10)

MouseClick("left")

Sleep(999999999999)

WEnd

Share this post


Link to post
Share on other sites

Personally i would recommend put your code in codebox so it's easier for us to read and help.

You can do it this way, first, global a boolean.

Global $BooloÝ÷ Ù'­j-ì­¢Ì"µÈlµ«^jëh×6HotkeySet("{PAUSE}","_State")oÝ÷ ØÚ0Ê«¨§±Êâ¦Ö®¶­sevÆR¥6ÆVW¥tVæ@oÝ÷ ØÚ0¦ëmë-j×¢Ê2¢çÌ"µÈZ+b殶­sdgVæ2ô×gVæ2¢b33c´&ööÃÔæ÷Bb33c´&ööÀ¥vÆRæ÷Bb33c´&ööÀ¤Ö÷W6TÖ÷fRS#ÂÓäÖ÷W6T6Æ6²gV÷C¶ÆVgBgV÷C²¥6ÆVWS¤Ö÷W6TÖ÷fRS2Ãs2äÖ÷W6T6Æ6²gV÷C¶ÆVgBgV÷C²¥6ÆVWS¤Ö÷W6TÖ÷fRScbÃäÖ÷W6T6Æ6²gV÷C¶ÆVgBgV÷C²¥6ÆVWS¤Ö÷W6TÖ÷fRCSrÃsräÖ÷W6T6Æ6²gV÷C¶ÆVgBgV÷C²¥6ÆVWS¤Ö÷W6TÖ÷fRS2Ãs2äÖ÷W6T6Æ6²gV÷C¶ÆVgBgV÷C²¥6ÆVWS¤Ö÷W6TÖ÷fRSCbÃCbäÖ÷W6T6Æ6²gV÷C¶ÆVgBgV÷C²¥6ÆVWS¤Ö÷W6TÖ÷fRS2Ãs2äÖ÷W6T6Æ6²gV÷C¶ÆVgBgV÷C²¥6ÆVWS¤Ö÷W6TÖ÷fRCÃ#äÖ÷W6T6Æ6²gV÷C¶ÆVgBgV÷C²¥6ÆVWS¤Ö÷W6TÖ÷fRS2Ãs2äÖ÷W6T6Æ6²gV÷C¶ÆVgBgV÷C²¥6ÆVWS¤Ö÷W6TÖ÷fRÓSÃs2äÖ÷W6T6Æ6²gV÷C¶ÆVgBgV÷C²¥6ÆVWS¤Ö÷W6TÖ÷fRÓSÃs2äÖ÷W6T6Æ6²gV÷C¶ÆVgBgV÷C²¥tVæ@¤VæDgVæ0

Share this post


Link to post
Share on other sites

Can't edit because the code will be messed up, change _State to _MyFunc

Share this post


Link to post
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
Sign in to follow this  
Followers 0