OVH Cloud OVH Cloud

Script pour combinaison de touche

1 réponse
Avatar
Quoi ma gueulle(R) ?
Bonjour,

j'aimerai savoir comment faire pour simuler une combinaison de touche
tel que CTRL-ALT-SUP, Alt-F1, Alt-Tab.....dans un fichier VBS ?

C'est pour coller ca dans un raccourcis bureau sur un Pc distant.

merci.

1 réponse

Avatar
jbongran
Quoi ma gueulle(R) ? wrote:
Bonjour,

j'aimerai savoir comment faire pour simuler une combinaison de touche
tel que CTRL-ALT-SUP, Alt-F1, Alt-Tab.....dans un fichier VBS ?

C'est pour coller ca dans un raccourcis bureau sur un Pc distant.

merci.


Tout est dans la doc de vbscript
http://www.microsoft.com/downloads/details.aspx?FamilyIDç4494d3-c4e1-4e18-9c6c-0ea28c9a5d9d&DisplayLang=fr
Voir la méthode SendKeys
CTRL^
ALT%
SUPPR{DELETE} ou {DEL}
TAB{TAB}
ENTRÉE{ENTER} ou ~
F1{F1}
------
F1{F16}

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "^%{DEL}~"
Set WshShell = Nothing