begin process at 2012 05 28 11:09:37
  Trouver un code source :
 
dans
 
Accueil > Forum > 

Archive ASP & ASP.NET

 > 

Archives ASP & ASP.NET

 > 

Débutants

 > 

Programme pour piloter un logiciel


Derniers messages déposésPoser une question dans le forum ou lancer une discussion

Programme pour piloter un logiciel

jeudi 15 avril 2004 à 01:30:30 | Programme pour piloter un logiciel

prefab_sprout


Bjr,

Je suis un peu novice dans le monde obscur mais fascinant de la programmation. Aussi je souhaiterais savoir s'il existe un programme, logiciel o uidéalement un bout de code permettant de "piloter" un logiciel c-ad- lui faire exécuter une séquence d'actions correpondant à une séquence de touches claviers ...
Merci de votre aide.

Prefab Sprout
jeudi 15 avril 2004 à 15:46:13 | Re : Programme pour piloter un logiciel

Bud

Un truc du genre:

'File: defrag.vbs
'
'This script launches defrag and sends keys to the UI in order to automate the defrag
'process.

set WshShell = CreateObject("WScript.Shell")

'Launch Defrag from the command line and wait for a second
WshShell.Run "dfrg.msc"
WScript.Sleep 1000

'Wait until the application has loaded - Check every second
While WshShell.AppActivate("Disk Defragmenter") = FALSE
wscript.sleep 1000
Wend

'Bring the application to the foreground
WshShell.AppActivate "Disk Defragmenter"
WScript.Sleep 200

'Send an ALT-A key to bring down the degrag menu
WshShell.SendKeys "%A"
WScript.Sleep 200

'Send a D to start the defrag
WshShell.SendKeys "D"

'Wait until the defrag is completed - Check for window every 5 seconds
While WshShell.AppActivate("Defragmentation Complete") = FALSE
wscript.sleep 5000
Wend

'Bring the msgbox to the foreground
WshShell.AppActivate "Defragmentation Complete"
WScript.Sleep 200

'Send a tab key to move the focus from View Report button to the Close Button
WshShell.Sendkeys "{TAB}"
Wscript.Sleep 500

'Send key to Close the Defragmentation Complete window
WshShell.Sendkeys "{ENTER}"
Wscript.Sleep 500


'Send a tab key to move the focus to disk list
WshShell.Sendkeys "{TAB}"
Wscript.Sleep 500

'Send a down arrow to select next drive
WshShell.Sendkeys "{DOWN}"
Wscript.Sleep 500

'Send an ALT-A key to bring down the degrag menu
WshShell.SendKeys "%A"
WScript.Sleep 200

'Send a D to start the defrag
WshShell.SendKeys "D"

'Wait until the defrag is completed - Check for window every 5 seconds
While WshShell.AppActivate("Defragmentation Complete") = FALSE
wscript.sleep 5000
Wend

'Bring the msgbox to the foreground
WshShell.AppActivate "Defragmentation Complete"
WScript.Sleep 200

'Send a tab key to move the focus from View Report button to the Close Button
WshShell.Sendkeys "{TAB}"
Wscript.Sleep 500

'Send key to Close the Defragmentation Complete window
WshShell.Sendkeys "{ENTER}"
Wscript.Sleep 500


'Send and ALT-F4 to Close the Defrag program
WshShell.Sendkeys "%{F4}"


Cette discussion est classée dans : programme, logiciel, piloter, séquence


Répondre à ce message

Sujets en rapport avec ce message

VB et internet [ par Michèle ] Bonjour Peux-tu me dire s'il est possible d'inclure et d'utiliser un programme VB dans un site internet,ce programme repose sur une base Access .Me Vendre un logiciel ASP [ par jb59 ] Bonjour,je viens de créer un logiciel en ASP et je souhaiterai levendre par Internet.Etant un particulier, j'aimerai savoir si je peux percevoirl'arge Comment lancer un Programme Windows d'une page ASP ?? [ par Pyro ] SltComment lancer un Programme Windows tel que Wordpad, notepad, Calculatrice, netscape,... d'une page ASP en cliquant sur un lien ??Merci ! bouton_click [ par Michèle ] Bonjour.J'ai créé un programme avec visual basic ce programme repose sur une base de données Access.1)Peut-on le convertire sur interdev?2)Dans interd Recherche Testeur pour Mon Nouveau Chat [ par Scarabee ] Bonjour,Le programme ChatReseauLocal est une premiere version Béta : c'est à dire encore en phase de developpement. Il doit permettre de "chater" (dia Recherche Béta Testeur pour mon Chat [ par Scarabee ] Bonjour,Le programme ChatReseauLocal est une premiere version Béta : c'est à dire encore en phase de developpement. Il doit permettre de "chater" (dia Execution de programme [ par Pascal ] Est-il possible d'executer un .exe sur le serveur a partir d'une page ASP ?PASCAL Execution de programme [ par Pascal ] Est-il possible d'executer un .exe sur le serveur a partir d'une page ASP ?PASCAL ASPexec.dll [ par darktaupe ] J'essai d'exécuter un programme a partir d'une page ASP en utilisant le code suivant :Set Executor = Server.CreateObject("ASPExec.Execute")Executor.Ap HEEEEEEEEEEEEELLLLLLPPPP !!!!!!!!!!!! [ par dtp ] J'essai d'exécuter un programme a partir d'une page ASP en utilisant le code suivant :Set Executor = Server.CreateObject("ASPExec.Execute")Executor.Ap


Nos sponsors


Sondage...

Comparez les prix

CalendriCode

Mai 2012
LMMJVSD
 123456
78910111213
14151617181920
21222324252627
28293031   

Consulter la suite du CalendriCode

A découvrir



 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 1,747 sec (3)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales