Jump to content
Sign in to follow this  
DennisH

AutoLoot in Vanilla wow script

Recommended Posts

DennisH

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

Share this post


Link to post
Share on other sites
hannes08

Hi,

please read the forum rules --> Link

Game Automation is not something you want to talk about here.


Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]

Share this post


Link to post
Share on other sites
DennisH

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

Share this post


Link to post
Share on other sites
Melba23

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._______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

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×