Hey y'all!
I have found a freeware DLL for disabling/enabling the Windows key! (and it does more). You can download it on http://chorus.inav.net/~bjackson/WKKRedst.zip
Now I know I can call a DLL, but I don't have a clue on how I should call the exact function.
The docs say this:
Can someone shine a light on this, coz I am out of ideas. Especially on parameter passing using pokeInt and createBank. I could eventually turn it into a blitzBasic command set:
SetWindowsKey 0 ;off
SetWindowsKey 1 ;on
Thank you.
UPDATE: The maker of this proggy explained me the above are hexidecimal values and they act as flags. I should pass an int.
But, no succes...:
I have found a freeware DLL for disabling/enabling the Windows key! (and it does more). You can download it on http://chorus.inav.net/~bjackson/WKKRedst.zip
Now I know I can call a DLL, but I don't have a clue on how I should call the exact function.
The docs say this:
KILL_WINKEY = 0x0001; // Disable the Windows Key KILL_CTRLESC = 0x0002; // Disable the Ctrl+Esc key combination KILL_COMBOS = 0x0004; // Disable all WinKey combinations like WinKey+E // for Explorer and WinKey+F for Find KILL_CONTEXT = 0x0008; // Disable the context menu key KILL_SYSKEYS = 0x0010; // Disable all system keys including the Windows // Key and all WinKey combinations, Ctrl+Alt+Del, // Alt+Tab, Ctrl+Esc and Alt+Esc. This option // does not work on Windows NT. Passing 0 (zero) to the Kill function re-enables all keys that were disabled. Calling convention: I have provided DLLs with __stdcall, __cdecl and __fastcall calling conventions. Depending on the programming language and/or compiler you are using, you can use the DLL with the appropriate type. The DLLs are otherwise identical.
Can someone shine a light on this, coz I am out of ideas. Especially on parameter passing using pokeInt and createBank. I could eventually turn it into a blitzBasic command set:
SetWindowsKey 0 ;off
SetWindowsKey 1 ;on
Thank you.
UPDATE: The maker of this proggy explained me the above are hexidecimal values and they act as flags. I should pass an int.
But, no succes...:
inBank=CreateBank(4) PokeInt inBank,0,0001 result=CallDLL( "userlibs\WKeyKill.dll","Kill",inBank ) FreeBank inBank While Not KeyHit(1) Wend End