View Single Post
Old 03-19-2021, 01:14 AM
FabriceCarboni FabriceCarboni is offline
Registered User
Join Date: Feb 2021
Location: Belgium
Posts: 10
how can I get the prompt??

Hello, I have created a python script that allows me to automatically create a banner on my switch depending on the prompt, so I use the command "crt.Screen.Get(45,1,45,32)" 45,1 and 45,32 are the rows and columns when I can find the prompt of the switch but I have a problem whith that.
These values depend on the size of my screen. If I use my CRT on my laptop in 13inch these values are no longer true, because my screen is smaller and so my prompt is lower.
how can I get my text back without having to base myself on the line number and column.
Thanks for your help.
Reply With Quote