Jump to content

AutoLoot in Vanilla wow script


Recommended Posts

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 ;)

Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...