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
PROBLEME EN resource Script (.rs) (visual c++) [ par elboras ]
PROBLEME EN resource Script (.rs) Salut, j'ai un problême avec VISUAL C++ Je créé un nouveau fichié et je clique sur TOOLS , APP STUDIO . Ensuite quan
Comment détourner la touche entrée ? [ par Manson ]
'lut,Comment détourner la touche entrée d'une zone de texte en Visual C ?Thanx
envoie de mail kand clic sur une application .... [ par gijo ]
je debute en c++ et j aimerais creer un programme permettant de recevoir un mail au moment où quelqu' un clic sur une application déterminé .... j esp
[BC++]getch() kbhit() Y EN A PAS UNE AUTRE?? [ par idk ]
J'ai un probleme! existe t'il une fonction qui dit si une touche du clavier et pressé et en meme tmps qui prenne le code de cette touche?Un peu pres c
detection automatique de peripherique [ par bidule ]
J'ai un lecteur de carte puce connecté au port COM de mon pc.Comment faire pour que mon programme C (ou C++) detecte automatiquement l'insertion de l
detection automatique de peripherique [ par bidule ]
J'ai un lecteur de carte puce connecté au port COM de mon pc.Comment faire pour que mon programme C (ou C++) detecte automatiquement l'insertion de l
Intercepter la touche ESC [ par mindark ]
BonjourVoila, j'ai un programme qui execute une boucle d'environ 5 mins. Et je voudrais que cette boucle soit executee plusieurs fois, jusqu'a ce que
gestion du clavier [ par Myts ]
SalutJe programme sous TC++ (turbo c++) sous dos.Et j'ai un probleme concernant la gestion du clavier.Mon jeux, prochainement sur ce site, doit effect
clavier : La touche Windows et la touche alt [ par bily ]
Vegeta :-)Salut,je voudrais savoir comment a l'aide d'un boutton bloquer et debloquer la touche wndows en esperant que son raccourci "ctrl+echap" soie
IMPORTANT CLAVIER WINDOWS BLOQUER [ par bily ]
Vegeta :-)Salut,je voudrais savoir comment a l'aide d'un boutton bloquer et debloquer la touche wndows en esperant que son raccourci "ctrl+echap" soie
|
Derniers Blogs
L'INTERFACE NATURELLE DE WINDOWS PHONE 7 SERIESL'INTERFACE NATURELLE DE WINDOWS PHONE 7 SERIES par odewit
La tendance est aux interfaces naturelles (NUI), et le keynote de Bill Buxton au MIX l'a bien souligné.
La charte graphique et ergonomique de Windows Phone 7 a donc été entièrement repensée en vue d'obtenir un maximum d'efficacité sur ce point. En re...
Cliquez pour lire la suite de l'article par odewit COMMENT MAPPER UNE VUE SQL SUR UNE COLLECTION DE COMPLEX TYPE?COMMENT MAPPER UNE VUE SQL SUR UNE COLLECTION DE COMPLEX TYPE? par Matthieu MEZIL
Avec EF, les vues doivent être mappées sur des entity types. Le problème c'est que les entity types doivent avoir une clé. Avec EF, nous avons les complex type qui n'ont pas de clé mais les vues ne peuvent pas être mappées dessus. Avec EF4, il est possibl...
Cliquez pour lire la suite de l'article par Matthieu MEZIL [WF4] UN BINDING ACTIVITY/ACTIVITYDESIGNER QUI PASSE MAL?[WF4] UN BINDING ACTIVITY/ACTIVITYDESIGNER QUI PASSE MAL? par JeremyJeanson
Certain d'entre vous on peut être vécu cette situation embarrassante après quelques temps passer avec WF4 : Au début avec mon " ActivityDesigner" , tout allait bien. Et puis un jour j'ai au des problèmes de " Binding" . Alors nous sommes allé sur le site ...
Cliquez pour lire la suite de l'article par JeremyJeanson
Forum
TRADAIONTRADAION par shootangel
Cliquez pour lire la suite par shootangel
Logiciels
Academy System (10.9.4.0)ACADEMY SYSTEM (10.9.4.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System Xilisoft Convertisseur Vidéo Ultimate (5.1.39.0305)XILISOFT CONVERTISSEUR VIDéO ULTIMATE (5.1.39.0305)Xilisoft Convertisseur Vidéo Ultimate est un outil puissant de conversion vidéo, facile à utilise... Cliquez pour télécharger Xilisoft Convertisseur Vidéo Ultimate Xilisoft DVD Ripper Ultimate (5.0.64.0304)XILISOFT DVD RIPPER ULTIMATE (5.0.64.0304)Xilisoft DVD Ripper Ultimate est un logiciel excellent pour copier et convertir DVD vers presque ... Cliquez pour télécharger Xilisoft DVD Ripper Ultimate Rigs of Rods (63.3)RIGS OF RODS (63.3)c'est un jeu de multi-simulation camions,autobus voitures, avions, bateaux, hélicoptère avec défo... Cliquez pour télécharger Rigs of Rods
|