cs_andrebernard
Messages postés404Date d'inscriptionlundi 9 juin 2003StatutMembreDernière intervention 4 septembre 2013
-
27 mai 2008 à 15:57
cs_andrebernard
Messages postés404Date d'inscriptionlundi 9 juin 2003StatutMembreDernière intervention 4 septembre 2013
-
27 mai 2008 à 16:27
Bonjour à tous
Voila je gere par AUTOMATION un emulateur IBM
Le probleme c'est que je peux avoir besoin de gerer deux sessions avec le meme emulateur, et des parametres differents.
Set System = CreateObject("EXTRA.System") ' Gets the system object
Set System = GetObject(, "EXTRA.System") ' Gets the system object
Set SessionTGC = System.ActiveSession
Shell "C:\Program Files\extra.exe " + App.Path + "\B.edp", vbNormalFocus
Set System = CreateObject("EXTRA.System") ' Gets the system object
Set System = GetObject(, "EXTRA.System") ' Gets the system object
Set SessionTGC = System.ActiveSession
SessionTGC.Screen.row = 15
SessionTGC.Screen.Col = 30
SessionTGC.Screen.SendKeys ("Coucou B")
Jusque la tout va bien, le probleme, c'est lorsque je ferme mon programme et que je le relance avec les deux emulateurs deja en route.
Comment faire pour attribuer les nouvelles sessions a chaque emulateur pour pouvoir a nouveau ecrire simultanement dedans.
En un mot comment creer les objets COM en utilsant les handles des emulateurs deja créé
Some applications allow you to activate part of a file. Add an exclamation point (!) to the end of the file name and follow it with a string that identifies the part of the file you want to activate. For information on how to create this string, see the documentation for the application that created the object.