function DialogAddButtonWithHotkeyBJ takes dialog whichDialog, string buttonText, integer hotkey returns button
set bj_lastCreatedButton = DialogAddButton(whichDialog, buttonText,hotkey)
return bj_lastCreatedButton
endfunction
native GetLocalizedHotkey takes string source returns integer