Jump to content

_IsPressed vs. HotKeySet


Recommended Posts

#Include <Misc.au3>

MsgBox(0, "xLFDx Rule Spammer", "Created by xLFDx_AdMiN.")

While 1
    Sleep(250)
    If _IsPressed(74) Then
        Sleep(50)
        Send("t")
        Sleep(50)
        Send("--==Attention{!} xLFDx Racing Rules==--")
        Sleep(50)
        Send("{ENTER}")
        Sleep(50)
        Send("t")
        Sleep(50)
        Send("-DON'T CAMP")
        Sleep(50)
        Send("{ENTER}")
        Sleep(50)
        Send("t")
        Sleep(50)
        Send("-DON'T ATTACK TEAMMATES")
        Sleep(50)
        Send("{ENTER}")
        Sleep(50)
        Send("t")
        Sleep(50)
        Send("-DON'T CHASE KILL")
        Sleep(50)
        Send("{ENTER}")
        Sleep(50)
        Send("t")
        Sleep(50)
        Send("-DON'T WALK THE MAP")
        Sleep(50)
        Send("{ENTER}")
        Sleep(50)
        Send("t")
        Sleep(50)
        Send("-DON'T ARGUE WITH ADMINISTRATORS")
        Sleep(50)
        Send("{ENTER}")
        Sleep(50)
        Send("t")
        Sleep(50)
        Send("-RESPECT ALL USERS OF THE SERVER")
        Sleep(50)
        Send("{ENTER}")
        Sleep(50)
        Send("t")
        Sleep(50)
        Send("-FOR MORE DETAILED EXPLANATIONS, GO TO XLFDX.CO.NR")
        Sleep(50)
        Send("{ENTER}")
    EndIf
    If _IsPressed(75) Then
        Sleep(50)
        Send("`")
        Sleep(50)
        Send("rcon")
        Sleep(50)
        Send(" blocked")
        Sleep(50)
        Send(" sv_players")
        Sleep(50)
        Send("{ENTER}")
        Sleep(50)
        Send("rcon")
        Sleep(50)
        Send(" blocked")
        Sleep(50)
        Send(" sv_kick")
    EndIf
    If _IsPressed(76) Then
        Sleep(50)
        Send("`")
        Sleep(50)
        Send("rcon")
        Sleep(50)
        Send(" blocked")
        Sleep(50)
        Send(" sv_players")
        Sleep(50)
        Send("{ENTER}")
        Sleep(50)
        Send("rcon")
        Sleep(50)
        Send(" blocked")
        Sleep(50)
        Send(" sv_ban")
    EndIf
    If _IsPressed(77) Then
        Sleep(50)
        Send("t")
        Sleep(50)
        Send("--==ATTENTION EVERYONE==--")
        Sleep(50)
        Send("{enter}")
        Sleep(50)
        Send("t")
        Sleep(50)
        Send("If you would like to join our clan, then go to XLFDX.CO.NR")
        Sleep(50)
        Send("{ENTER}")
        Sleep(50)
        Send("t")
        Sleep(50)
        Send("High ranks still avaliable{!}{!}")
        Sleep(50)
        Send("{ENTER}")
        Sleep(50)
        Send("t")
        Sleep(50)
        Send("Signup now at XLFDX.CO.NR")
        Sleep(50)
        Send("{ENTER}")
    EndIf
WEnd

It's for my halo server. And no, my rcon isn't blocked lol.

Link to comment
Share on other sites

It's likely halo is overwriting the hotkeys set by autoit. You can try running the script after halo fully loads, but some apps really like to keep thier hotkeys and key bindings :)

He is exactly correct. Most modern games will lock out virtually every hotkey that you set... Battlfront 2, for an example, is also this way. _ispressed will get around it, but the key will still trigger whatever it would normally do in the game.

I would have told you I have Alzheimer's, but I forgot.My Splendid-Tastic Blog

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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