The specific circumstances
1, I use the netease with complte patterns simulator,
2, I used the following two methods, all can't; The mouse can be moved to the corresponding position, but does not produce a valid click, but I tested the following, if the mouse is not within the game interface with complte patterns simulator, left click is effective, why not take effect within the range with complte patterns game screen, we hope you provide the following train of thought,
Method 1:
Autopy. Mouse. Move (x, y)
Autopy. Mouse. Click ()
Autopy. Mouse. Click ()
Time. Sleep (sleeptime)
Method 2:
Win32api. SetCursorPos ((x, y))
Win32api. Mouse_event (win32con MOUSEEVENTF_LEFTDOWN, x, y, 0, 0)
Win32api. Mouse_event (win32con MOUSEEVENTF_LEFTUP, x, y, 0, 0)
Montana please feel free to comment, or provide some idea, thank you
CodePudding user response:
I am so,# execution left a single bond, if need to double click the delay of a few milliseconds to click again to
Win32api. Mouse_event (win32con MOUSEEVENTF_LEFTUP | win32con. MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
CodePudding user response:
prompt window # activation
Win32gui. EnableWindow (hWnd, True)
Win32gui. SetForegroundWindow (hWnd)
Win32gui. ShowWindow (hWnd, win32con SW_SHOWNORMAL)
# wait for 3 seconds
Time. Sleep (3)
Win32api. SetCursorPos ([mx, my])
# execution left a single bond, if need to double click the delay of a few milliseconds to click again to
Win32api. Mouse_event (win32con MOUSEEVENTF_LEFTUP | win32con. MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
CodePudding user response:
Also encounter this problem, I am using autohotkey simulation mouse, hasn't been response on with complte patterns, later in a normal night,,, is a lot of advertisingCodePudding user response:
Also encounter this problem, I am using autohotkey simulation mouse, hasn't been response on with complte patterns, later in a normal night,,, is a lot of advertisingCodePudding user response:
After the update to the latest with complte patterns seems ok... Test code, 3 s hair a button ` f `` ` `
# k: :
WzClass=ahk_exe NemuPlayer. Exe
While 1
{
ControlSend,, f, % wzClass
Sleep, 3000
}
Return
` ` `
CodePudding user response:
Can use the adb connection with complte patterns simulator D: \ \ Program Files \ (x86) with complte patterns, emulator and nemu \ vmonitor \ bin directory has a adb_server exe file
The first step by adb_server port 7555 local loopback address connections
Adb_server. Exe connect 127.0.0.1:7555
The second step: use the input tap instructions
Adb_server. Exe shell input tap 500 220
X: 500
Y: 200
CodePudding user response:
I am in pycharm, as long as opened by the administrator can click in the simulator with complte patternsCodePudding user response:
7th floor, cattle