![]() ![]() Sendevent /dev/input/event5 3 53 3413. I used this code to test: it doesn't do a tap, it holds down without releasing sendevent /dev/input/event5 3 57 0 I round to 32768 because 32768 is a magic number, close to Int16's 32767Įdit: after Nathan's comment, it's 32767 (32768 doesn't even move the cursor) , click on the formula, then Label Options -> Category: Number, Decimal Places: 10 > Trendline Options -> Display Equation on chart Then Excel: X Y (scatter) chart, add trendline, click trendline and click big + sign -> Chart Elements -> Trendline : (tick that) and ▶, More Options. in constructor if file exist read the data get x y location and assign to location sorry for not able to understand. I collected these x coordinate points, my max X: is 1600.0 so my width is 1600.0 (8000, 390.6) Settings -> Advanced -> Input debugging -> Show pointer location for current touch data Settings -> Advanced -> Input debugging -> Show visual feedback for taps ![]() Thanks for the very precise instructions to reproduce: I'm trying to figure out how to convert the emulator screen position to the sendevent position.įor example, if you want to perform a click at x200 y200, using sendevent what the value needed? Now you can simulate a click with the code below changing XY to the position where you want to be clicked: sendevent /dev/input/event5 3 53 X & It has confirmed that clipboard has already been shared between BlueStacks & Windows. I have also tried to copy a text in BlueStacks and paste in Windows. On my emulator the input event for touch is event5 on yours it can be different, replace it according. 3 Answers Sorted by: 6 Today, I installed Clipper Plus in BlueStacks and I noticed that its already storing clips I copied in Windows. Now we are on the shell, execute a new command: getevent -p hd-adb.exe connect 127.0.0.1:X where X is the port shown in the window where you enabled the ADB.Open a cmd window and run cd C:\Program Files\BlueStacks_nxt assuming BlueStacks where installed in the default path.First enable BlueStacks 5 adb in the window: Settings -> Advanced -> Android debug bridge.It clicks somewhere around x75 y75, how this calc is done? i mean screen xy -> sendevent xy? If I send using ADB: sendevent /dev/input/event5 3 53 2000 & The code is working and the click is fired, however, I couldn't understand how to convert the position where I want to be clicked to the sendevent XY position. Where X and Y is the position that will be clicked, I'm testing it on the android emulator BlueStacks 5 which the Display Resolution set to 1920x1080. I been able to achieve it with the following command: sendevent /dev/input/event5 3 53 X & Perform a click using the sendevent command. I know about the input tap x y shell command, however, I'm trying to understand how to ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |