Try "{CTRL}({ENTER})" instead of "{CTRL}{ENTER}" "Sub keys" for CTRL, ALT, and SHIFT should be always enclosed in brackets. : Hello, : I just downloaded the evaluation copy of the 24x7scheduler and I have : following problem. : I'm planning to use the program to automate a number of processes that run on : mainframe. I mean : a frekwent sequence of processes that involve a : request via a 3270emulation, downloading to PC, uploading to another : session and further processing. : Manualy this takes several hours including the waittime for files being made : available and so on. : I'm using PC/3270 emulation and I can send keystrokes to the emulator : session, except the key which is not always accepted. : By default this key is defined as the CTRL key but I already redefined it to : be the {CTRL}{CR} key. : Sometimes this works, but most of the time it doesn't. (Timing?) : I'll cut&paste a part of the coding here: Dim handlea Number : Dim pida Number : Dim wina Number : WindowFind( "A - VMIS1", handlea ) : //WindowGetProcess( handlea, pida ) : //ProcessGetWindow( pida, wina ) : WindowActivate( handlea ) : SendKeys( "BE{CTRL}{ENTER}" ) : Wait( 10 ) : SendKeys( "VMIS{NUMPAD1} CLAESSEK{CTRL}{ENTER}" ) : Wait( 2 ) : .... : Any idea? : Thanks, : Karel
|