Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hotkeys don't react
#1
Hello,

I tried something with the RegisterHotkey sample:

messages
__RegisterHotKey- t_hk
sel message
case WM_INITDIALOG
int htb=id(3 hDlg)
TCITEM ti.mask=WINAPI.TCIF_TEXT
ti.pszText="Forum"
SendMessage htb WINAPI.TCM_INSERTITEMA 0 &ti
ti.pszText="Twitter"
SendMessage htb WINAPI.TCM_INSERTITEMA 1 &ti
ti.pszText="Facebook"
SendMessage htb WINAPI.TCM_INSERTITEMA 2 &ti
ti.pszText="Opties"
SendMessage htb WINAPI.TCM_INSERTITEMA 3 &ti
t_hk.Register(hDlg 1 MOD_CONTROL|MOD_SHIFT VK_F5) ;;Ctrl+Shift+F5
t_hk.Register(hDlg 2 MOD_ALT 'Q') ;;Alt+Win+Q
t_hk.Register(hDlg 3 MOD_ALT '3') ;;ALT+3
t_hk.Register(hDlg 4 MOD_ALT '4') ;;ALT+4
t_hk.Register(hDlg 5 MOD_ALT '5') ;;ALT+5
goto g11
case WM_HOTKEY
sel wParam
case 1 mes "Ctrl+Shift+F5"
case 2 mes "Alt+Win+Q"
case 3 goto TWEET_PART1


But it seems like the combinations don't work? Only the last one gives an reaction but not what is supposed to happen? is something wrong with the way i placed it or something?
#2
Need multiple __RegisterHotKey variables, 1 for each hotkey. Or ARRAY(__RegisterHotKey).


Forum Jump:


Users browsing this thread: 1 Guest(s)