VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   Scripting (https://forums.vandyke.com/forumdisplay.php?f=14)
-   -   Sendkeys Works? (https://forums.vandyke.com/showthread.php?t=13497)

zunzun 04-12-2019 02:32 AM

Sendkeys Works?
 
Hi,this is my first message and I need your help.

I need to break with CTRL+P but I don't get it. I have tried with:

crt.Screen.send chr(30)& "P"
crt.Screen.SendKeys "^P"

Any idea?

Thanks a lot.

jpellegrini 04-12-2019 02:02 PM

Hi zunzun,

Do you need to break in a script, or are you attempting to do so from the terminal while connected to a host?

If you are attempting to break while connected to a host, you can press ctrl+p and you should be able to break as desired.

If you are attempting this from a script, your second option (crt.Screen.SendKeys "^p") should work. If it is not, what happens when this line is executed?


All times are GMT -6. The time now is 01:36 AM.