Jump to content
Sign in to follow this  
Plecharts

WoW _IsPressed Problem

Recommended Posts

Hi, I'm trying to make a script, something like a binder for WoW

Script:

#Include <Misc.au3>
#Include <GUIConstants.au3>

$file = FileOpen("keys.txt", 1)
$time = 10000 ; 10 seconds

$dll = DllOpen("user32.dll")

Func _LogWindow($time)

    If WinActive("World of Warcraft") Then
        $status = "WoW Active"
    FileWriteLine($file, $status)
    Sleep($time) ; Sleep <time>
    EndIf
EndFunc

Func _LogKeyPress($whatlog)
    FileWriteLine($file, $whatlog)
    Sleep(90)
EndFunc

while 1
       If _IsPressed('28', $dll) Then
    _LogKeyPress("{DOWN ARROW}")
        EndIf
WEnd

In Windows, it does what it is supposed to, but in game it doesn't.

Share this post


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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...