From eff787086b96ed37a0184be24a6829e15aced73f Mon Sep 17 00:00:00 2001 From: April Ayres-Griffiths Date: Wed, 17 Apr 2019 20:18:37 +1000 Subject: [PATCH] fix click --- backup/main.pas | 4 +--- main.pas | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/backup/main.pas b/backup/main.pas index 35f1966..2e261b2 100644 --- a/backup/main.pas +++ b/backup/main.pas @@ -2731,9 +2731,7 @@ begin lastShowTime := Now(); lastFocusLostTime:=Now(); - SimpleGet( baseUrl + '/api/control/mouse/buttonstate/1' ); - Sleep(50); - SimpleGet( baseUrl + '/api/control/mouse/buttonstate/0' ); + SimpleGet( baseUrl + '/api/control/mouse/buttonclick' ); end; ReposWindow; end; diff --git a/main.pas b/main.pas index 2e261b2..95d9e91 100644 --- a/main.pas +++ b/main.pas @@ -2731,7 +2731,8 @@ begin lastShowTime := Now(); lastFocusLostTime:=Now(); - SimpleGet( baseUrl + '/api/control/mouse/buttonclick' ); + //SimpleGet( baseUrl + '/api/control/mouse/buttonclick' ); + SendKey( $e05d, 0, 1, 0 ); end; ReposWindow; end;