08-24-2010, 07:38 PM
I am a newbie about QM, but I made a small function what I'd like to run as a Thread.
The Keyboard_Detector is running too.
I wanted to use 1 keyboard as a normal keyboard and the second keyboard a shortcut keyboard only, what has a global shortcut section and a section what is application dependent.
It is looks like running fine, except my left shift button is not working anymore.
I didn't test everything, maybe it has some other problem to.
( And my English far from the perfect, but I hope the source can compensate it
)
The Keyboard_Detector is running too.
I wanted to use 1 keyboard as a normal keyboard and the second keyboard a shortcut keyboard only, what has a global shortcut section and a section what is application dependent.
rep
wait 0 KF
SendMessage g_ri.hwnd 0 0 0 ;; Shift+arrows are not working without this
if(g_ri.keyboard_id=g_rir.k[1]) ;; It is for keyboard 2 only
sel g_ri.vk ;; Global shortcuts
case '1': act "Total Commander" ; err ;; activate "TC" window, if it is running
case '2': act "UEStudio '09" ; err ;; activate "Ultraedit" window, if it is running
case '3': act "MPLAB IDE" ; err ;; activate "Mplab" window, if it is running
case else
ifa("Total Commander") ;; Total commander
sel g_ri.vk
case VK_HOME: key b ;; test
ifa("UEStudio '09")
sel g_ri.vk
case VK_DOWN: key F2 ;; Prev mark
case VK_UP: key AF2 ;; Next mark
case VK_RIGHT: key AD ;; Next file
case VK_LEFT: key AU ;; Prev file
else ;; All other keyboards
key (g_ri.vk) ;; Sends out what it received
It is looks like running fine, except my left shift button is not working anymore.
I didn't test everything, maybe it has some other problem to.
( And my English far from the perfect, but I hope the source can compensate it
