sumkid Posted July 23, 2007 Share Posted July 23, 2007 (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 expandcollapse popupFunc 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 July 23, 2007 by sumkid Link to comment Share on other sites More sharing options...
Generator Posted July 23, 2007 Share Posted July 23, 2007 (edited) Name your function. Example: Func _MyFunction()\ ;Code EndFuncoÝ÷ Øò¢ìÛh{º×²¢êߺw-ãºËiºÛazv¦zíçîËb¢x§±Êâ¦Ñ1jjey«¢+Øí±ÐÌäíÌÍÑÉÐÕѼ±¥¥¸)}5åչѥ½¸ ¤ìQ¡¥ÌÝ¥±°ÉÕ¸µäչѥ½¸(í±ÐÌäí̼ͽµÑ¡¥¹±Í Edited July 23, 2007 by Generator Link to comment Share on other sites More sharing options...
sumkid Posted July 23, 2007 Author Share Posted July 23, 2007 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 Link to comment Share on other sites More sharing options...
Generator Posted July 23, 2007 Share Posted July 23, 2007 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 Link to comment Share on other sites More sharing options...
Generator Posted July 23, 2007 Share Posted July 23, 2007 Can't edit because the code will be messed up, change _State to _MyFunc 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