Tout est à peu près dans le titre, je cherche un moyen de créer une macro sous linux. Je souhaiterais quelque chose de complet comme supermacro ou autohotkey (sous windows uniquement). J'ai déjà essayé xmacro qui certes, fonctionne très bien mais ne propose pas par exemple de recherche des pixel ou une partie d'image de screen. J'avais trouvé sikuli aussi mais impossible de le compiler à cause de opencv-old.
J'ai fouiné partout, je me demande si c'est possible.
Je ne suis pas contre la programmation en shell du moment qu'il y a de la doc quelque part
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: /tmp/tmplib/libVisionProxy.so: libml.so.2.1: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1928)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)
at java.lang.Runtime.load0(Runtime.java:792)
at java.lang.System.load(System.java:1059)
at com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:44)
at org.sikuli.script.TextRecognizer.(TextRecognizer.java:24)
at org.sikuli.ide.NamingPane.getFilenameFromImage(NamingPane.java:55)
at org.sikuli.ide.CaptureButton.update(CaptureButton.java:149)
at org.sikuli.script.CapturePrompt.notifyObserver(CapturePrompt.java:44)
at org.sikuli.script.CapturePrompt$1.mouseReleased(CapturePrompt.java:197)
at java.awt.Component.processMouseEvent(Component.java:6505)
at java.awt.Component.processEvent(Component.java:6270
)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Window.processEvent(Window.java:2016)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Window.dispatchEventImpl(Window.java:2713)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:707)
at java.awt.EventQueue.access$000(EventQueue.java:101)
at java.awt.EventQueue$3.run(EventQueue.java:666)
at java.awt.EventQueue$3.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:680)
at java.awt.EventQueue$4.run(EventQueue.java:678)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPr
ivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:677)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
@cdemoulins
Oui mais comment? existe-t-il de la doc quelque part pour scripter? je veux bien apprendre à le faire mais il me faut un peu d'aide pour commencer
Pour le moment j'ai besoin des éléments suivants : position souris, clic gauche, double clic, glisser déposer, chercher image pour positionner curseur puis clic, attendre un temps donné entre 2 événements, taper texte et faire une boucle d'une série d'événements.
ça dépend, ça peut être pour un site web, un logiciel de musique, j'ai plusieurs projets. De toute façon si c'est juste du positionnement et des clics etc ça ne change pas selon ce qui est affiché à l'écran n'est-ce pas?