Page 1 of 1
debutant evenement onClick
Posted: 05 Sep 2020, 09:50
by logost
Bonjour je voudrais remplacer le clic gauche par une lettre (prenons la lettre "a" par exemple), je suppose qu'il faut cree une condition si "clic gauche" alors le script appuie sur "a".
Mais je ne comprend absolument pas comment mettre une condition sur un clic.
Deuxième solution ce serait de mettre en pause/reprendre le script avec le "clic gauche".
Si quelqu'un peut m'aider s'il vous plait.
Re: debutant evenement onClick
Posted: 05 Sep 2020, 14:10
by eureka
From the English chapter.
Unless I am mistaken I believe that Key Condition does not recognise mouse left click action.
I understand that you wish to use mouse left click to type a character (I cannot imagine why)..
Here using Ubuntu (Linux) I can invoke another tool - AutoKey - which can in turn
(on pressing a hot key) launch an Actiona script in a tool chain. I would try writing a python script which imports subprocess and then can run commands.
using actexec yourscript.ascr in subprocess after mouse left click is recognised as hot key.
But note that you might not need Actiona for some scripts written in python.
There might be a much easier way but that is all I can think of.
Re: debutant evenement onClick
Posted: 10 Sep 2020, 16:39
by Pirlouis
Bonjour eureka,
A quoi ressemble ton scénario ?
Re: debutant evenement onClick
Posted: 11 Sep 2020, 13:34
by eureka
Windows ou Linux?
Si Linux utilise Autokey.
Si Windows utilise AutoHotKey.
Je suis sous Ubuntu (Linux).