-
Requires a component, tab 1 a! Copy:Version 2
Support library shellexSupport library eapiAssemblies Window Assembly 1
Assembly variable F1 key ABCD, integer type. Subroutine Startup Window Created F1 button ABCD registration hotkey ( Startup window. Take the window handle () tab 1
Take the window handle ()0, F1).Subroutine tab 1 Feedback event, integer. Parameter Parameter one, integer.
Parameter Parameter 2, integer type. If it is true (parameter 1 F1 button ABCD) analog keys ( A key, B key, C key ) Analog key ( D key, F key , if it is really the end of remembering, I am the first one.
-
What's that game for you? Will you take the window handle of the game? If not, it's not easy to talk about the backstage.
That's it, Jia I started the goose number: 623859503, I'll help you take a look at it remotely.
-
This can be achieved with an API.
Version 2dll command postmessage, integer,"user32", "postmessagea", to deliver a message to the message queue of the specified window.
The parameter hwnd, integer, , is the handle of the window in which the message is received.
parameter wmsg, integer, , message identifier.
The parameter wparam, integer, , is determined by the message.
The parameter lparam, integer type, , is determined by the message;
Copy and paste the above API into the dll command.
Then write it in the assembly.
Version 2 judges the first of the cycle (i=0).
postmessage (to press the window handle of a, 256, a, 0).
Judge the end of the cycle ().
Pure hand lookout plus points.
-
Key message (handle, f1).
Version 2 Assembly Window Assembly 1
The assembly variable eb5ht, an integer.
The assembly variable hetrthb6y5j, an integer. The subroutine Keystroke Message, which is public, sends a keystroke message (no return value) to the window of the specified window handle
Parameter Window handle, integer, , window handle to receive messages. Parameter key**, integer, key of the key**.
Parameter Status, Integer, Nullable, Nullable: Button (3+4) 1 Button 2 Function Key Method (Press + Release) 3 Press 4 Release
EB5HT key**.
hetrthb6y5j state.
Key message handling (window handles).
Subroutines Key message processing, logical.
Parameter hwnd, integer type.
If true (hwnd ≠ 0).
Judgment Start (hetrthb6y5j 1) delivers the message (hwnd, 258, eb5ht, 0).Judgment (hetrthb6y5j 2) Deliver message (hwnd, 260, eb5ht, 0) Deliver message (hwnd, 261, eb5ht, 0).
Judgment (hetrthb6y5j 3) delivers the message (hwnd, 256, eb5ht, 0).Judgment (hetrthb6y5j 4) delivers the message (hwnd, 257, eb5ht, 0).Default Deliver message (hwnd, 256, eb5ht, 0) Deliver message (hwnd, 257, eb5ht, 0).
End of judgment. Return (true).
If it's really over.
Return (False).
Version 2dll command Deliver Message, ,"postmessagea", Public, sends a message to the specified window handle.
Parameter h, parameter m
Parameter pParameter p
-
Is the problem clearly described?。。。
-
With the module Key Messages and Keyboard Messages, most games will block these kinds of messages.
It is recommended to use the desert, which can be bound to the window to implement the background.
-
If the game is not blocked, you need to take the handle and send a keystroke message! With the Super Module!
-
If the background operation is to deliver the window message handle, if you write this kind of thing, you must take it. However, I don't know if the game you're writing about blocks these parameters. It is recommended to use the module's Message Delivery feature to see!
-
A label is also required.
Version 2 supports the library shellex
Support library eapi
Assemblies Window Assembly 1
Assembly variables, hotkeys, integers.
The subroutine Startup Window is created.
Hotkeys Registration hotkeys ( Launch window. Take the window handle () tab 1Take the window handle ()0, F8).
Subroutine button 1 is clicked.
If (button 1.)Title Start")
Clock 1Clock cycle 5000
Button 1Title Stop".
Otherwise button 1Title Start")
Clock 1Clock cycle 0
If it ends. Subroutine Clock 1 cycle event.
Analog key ( F6 key, , subroutine tab 1 feedback event, integer type.
Parameter Parameter one, integer.
Parameter Parameter 2, integer type.
If true (parameter one hotkey).
Button 1 is clicked ().
-
Can't be used because of the reputation leakage for other people's games with API to harmonize your analog button function. Solution: Easy language driver keyboard simulation (In fact, the driver-level simulation is to directly simulate the operation of your mouse sensitive virtual standard and keyboard, and naturally it cannot be harmonious.)
There are different ways to simulate the buttons in the super module, and you can also try them out one by one
-
Call format: No return value Simulates mouse clicks (integer x coordinates, integer y coordinates, integer click type) The application interface supports library-system processing.
Product name: simulatemouse
Simulate mouse clicks. This command is primary.
parameter lt; The name of 1 is "X coordinate" and the type is "integer type (int)".
parameter lt; The name of 2 is "Y coordinate" and the type is "Integer (INT)".
parameter lt; The name of 3 is "Click Type" and the type is "Integer Type (int)", which can be omitted. The type of simulated mouse click can be one of the following constant values: 0, interface constant.
Left-click; 1. Interface constants. Left-click and double-click; 2. Interface constants. Right-click; 3. Interface constants.
Right-click and double-click. OS Requirements: Windows
Call format: No return value Analog key (general-purpose virtual key-value 1, general-purpose virtual key-value 2, general-purpose virtual key-value 3) The application interface supports library-system processing.
Product Name: simulatekey
Emulate keyboard input. This command is primary.
parameter lt; The name of 1 is "Virtual Key-1" and its type is "General-purpose (all)".
parameter lt; The name of 2 is "virtual key-value 2" and the type is "general-purpose (all)", which can be omitted.
parameter lt; The name of 3 is "virtual key-value 3" and the type is "general-purpose (all)", which can be omitted.
OS Requirements: Windows
-
Open the doll module first. Then add the monitoring hotkey. Then get a subprogram one. Two. Third class. Monitor the keystrokes you need. And then & subprogram 1. You can run the subprogram when you press the key.。。
-
With the desert plug-in, first find the window in the button.