-
Hotkey. Registration (Tab 1.)Take the window handle ()0, F1, > register F1
Hotkey. Registration (Tab 1.)Take the window handle ()4, F1, & register alt+f1
Hotkey. Registration (Tab 1.)Take the window handle ()1, F1, > register Ctrl+F1
Hotkey. Registration (Tab 1.)Take the window handle ()2, F1, > Register, Shift+F1
Hotkey. Registration (Tab 1.)Take the window handle ()3, F1, > register shift+ctrl+f1
Hotkey. Registration (Tab 1.)Take the window handle ()5, F1, > register alt+ctrl+f1
Hotkey. Registration (Tab 1.)Take the window handle ()6, F1, > register Alt+Shift+F1
Hotkey. Registration (Tab 1.)Take the window handle ()7, F1, > register alt+ctrl+shift+f1
The following is for reading*****===
Call format: integer registration hotkey (integer window handle, integer label handle, integer function key, integer main hotkey) - extended function support library one-> hotkey function.
English name: reghotkey
Registers a system hotkey, returns a hotkey identifier, and returns 0 if it fails. This command is primary.
The name of parameter <1> is "Window Handle" and the type is "Integer (int)". Window handle.
The name of the parameter <2> is "Label Handle" and the type is "Integer (int)". The first parameter in the feedback event is the hotkey identifier and the second parameter is invalid.
The name of parameter <3> is Function Key, the type is integer (int), and the initial value is 0. It can be: 0-no function key; 1-ctrl key state; 2-shift key state; 4-Alt key state or the sum of the state values of each key.
The name of the parameter <4> is "Main Hotkey" and the type is "Integer (int)". key, you can use the key constant in the easy language.
-
Register hotkey (fetch window handle () tab 1Take the window handle ()4, F1).
-
I think you should have pressed the F1 Start button to be clicked, and F2 to the Stop button to be clicked. I made an example that you can refer to. Here we want to insert a label. ** Below:
Assemblies Window Assembly 1
Assembly variable f1, integer.
Assembly variable f2, integer.
The subroutine Startup Window is created.
F1 registration hotkey ( Launches the window. Take the window handle () tab 1Take the window handle ()0, F1).
F2 registration hotkey ( Launches the window. Take the window handle () tab 1Take the window handle ()0, F2).
Subroutine tab 1 Feedback event, integer.
Parameter Parameter one, integer.
Parameter Parameter 2, integer type.
If true (parameter one f1).
The Start button is clicked ().
If it's really over.
If true (parameter one f2).
The stop button is clicked ().
-
Load the super module.
Use the register hotkey() command.
-
Make a subprogram, call it directly, and it will naturally be simplified.
-
.Version 2
Support for the library shellex
Assemblies Window Assembly 1
Assembly variables hotkey identifier, integer type, , hotkey identifier returned by calling the registration hotkey.
The subroutine Startup Window is created.
Local variables Startup window handle, integer.
Local variable label handle, integer.
Label 1Visually false'You don't need to use tag 1, you can remove the tag handle from his visual tag 1Take the window handle ().'The window handle can be used directly as a parameter, such as Launch Window.
Take the window handle (), but to improve readability, I'll do it.
Startup Window Handle Startup window. Take the window handle () hotkey to identify the registration hotkey (start window handle, label handle, ctrl key state, key 1).'Implement.
Subroutine tab 1 Feedback event, integer.
Parameter Parameter one, integer.
Parameter Parameter 2, integer type.
End ().
-
.Version 2
Support for the library shellex
Assemblies Window Assembly 1
Assembly variables Hotkey kid, integer.
Subroutine Window 1 is created.
Hotkeykid Register hotkey (Fetch window handle () tab 1Take the window handle ()1, key 1).
Subroutine tab 1 Feedback event, integer.
Parameter Parameter one, integer.
Parameter Parameter 2, integer type.
If true (parameter one hotkey kid).
End ().
-
Note that the monitoring hotkey ( f7 key, a, ,a should be a subprogram. If you don't understand, send me a private message.
-
Yours ** is fine, try to see if other programs are taking up these 2 hotkeys.
You can see the return value of the registration hotkey() by debugging the output(), if it returns 0 it means the registration failed, if it is not 0 it means the registration hotkey was successful.
Or you can try registering other hotkeys, such as home end, etc.
-
Write the registration hotkey in the window activation event and the revocation hotkey in the deactivation event. Hope.
Agree with the upstairs statement that shelling is a good way to do it. As for this tool, you can take a look, but you need to know that it is very likely to be killed and poisoned after packing. It's not very difficult to add shelling, some of them are foolish, just do it all at once or get some sinister tricks, I'll give you an idea. >>>More
Requires a component, tab 1 a! Copy:Version 2
Support library shellexSupport library eapiAssemblies Window Assembly 1 >>>More
Stack errors are usually used because of a function called cdecl with stdcall. >>>More
Explosive takes a handle ("crossfire").
Subroutines Explosive Handle, Integer, Public, Explosive Exhaustive Window Handle, shall not be used for it. (Window handle is returned for success, -1 is returned for failure). >>>More
Write to file command depends on how to use the command Space to collect disciples.