Accueil > > > AUTOCLIC - AUTOMATISATION DE WINDOWS
AUTOCLIC - AUTOMATISATION DE WINDOWS
Information sur la source
Description
Ce programme permet d'automatiser le fonctionnement d'un programme selon un script. Il bouge la souris, clique et envoie des touches à votre place. Fonctions abordées : - connection directe à une DLL - tray icon (création et changement dynamique) - menu sur tray icon - programme tournant en tâche de fond - déplacement et clic de la souris - simulation de touches clavier - langage de script Il faut copier une dll (autoclicdll.dll, contenue dans le zip avec les sources) qui permet de lancer et d'arréter le script par les touches Shift-F11 et Shift-F12.
Source
- Liste des commandes et des touches :
-
- COMMANDS : (not case sensitive)
- -----------
- REM text : remark, ignore the line
- STOP : stop the script
- REPEAT x : repeat the script x time (default = never end)
- MOUSEMOVE x y : move the mouse pointer to (x,y) position of the screen
- MOUSEMOVEREL x y : move the mouse pointer, relative to the actual position
- MOUSEMOVEWIN x y : move the mouse pointer to (x,y) position of the current window
- MOUSECLIC x : clic left mouse button and wait x milliseconds (default is zero)
- MOUSECLICRIGHT x : clic right mouse button and wait x milliseconds (default is zero)
- WAIT x : wait x milli-seconds (x can be a variable)
- KEYSEND text x : send "text" to the keyboard (see below for special keys) and wait x milliseconds (default is zero)
- WINDOWALLFIND text : find all windows that begins with "text" (done only one time)
- WINDOWNEXT : select next window (found by WINDOWALLFIND)
- WINDOWACTIVATE : activate current window (after WINDOWNEXT)
- IMAGELOAD name x : load one bmp picture from "name" (ie c:\image.bmp) and save it with number x (done only one time)
- LABEL name : define a label (use by GOTO command)
- GOTO name : jump to the label
- INCLUDE text : include another script, text is the name of the script (ie c:\test2.txt), maximum 5 level of include
-
- DECLARE var type value : declare the variable "var" with type (num=numeric, string=string) initialize with "value",
- if value is empty the variable is initialize with 0 or "", (done only one time)
- SET var x : set the value of variable "var" to "x"
- ADD var x : add "x" to numeric variable "var"
- RANDOM var x y : set the value of variable "var" to a random value between x and y (include)
- "var" must be a numeric variable
- IFEQGOTO var value label: if variable "var" equal "value" then goto "label"
- IFLTGOTO var value label: if variable "var" is lower than "value" then goto "label"
- IFGTGOTO var value label: if variable "var" is greater than "value" then goto "label"
- IFERRORGOTO label : if error then goto "label" (see commands that generate error)
-
-
- "x" or "y" can be an integer variable or a number
- "value" can be a string, a variable or a number
-
-
- SPECIAL KEYS : (case sensitive)
- --------------
- %% = %
- %_ or %SPACE% = space
- %= or %ENTER% = return (enter)
- %s or %SHIFT% = shift
- %c or %CONTROL% = control
- %a or %ALT% = alt
- %e or %ESC% = esc
- %! or %DELETE% = del
- %u or %UP% = up arrow
- %d or %DOWN% = down arrow
- %l or %LEFT% = left arrow
- %r or %RIGHT% = right arrow
- %b or %BACKSPACE% = backspace
- %t or %TAB% = tab
- %p or %PAGEUP% = prior (page up)
- %n or %PAGEDOWN% = next (page down)
- %* or %END% = end
- %h or %HOME% = home
- %1 to %0 or %F1% to %F0% = F1 to F10
- %, or %F11% = F11
- %; or %F12% = F12
-
-
-
- EXEMPLE DE SCRIPT:
- -------------------
- mousemove 585 465
- mouseclic
- wait 100
- mousemove 710 505
- mouseclic
- wait 1500
- keysend %a%l
- wait 2000
Liste des commandes et des touches :
COMMANDS : (not case sensitive)
-----------
REM text : remark, ignore the line
STOP : stop the script
REPEAT x : repeat the script x time (default = never end)
MOUSEMOVE x y : move the mouse pointer to (x,y) position of the screen
MOUSEMOVEREL x y : move the mouse pointer, relative to the actual position
MOUSEMOVEWIN x y : move the mouse pointer to (x,y) position of the current window
MOUSECLIC x : clic left mouse button and wait x milliseconds (default is zero)
MOUSECLICRIGHT x : clic right mouse button and wait x milliseconds (default is zero)
WAIT x : wait x milli-seconds (x can be a variable)
KEYSEND text x : send "text" to the keyboard (see below for special keys) and wait x milliseconds (default is zero)
WINDOWALLFIND text : find all windows that begins with "text" (done only one time)
WINDOWNEXT : select next window (found by WINDOWALLFIND)
WINDOWACTIVATE : activate current window (after WINDOWNEXT)
IMAGELOAD name x : load one bmp picture from "name" (ie c:\image.bmp) and save it with number x (done only one time)
LABEL name : define a label (use by GOTO command)
GOTO name : jump to the label
INCLUDE text : include another script, text is the name of the script (ie c:\test2.txt), maximum 5 level of include
DECLARE var type value : declare the variable "var" with type (num=numeric, string=string) initialize with "value",
if value is empty the variable is initialize with 0 or "", (done only one time)
SET var x : set the value of variable "var" to "x"
ADD var x : add "x" to numeric variable "var"
RANDOM var x y : set the value of variable "var" to a random value between x and y (include)
"var" must be a numeric variable
IFEQGOTO var value label: if variable "var" equal "value" then goto "label"
IFLTGOTO var value label: if variable "var" is lower than "value" then goto "label"
IFGTGOTO var value label: if variable "var" is greater than "value" then goto "label"
IFERRORGOTO label : if error then goto "label" (see commands that generate error)
"x" or "y" can be an integer variable or a number
"value" can be a string, a variable or a number
SPECIAL KEYS : (case sensitive)
--------------
%% = %
%_ or %SPACE% = space
%= or %ENTER% = return (enter)
%s or %SHIFT% = shift
%c or %CONTROL% = control
%a or %ALT% = alt
%e or %ESC% = esc
%! or %DELETE% = del
%u or %UP% = up arrow
%d or %DOWN% = down arrow
%l or %LEFT% = left arrow
%r or %RIGHT% = right arrow
%b or %BACKSPACE% = backspace
%t or %TAB% = tab
%p or %PAGEUP% = prior (page up)
%n or %PAGEDOWN% = next (page down)
%* or %END% = end
%h or %HOME% = home
%1 to %0 or %F1% to %F0% = F1 to F10
%, or %F11% = F11
%; or %F12% = F12
EXEMPLE DE SCRIPT:
-------------------
mousemove 585 465
mouseclic
wait 100
mousemove 710 505
mouseclic
wait 1500
keysend %a%l
wait 2000
Conclusion
Le script boucle sans fin. A la dernière ligne, on recommence la première ligne.
Une icone (tray icon) à coté de l'horloge permet de charger un script, de le lancer, de l'arréter, de le modifier et de quitter. Le script démarre deux secondes après le lancement. Le script s'arrête lorsque la souris est sur la zone des icônes windows (tray icon) à coté de l'horloge. (ou lorsqu'on l'arrête !)
Un exécutable est présent dans le zip (ex_).
Historique
- 25 juillet 2007 23:14:22 :
- ortographe
- 25 juillet 2007 23:17:28 :
- exemple de script
- 26 juillet 2007 19:03:13 :
- rien
- 22 octobre 2009 22:29:32 :
- version 2.0 :
-------------
- add NOLOG command
- add NOSECUREZONE command
- add wait parameter in MOUSECLIC and MOUSECLICRIGHT command
- add wait parameter in KEYSEND command
- add "space key" in KEYSEND command
- add special words in keysend (ie : %ENTER% for enter key) see readme file
- add INCLUDE command
- no limit the size of the script (unlimited number of line)
- add REPEAT command
- run script with SHIFT-F11 and stop with SHIFT-F12 (need autoclicdll.dll)
- add STOP command
- add log file : "autoclic.log"
- display current script line when error
- add IMAGELOAD command
- add LABEL command
- add GOTO command
- icon tray display bug solve
- ask for a script if none when start script
- add DECLARE command for variable declaration
- add SET command
- WAIT command accept variable as parameter
- add ADD command
- add RANDOM command
- add IFEQGOTO command
- add IFLTGOTO command
- add IFGTGOTO command
- 22 octobre 2009 22:30:43 :
- Ajout image
- 22 octobre 2009 22:32:32 :
- Il ne veux pas pendre mon image :-(
Sources du même auteur
Sources de la même categorie
Commentaires et avis
Discussions en rapport avec ce code source dans le forum
Script enregistrement Automatique via WinRar [ par romain60112 ]
Bonjour a tous, Je souhaiterais réaliser (ou utiliser) un script qui permet de faire des archives automatiques via Winrar des mes données stockées su
[BAR]Besoin d'aide pour un script AutoIT [ par tazmoki ]
Désolé je ne savais pas trop ou poster. j'ai télécharger Autoit pour pouvoir faire des macro sur mon clavier, mais j'ai un problème avec un script.
selection automatique d'un port série [ par flozzzzz ]
bonjour, je suis stagiaire dans un bureau d'étude et je dois faire des modifications / améliorations d'un programme déjà existant. Je n'ai pas vraime
ecriture avec clavier alphanumerique en c [ par marmouraa ]
Slt tout le monde, je veux écrire un programme ne c qui tape des lettres avec un clavier matriciel 12 touches j'ai une méthode qui est la suivante: si
Programme SDL qui s'arrête subitement au clic... [ par Rflx ]
Bonjour, Je programme actuellement, pour mes études, un jeu labyrinthe en C++ avec interface graphique gérée avec SDL. Parfois, je peux jouer sans
Simulation click sous vista [ par azertyYohan ]
Bonjour, Voila mon problème, Je travaille en C en mode console, je souhaite réaliser un raccourci clavier qui clique sur une icone d'un jeu en réseau
Question sur Getch() et retour chariot [ par KutaJack ]
Bonjour Je suis débutant en C++ et j'utilise getch() avec kbhit() suivit d'un switch pour pouvoir faire tel ou tel action en fonction de la touche ap
détection d'une touche clavier sans arret [ par benorde33 ]
Bonjour, Je suis en train de développer un programme en C (console Windows) permettant d'activer des sorties et réceptionner l'état de plusieurs entr
[ Win32 ] Contrôle Tab - Focus au clic-droit [ par lectpe ]
Bonjour. Je voudrais savoir comment donner le focus à l'élément d'un tabcontrol au clic-droit de la souris avec l'API Win32. Cordialement. Greg.
|
Derniers Blogs
[FRAMEWORK 4] LES TASKS ET LE THREAD UI[FRAMEWORK 4] LES TASKS ET LE THREAD UI par fathi
Je viens de passer quelques temps au TechDay's et j'ai pu voir pas mal de session intéressante. Par contre une chose m'a un peu étonné lors de certaines de ces sessions qui abordaient les améliorations du framework .NET (donc le 4.5) : en gros, bea...
Cliquez pour lire la suite de l'article par fathi WORKFLOW FOUNDATION 3 A UN PIED DANS LA TOMBEWORKFLOW FOUNDATION 3 A UN PIED DANS LA TOMBE par JeremyJeanson
Depuis déjà un an, je conseille vivement les utilisateurs de Workflow Foundation 3 à migrer vers la version 4. L'information qui va suivre ne devrait donc pas trop prendre au dépourvu les personnes qui m'ont suivi. Je profite de ce poste, pour faire le re...
Cliquez pour lire la suite de l'article par JeremyJeanson TECHDAYS PARIS 2012 : NOUVELLES TENDANCES DU POSTE DE TRAVAIL - BRING YOUR OWN PCTECHDAYS PARIS 2012 : NOUVELLES TENDANCES DU POSTE DE TRAVAIL - BRING YOUR OWN PC par ROMELARD Fabrice
Speakers: Thierry Rapatout, Antoine Petit et Xavier Trebbia Cette session entre dans le cadre des RDV Décideurs des TechDays 2012, elle est liée à la consumérisation de l'IT et la mise en place du "DeskTop as a Service" dans de plus en ...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice TECHDAYS PARIS 2012 : SYSTEM CENTER SERVICE MANAGER 2012 VUE D'ENSEMBLETECHDAYS PARIS 2012 : SYSTEM CENTER SERVICE MANAGER 2012 VUE D'ENSEMBLE par ROMELARD Fabrice
Speakers: Julien Marechal, Gautier Confiant, Sébastien MEYER La session débute par le positionnement de la solution System Center par rapport aux concepts d'organisation ITIL. Le portail du catalogue de se...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice TECHDAYS PARIS 2012 : PLEINIèRE SECOND JOURTECHDAYS PARIS 2012 : PLEINIèRE SECOND JOUR par ROMELARD Fabrice
Après une première journée dédiée aux développeurs, cette seconde journée est dédiée au monde des entreprises et de ses applications. Ainsi, cette pleinière est dédiée à faire un 360 de l'évolution des applications Business aux demandes ac...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice
Logiciels
Academy System (17.2.1.0)ACADEMY SYSTEM (17.2.1.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System Easy-Planning (1.0.0.1)EASY-PLANNING (1.0.0.1)Basé sur les mêmes principes que MyPlanning, Easy-Planning permet de créer des plannings sous la ... Cliquez pour télécharger Easy-Planning COLLECTOR PLUS (3.00B)COLLECTOR PLUS (3.00B)COLLECTOR PLUS version 3.00B est un logiciel utilisant une base de données alimentée par :
- L... Cliquez pour télécharger COLLECTOR PLUS PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V7.4)PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V7.4)PONAMEDIA TV DEVIENS HELLLOOO FLASH
LA TV SUR VOTRE ORDINATEUR.
Toute une plateforme Multi... Cliquez pour télécharger PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO LettresFaciles 2011 (8.0.0.1)LETTRESFACILES 2011 (8.0.0.1)LettresFaciles est un logiciel facilitant la création et la rédaction de lettres types.
Son inte... Cliquez pour télécharger LettresFaciles 2011
|