| |
|
|
| IF (22.01.11)
... KompilierenMarcaSeparación {$cleq}
cls
userMessages wm_user+1234
initMyHook()
var try$=""
var myListFrom&=create("list",0)
var myListTo&=create("list",0)
addString(myListFrom&,"HALLO WELT")
addString(myListTo&,"Klaus")
addString(myListFrom&,"KLARO")
addString(myListTo&,"Prima!")
while 1
waitInput
select uMessage
caseof wm_user+1234
if &ulParam=128
ifnot &uwParam=160
if ((&uwParam>64) and (&uwParam<91)) or (&uwParam=32)
try$=try$+chr$(&uwParam)
case ord(try$)=32 : try$=del$(try$,1,1)
case right$(try$,2)=" " : try$=del$(try$,len(try$),1)
if len(try$)
if getString$(myListFrom&,selectString(myListFrom&,-1,try$))=try$
whileLoop len(getString$(myListFrom&,getCurSel(myListFrom&)))
sendKey(0,vk_back)
wend
sendString(0,getString$(myListTo&,getCurSel(myListFrom&)))
try$=""
endif
endif
else
try$=""
endif
endif
endif
endSelect
wend
nProc initMyHook
return SetWindowsHookEx(13,procAddr(myLowLevelKeyboardHookProc),getModuleHandle(0),0)/*WH_KEYBOARD_LL*/
endProc
nProc myLowLevelKeyboardHookProc
parameters code&,wParam&,lParam&
sendMessage(hWnd,wm_user+1234,long(lParam&,0),long(lParam&,8))
return 0
=s4 href='./../../funktionsreferenzen/XProfan/ENDPROC/'>endProc
Hier se una LowLevel-Keyboard-Hook injiziert - si irgendwo " HALLO WELT" tippst Luego se " Klaus" eingefügt o. de " KLARO" se " Prima!". ... |
|
|
| |
|
|