-
The hotkey is the shortcut key, which is the combination of several special cavity sales keys on the keyboard to complete a specific task. For example, del ctrl alt can open Windows Task Manager under XP. If there is a conflict between the hotkeys, the solution is to change one of the hotkeys.
Hotkeys can greatly improve work efficiency.
A global hotkey is to press any key.
-
The shortcut is available when the software window is active and inactive. The global hotkey is also available when that window is inactive. There are generally three keys for global hotkeys.
-
opera
You can set the hotkeys in the preferences. As for global hotkeys, you can create a new one on the desktop or in the Start menu.
opera shortcuts, set global shortcuts in the shortcuts.
-
The following example uses a label and a button, debugging through, and the required functions can be added by yourself, right!
Version 2 supports the library shellex
Support for library specs
Assemblies Window Assembly 1The assembly variable bis, integer type, , registered to the standard stool Qingzhongzhi, the label feedback parameter of the Zao Mountain is this, each button has a fixed logo, with which you can determine what to press.
The subroutine Startup Window is created.
bis registration hotkey (fetch window handle () label 1Take the window handle ()0, key 1).
Judgment Start (bis 0).
Infobox ("Registration hotkey failed!") ", 0, "hint").
Default. Infobox ("Registration hotkey successful, please switch to other programs by pressing button 1!") ", 0, "hint").
Debug output (BIS).
End of judgment. Subroutine tab 1 Feedback event, integer.
Parameter Parameter one, integer.
Parameter Parameter 2, integer type.
Debug output (parameter 1).
Button 1Title Stop".
Return to () default.
End of judgment. Debug output (1).
Judgment Start (button 1.)Title Stop".
Return to the return of the sun ().
Default. Judgment End Debug Output (2).
Subroutine button 1 is clicked.
Button 1Title Stop".
Return to () default.
End of judgment. Judgment Start (button 1.)Title Stop".
Return to () default.
End of judgment. The subroutine Startup Window will be destroyed.
Debug Output (bis) undo hotkey (take window handle (bis).
Subroutine Startup Window Whether it can be closed, logical.
Debug Output (bis) undo hotkey (take window handle (bis).
-
private declare function getasynckeystate lib "user32" alias "getasynckeystate" (byval vkey as long) as integer
Timer loop detection is fine.
If the return value of vbkeyf2 is not zero, it means that the key is pressed.
-
Defining global hotkeys doesn't have to be so complicated.
Make a hook function that detects f2 and call** is done.
-
You can assign the modifiers and uvirtkey1 variables when registering the hotkey to other values.
You can use the keydown event of the textbox control to get the keycode value and shift value, and replace the uvirtkey1 and modifiers values.
It's worth noting that the shift values in keydown are in reverse order to modifiers.
In keydown, alt is 4, ctrl is 2, and shift is 1
The modifiers value in RegisterHotKey is 1 for alt, 2 for ctrl, and 4 for shift.
vbkeyq is actually a constant value, and its value is the keycode value obtained with the keydown event.
-
I think it's easier for you to change Winamp's global hotkeys.
-
Hello, QQ - System Menu - System Settings - Hotkey Settings - Modify or use the hotkey as "None", OK.
Welcome to adopt, thank you!
It depends on what modifier you have.
I use this one. >>>More
En, lotion is a general term, which includes: toner, softening lotion, cleanser, toning water, makeup pre-water, astringent water and so on. >>>More
The first time is that the first and second apostles are combined into one. >>>More
When you use ADSL to surf the Internet, set the dial-up connection to only me, don't choose anyone to use, this is only when you go online, the Internet password will be saved, and your child will not know. >>>More