Jump to content

Danish Key Codes


Recommended Posts

Im searching for Dannish Key Codes in order to finish a keylogger with the _IsPressed func

Were do i finds these?

<{POST_SNAPBACK}>

You can do a _IsPressed-For-Loop from 0 to 255.

[quote name='d2hacker88' date='Jan 6 2005, 05:10 PM']Can someone please help me out with autoit like gimme a link on how to use it cause i have no experience with computer languages and i'd like to make a program with autoit in order to empress my computer teacher.[right][snapback]52215[/snapback][/right][/quote]

Link to comment
Share on other sites

may help, it show a tooltip of the last key pressed:

While 1 
   For $c = 1 to 255
      If _IsPressed($c) then ToolTip(Hex($c,2))
   Next
   If _IsPressed(13) then Exit
   Sleep(1)
WEnd


Func _IsPressed($hexKey)
  ; $hexKey must be the value of one of the keys.
  ; _IsPressed will return 0 if the key is not pressed, 1 if it is.
   
   Local $aR, $bRv;,$hexKey
;   $hexKey = '0x' & $hexKey;<- I commented this line so the fun accept a decimal parameter.
   $aR = DllCall("user32", "int", "GetAsyncKeyState", "int", $hexKey)
  ;If $aR[0] = -32767 Then
   If $aR[0] <> 0 Then
      $bRv = 1
   Else
      $bRv = 0
   EndIf
   
   Return $bRv
EndFunc  ;==>_IsPressed

Press Enter to leave.

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