alttester / alttester/AltTester-Unity-SDK

PressKey does not work with Mouse0

Đang mở
#1,309 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug client project no version
Ngôn ngữ chính
C#
Star
121
Fork
24
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

When PressKey(AltKeyCode.Mouse0) command is used an error is thrown in console:

image

### Additional info
This issue was encountered in a client project, while upgrading from AltUnityTester 1.7.0 to AltTester Unity SDK 1.8.2.

It was reproduced in this action combo:

altDriver.MoveMouse(x);
altDriver.PressKey(AltKeyCode.Mouse0, wait: false);
altDriver.MoveMouse(y);

Surprisingly, in this case it doesn't throw an error:

altDriver.Click(x)
altDriver.MoveMouse(y);
Thread.Sleep(100);
altDriver.PressKey(AltKeyCode.Mouse0);

Workaround:
- Replace PressKey(Mouse0) with Click(coordinates)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.