DennisH Posted June 1, 2012 Posted June 1, 2012 Hello I've been using AutoIt for about a month now, and i'm really enoying it! I have some trouble with the last script i wrote, and i can't really understand why (In World of Warcraft 1.21 Autoloot does not exist, and there is no addon for it, so i decided to make a script) #cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.8.1 Author: DennisH Script Function: Dette program sørger for at autoloote når der skal lootes. Programmet i al sin enkelhed holder shift tasten nede i 10 millisekunder når der trykkes på højre musetast #ce ---------------------------------------------------------------------------- #Include <Misc.au3> HotKeySet("^{F4}", "Terminate") ;$dll = DllOpen("user32.dll") TraySetToolTip("Tryk på CTRL+F4 for at afslutte AutoLoot") While 1 $pressed = _IsPressed("02") Sleep (1) If $pressed = True Then While $pressed = true $pressed = _IsPressed("02") WEnd ;MsgBox(1,"miav",$pressed) Send ("{SHIFTDOWN}") sleep(5) MouseClick ("right") ;Sleep(20) Send ("{SHIFTUP}") EndIf WEnd DllClose($dll) Exit Func Terminate() Exit 0 EndFunc The problem i'm having, is that i the first time i right click, it doesn't work, the next two times it works, and that repeats itself. After the two succesfull AutoLoot's i press other buttons. I really hope you can help
hannes08 Posted June 1, 2012 Posted June 1, 2012 Hi,please read the forum rules --> LinkGame Automation is not something you want to talk about here. Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]
DennisH Posted June 1, 2012 Author Posted June 1, 2012 it's not really game automation. The function exist in newer versions of World of Warcraft, but i'm playing an older version that does not have it
Moderators Melba23 Posted June 1, 2012 Moderators Posted June 1, 2012 DennisH,Who cares whether the function exists now or not? Which bit of "Any discussion of using AutoIt to launch or interact with a game or game server violates our rules" is hard to understand? Thread locked - do not start another one on the same subject, do not PM me to argue about it, etc, etc. M23 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