Getkeys

By knoeki on Jul 08, 2009

Simple alias/event combo. Outputs the character, keycode and repetitions if applyable.

usage:

type /getkeys and mash the keyboard.

on *:KEYDOWN:@getkeys:*: {
   if ($keyrpt != $true) {
      set %keyrpt 1
      aline @getkeys Key: $keychar - Code: $keyval
   }
   else {
      inc %keyrpt
      rline @getkeys $line(@getkeys, 0, 0) Key: $keychar - Code: $keyval - Repeated %keyrpt times.
   }
}

alias getkeys {
   window -k0l @getkeys
}

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.