Jump to content

help hotkey trapper


Recommended Posts

does anyone know how to make a hotkey trapper

#include<Misc.au3>
#include<GUIconstants.au3>
Dim $mod[4],$modi[4]
$mod=StringSplit("CTRL , ALT , SHIFT " , ",")
$modi=StringSplit("11,12,10" , ",")


GUICreate("lol")
$alt=""



$e=GUICtrlCreateEdit("" , 0 , 0 , 200 , 30 , 0x50010080,0x00000204)
GUISetState()
GUICtrlSetState($e,$GUI_DISABLE)
GUICtrlSetBkColor($e, 0xffffff)

While 1
    $msg=GUIGetMsg()
    If $msg=$GUI_EVENT_CLOSE Then Exit
    Sleep(10)
    $key=""
    For $i=0 To 3
        If _IsPressed($modi[$i]) Then
            $key=$key&$mod[$i]&"+"
        EndIf
    Next
    $k=0
    For $i=48 To 90
        $k+=1
        If _IsPressed(Hex($i)) Then
            $alt=Chr(47+$k)
        EndIf
    Next
    $key=$key&$alt
    If $key<>GUICtrlRead($e) Then
        GUICtrlSetData($e , $key)
    EndIf
WEnd

something like this if u didn't understand

like winamp has for global hotkeys

or cheat engine for trainer hotkeys,etc.

pls help

Only two things are infinite, the universe and human stupidity, and i'm not sure about the former -Alber EinsteinPractice makes perfect! but nobody's perfect so why practice at all?http://forum.ambrozie.ro

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