[Common]
Description=ʾԼд16ֵ
HotKeyStart=119
HotKeyStop=122
Enabled=0
RunOnce=1

[Script]
//˽űʾԼдűʵ16ֵ
//ȴһհ׵NotePad.exe֤Notepadǰ棬
//ȻF8۲н
Main:
  //NumҪΪ16ʽֵԼ޸
  set Num=999
  //set Num=$1AF34ade
  call OutputHex
EndMain

const First0=48
const FirstA=65
var Num=0
var NumB=0
var i=0
var j=0
OutputHex:
  set KeyInterval=1
  Key List $
  set NumB=Num
  set i=0
  set j=0
  while NumB<>0
    set j=j+1
    set NumB=Trunc(NumB/16)
  EndWhile
  set NumB=Num
  for j
    set i=Trunc(NumB/(16^(j-1)))
    if i<10
      Key Press First0+i 1
    else
      Key Press FirstA+i-10 1
    endif
    set NumB=NumB-i*(16^(j-1))
    set j=j-1
  EndFor
EndSub
