https://www.17buddies.rocks/index.html

17's Buddies Maps HL1 Maps HL2 Wads Plan des Maps
17 Buddies
Only for stats

Welcome Guest ( Log In | Register )

 
New
Problème Commande Batch
profounet*
post 14/03/2007 - 11:05:21 |   Post #1
+Reply

Group: Member
Posts: 473
Joined: 22/01/2004

fr 


Tout dabord, bonjour !

Je suis bloqué sur un problème de programmation d'un batch, que je vous explique c-dessous :

Tous les matins, à 7H, je dois executer un .exe jusque la, ca va ----> je planifie une tache, qui execute un .bat, qui execute le .exe (voir la suite!)
Mais, dans cet .exe, on me demande de saisir 2 fois la touche "y"
Je voudrais donc que mon .bat execute cet .exe, ET qu'il saisisse automatiquement 2 fois la touche "y"

Si quelqu'un à quelques commandes magiques, je suis preneur

Merci, restant à disposition pour toute autre renseignement (IMG:http://forum.17buddies.rocks/style_emoticons/default/icon_razz.gif)
Post PM
Website
Go to the top of the page
Star Du$t
post 14/03/2007 - 11:22:33 |   Post #2
+Reply

Group: Moderator
Posts: 10 801
Joined: 12/04/2004

fr 


Tu peux pas voir plutôt le code de ton .exe pour qu'il ne te demande pas de confirmation ? (IMG:http://forum.17buddies.rocks/style_emoticons/default/biggrin.gif)
Post PM
Go to the top of the page
profounet*
post 14/03/2007 - 11:42:51 |   Post #3
+Reply

Group: Member
Posts: 473
Joined: 22/01/2004

fr 


non :o , c'est un fichier qui ne vient pas de moi, puis l'exe est programmé en expect pour pas que les mots de passe soient en clair (je ne peux surtout pas le modifier)
Post PM
Website
Go to the top of the page
Controversy
post 14/03/2007 - 11:45:52 |   Post #4
+Reply

Group: 17 Buddies
Posts: 11 368
Joined: 30/12/2003

fr 
Team:
Moches (Flyff)


j'avais cheché un script y'a qq temps qui permettait de simuler l'appui d'une touche en dos, mais j'avais jamais trouvé (IMG:http://forum.17buddies.rocks/style_emoticons/default/icon_decu.gif) (çà se trouve c'est le meme but : simuler les touches et prendre un café peinard pendant ce temps au lieu d'attendre betement devant le pc (IMG:http://forum.17buddies.rocks/style_emoticons/default/icon_ane.gif) )


je sais pas si il existe une telle commande en dos, par contre il est p'etre possible d'appeler une fonction vb, et utiliser la fonction Sendkeys
Post PM
Website
Go to the top of the page
Chapo
post 14/03/2007 - 13:37:24 |   Post #5
+Reply

Group: 17 Buddies
Posts: 18 534
Joined: 27/12/2003

fr 

Team:
Dev. 17b


T'as essayé ça:

http://www.commentcamarche.net/forum/affic...ui-d-une-touche

?
Post PM
Website
Go to the top of the page
profounet*
post 14/03/2007 - 17:32:35 |   Post #6
+Reply

Group: Member
Posts: 473
Joined: 22/01/2004

fr 


non, j'essaye ca demain matin, je te tiens au courant (IMG:http://forum.17buddies.rocks/style_emoticons/default/felicitation.gif)
Post PM
Website
Go to the top of the page
profounet*
post 15/03/2007 - 07:45:34 |   Post #7
+Reply

Group: Member
Posts: 473
Joined: 22/01/2004

fr 


Ca marche pas, même son exemple marche pas :o
Cette commande attend un nombre derrière, pas une lettre, qui vérifie la condition en fonction d'un return code (help if, Mr DOS explique ca)

Je suis de plus en plus convaincu qu'il n'y a pas de solution sous Ms Dos (IMG:http://forum.17buddies.rocks/style_emoticons/default/icon_neutral.gif)
Post PM
Website
Go to the top of the page
neomaclane
post 16/03/2007 - 20:18:55 |   Post #8
+Reply

Group: Member
Posts: 413
Joined: 26/02/2004

fr 
Team:
oO|MeB|Oo


Salut prof !!

Essaye ça défois que ça puisse t'aider

source clubic AutoIT

This post has been edited by neomaclane: 16/03/2007 - 23:55:50
Post PM
Website
Go to the top of the page
Star Du$t
post 16/03/2007 - 23:46:03 |   Post #9
+Reply

Group: Moderator
Posts: 10 801
Joined: 12/04/2004

fr 


Ah ouais, pas mal ton truc Neo ! (IMG:http://forum.17buddies.rocks/style_emoticons/default/felicitation.gif)
Post PM
Go to the top of the page
neomaclane
post 16/03/2007 - 23:54:23 |   Post #10
+Reply

Group: Member
Posts: 413
Joined: 26/02/2004

fr 
Team:
oO|MeB|Oo


Moi j'y suis pour rien c'est un collègue dans mon équipe (info) qui m'a donner le tuyau lol moi j'ai aucun mérite lol


merci pour lui (IMG:http://forum.17buddies.rocks/style_emoticons/default/biggrin.gif)

This post has been edited by neomaclane: 16/03/2007 - 23:55:19
Post PM
Website
Go to the top of the page
profounet*
post 17/03/2007 - 14:46:23 |   Post #11
+Reply

Group: Member
Posts: 473
Joined: 22/01/2004

fr 


J'essaye ca lundi et je vous tiens au courant
Meci à toute l'équipe neo (IMG:http://forum.17buddies.rocks/style_emoticons/default/biggrin.gif)
(IMG:http://forum.17buddies.rocks/style_emoticons/default/icon_jap.gif)
Post PM
Website
Go to the top of the page
neomaclane
post 17/03/2007 - 17:03:12 |   Post #12
+Reply

Group: Member
Posts: 413
Joined: 26/02/2004

fr 
Team:
oO|MeB|Oo


(IMG:http://forum.17buddies.rocks/style_emoticons/default/felicitation.gif)
Post PM
Website
Go to the top of the page
profounet*
post 21/03/2007 - 19:04:51 |   Post #13
+Reply

Group: Member
Posts: 473
Joined: 22/01/2004

fr 


Il est super ce truc !
J'ai passé beaucoup de temps pour comprendre comment ca marcher (la programmation, en fait, c'est pas mon truc lol) mais j'ai ma solution
Merci néo ! (IMG:http://forum.17buddies.rocks/style_emoticons/default/icon_kimouss.gif)

Pour ce que ca interresse, voici à quoi ressemble mes commandes dans le script : (ca peut surement vous faire gagner du temps !)



run ("ENABLINT.exe") -----> Execute l'executable
sleep (3000) -----> Pause de 3 sec.
Send("y") -----> Simule la saisie de la touche y
sleep (2000)
;Send("{ENTER}") -----> Saisie la touche "Entrée", mais le ';' devant indique que c'est un commentaire...
send("y")

J'ai ensuite "compilé" le script pour en faire un .exe utilisable n'importe ou (sans installer autoIT)
Voila voila, il semble y avoir énormement de possiblité (Simuler des mouvements de souris etc...), mais faut s'y pencher assez serieusement !

(IMG:http://forum.17buddies.rocks/style_emoticons/default/bye.gif)
Post PM
Website
Go to the top of the page
neomaclane
post 21/03/2007 - 19:12:46 |   Post #14
+Reply

Group: Member
Posts: 413
Joined: 26/02/2004

fr 
Team:
oO|MeB|Oo


(IMG:http://forum.17buddies.rocks/style_emoticons/default/biggrin.gif) content de t'avoir rendu service.

c'est vrai que c'est super puissant ce petit truc de rien dutout...
Post PM
Website
Go to the top of the page
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

New
 


RSS Lo-Fi Version
 
Skin © Chapo