raduking Posted August 14, 2006 Report Share Posted August 14, 2006 I'm trying to find a sollution to handle these shortcuts but didn't succeed yet...does any of you know how to do this ? Link to comment
lukevink Posted August 14, 2006 Report Share Posted August 14, 2006 all i know is that Landvermesser will know, because the finderbar add on controls any keys. Link to comment
philou Posted August 14, 2006 Report Share Posted August 14, 2006 Landvermesser (partially?) uses the AutoHotKey scripting language, which is capable of assigning hotkeys to almost everything, inlcuding overriding the default windows shortcuts.Maybe ask Chris (the Developer) how he got around the shortcuts?http://www.autohotkey.com/ Link to comment
djwilliams Posted August 14, 2006 Report Share Posted August 14, 2006 @raduking....are you trying to capture these keys to prevent RKL from disapearing when a user uses those Hot-Keys? If you just want to register it you can use the RegisterHotKey functionRegisterHotKey(hwnd, 0, 0, VK_F9); for exampleand then maybe /* Run the message loop. It will run until GetMessage() returns 0 */ while (GetMessage (&messages, NULL, 0, 0)) { /* Translate virtual-key messages into character messages */ TranslateMessage(&messages); /* Send message to WindowProcedure */ DispatchMessage(&messages); } /* The program return-value is 0 - The value that PostQuitMessage() gave */ return messages.wParam;}then....maybe something like this/* This function is called by the Windows function DispatchMessage() */LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam){ switch (message) /* handle the messages */ { case WM_DESTROY: PostQuitMessage (0); /* send a WM_QUIT to the message queue */ break; case WM_HOTKEY: SetForegroundWindow(hwnd); MessageBox(hwnd, "You pressed F9.", "Hotkey", MB_OK); /* send a WM_QUIT to the message queue */ break; default: /* for messages that we don't deal with */ return DefWindowProc (hwnd, message, wParam, lParam); } return 0;}I have no idea if this is what you are meaning Link to comment
andrew_ Posted August 25, 2006 Report Share Posted August 25, 2006 Here you are, although it's in VB the API is still the same. Give it a read and search for what you need to pull out of it.http://www.codeguru.com/vb/gen/vb_system/k...icle.php/c4829/ Link to comment
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now