Link to home
Start Free TrialLog in
Avatar of finkelg
finkelg

asked on

pressing ALT+<key> / CTRL+<Key> from a script

How can I emulate an ALT/CTRL + <Some key>
In a shell script,
I need this for a PPP dialer which needs pressing the alr+C at the end.
ASKER CERTIFIED SOLUTION
Avatar of bedot
bedot

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of finkelg
finkelg

ASKER

Ok Thats what i want to know:
What is the ascii for the combination of
Alt and C ? and where do you know it from ?
since9 Nov, i can post more than 3 lines: i got INTERNAL SERVER ERROR
I will try monday
1° scancodes are generated by the keyboard, then interpreted by the software of your modem, traducing scan codes received in ascii codes , sending them to the modem.
2° ALT/CTRL/SH ... are not traduced by the system;
you must found ascii sequences to tend to your modem : check the documentation of it, or connect on the server of trader, or if unsuccessfull, during using modem thru normal software: pick up sended characters with a terminal connected in electrical parallel on COM
3° finally, if this is not successfull, your question become
" what are the ascii sequences to send commands at the dialer"

I suppose commands are HAYE compatibles: you can try to send some HAYE commands to verify compatibility.
Avatar of finkelg

ASKER

I think the ALT+c is sent by localy, to may dialer.
There is no need for it to be sent via modem to the server, since the server has started allready the ppp connection.

All I need to do is tell may dialer to start using the ppp localy too, that is done by Pressing ALT+c.
If i want to emulate this key in script i would need to know its esc seq,
I am quit sure this is a common quastion since this is the case for any kppp dialer user, who tries connecting to his Internet Provider by script.
This question was awarded, but never cleared due to the JSP-500 errors of that time.  It was "stuck" against userID -1 versus the intended expert whom you awarded.  This corrects the problem and the expert will now receive these points; points verified.

Please click on your Member Profile and select "View Question History" to navigate through any open or locked questions you may have to update and finalize them.  Or if you are an EE Pro user, click the link below to select open items for your Member ID using Power Search:
https://www.experts-exchange.com/jsp/qPowerSearch.jsp.

This is the Community Support link, if help is needed, along with the link to All Topics which reflects many TAs recently added.

https://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
https://www.experts-exchange.com/jsp/zonesAll.jsp
 
Thank you,
Moondancer
Moderator @ Experts Exchange