Horus32596 Posted January 23, 2013 Posted January 23, 2013 (edited) Hi guys I'm fairly new to Auto-It I understand the basics like mouse-click sleep, winwaitactive() etc. and I'm attempting to move outward and start using hot-keys and functions but keep running into the same error.here is the code$Test = "{F1}" HotKeySet($Test, "_Test") Func "_Test" ($Test) $A=0 Do MouseClick("left",1119, 685, 2, 0) $A=$A + 1 Until $A=1 $A=$A - 1 EndFuncany help, tips and things I could do better will be gratefully appreciated thank you in advance. Edited January 23, 2013 by Horus32596
ileandros Posted January 23, 2013 Posted January 23, 2013 (edited) $ERLevelOneKey = "{F1}" HotKeySet($ERLevelOneKey, "_ERLevelOne") Func _ERLevelOne() $A=0 Do MouseClick("left",1119, 685, 2, 0); //Double Click Emergency Repair. $A=$A + 1 Until $A=1 $A=$A - 1 EndFunc ;==>"_ER Level One" Edit: Seems you read the forum rules and edit the script and the message??? It is a game automatation which is not allowed here... Edited January 23, 2013 by ileandros I feel nothing.It feels great.
kylomas Posted January 24, 2013 Posted January 24, 2013 (edited) Hourus...., There are several things wrong with your code. Is this what you are trying to do? kylomas edit: code deleted just in case you fuck up the code I posted so bad that you can't fix it...based on your original code, this is highly likely Edited January 24, 2013 by kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill
Horus32596 Posted January 24, 2013 Author Posted January 24, 2013 Yes thats exactly what I was trying to do thank you
ileandros Posted January 24, 2013 Posted January 24, 2013 You even edited the photo. Thats rediculus... I feel nothing.It feels great.
Horus32596 Posted January 24, 2013 Author Posted January 24, 2013 I will not deny your accusation yes the script was for a game and my original post even said so and explained what it is for which is a script that was intended not to cheat the game but to help the players. Allow me to explain the game I am speaking of is UCGO (www.ucgoserver.com) and a large part of the game is PvP, and during this you can use things called emergency repairs which heal your mobile suit and because some people have trouble running the game(it uses a lot of CPU Power) if you mess up when clicking on your emergency repair it can end up in you losing your mobile suit, so I decided to write a script that made it easier for people to emergency repair. When I saw the User agreement I did not think that I would receive any help if it stated it was for a game even for helpful reasons so I attempted to hide that it was for a game and still get help from people who are very good at using autoit instead of going to a sketchy forum where I wouldn't get much help let alone help that was on the level of kylomas's I decided to try my luck here where I knew somebody would be able to help me. I apologize for my trickery and I am willing to suffer the repurcusions of my actions. Thank you for the help you did provide because it did teach me what I needed to know, I wish you the best and hope you have a wonderful day.
kylomas Posted January 24, 2013 Posted January 24, 2013 and my original post even said soThat i highly unlikely else I would not have helped you...kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill
Moderators Melba23 Posted January 24, 2013 Moderators Posted January 24, 2013 (edited) Horus32596,Please read the Forum rules (the link is also at bottom right of each page) - particularly the bit about not discussing game automation - before you post again. Thread locked. M23Edit: And we can see the original post (which read "This code is for a Game called UCGO") - so if I see you editing posts again to remove incriminating evidence I will not be a happy bear. Understood? Edited January 24, 2013 by Melba23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Recommended Posts