home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,233 of 2,978   
   Marco van de Voort to Ante Smolcic   
   Re: How can I change/remap keys from ins   
   14 Jan 05 10:22:39   
   
   XPost: comp.lang.pascal.delphi.misc, comp.lang.pascal.misc, borl   
   nd.public.delphi.winapi   
   XPost: comp.os.ms-windows.programmer.win32   
   From: marcov@stack.nl   
      
   ["Followup-To:" header set to comp.lang.pascal.misc.]   
   On 2005-01-14, Ante Smolcic  wrote:   
   > In article ,   
   > thaddy@replacethiswithmyfirstname.com says...   
   >> You can not use messages, because you would fall back into the hook thus   
   >> creating an endless loop.   
   >> You should map the whole keyboard and xlat them into YOUR keyboad lay   
   >> out ( do it just once when the hook is installed) and look up from the hook.   
   >> The thins you need are the win32 api GetKeyboardstate and   
   >> SetKeyboardstate. These use very easy to handle arrays so it isnt   
   >> difficult at all   
   >   
   > So if I want to create a global key re-mapping, what do you suggest when   
   > to call these functions? On each KeyboardProc invocation?   
      
   Could you please _significantly_ reduce the amount of NGs ? Thank you.   
      
   Specially since Delphi is offtopic in c.l.p.borland, and c.l.p.misc   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca