Xshell Forum

Script Problem can't call F5

Last post: Tuesday, March 29, 2016 10:22 PM by Support, 11 reply

 
Wednesday, April 17, 2013 1:54 PM - Simon

Script Problem can't call F5

 
Dears,
I was using netterm and the F Key was:
[KEYS-GLOBUS]
112[f1]=^U^M
113[f2]=^B^M
114[f3]=^F^M
115[f4]=^E^M
116[f5]=^V^M
117[f6]=^W^M
118[f7]=^]^M
119[f8]=^M
123[f12]=^T^M

and I made to add that to the Xshell with no problem and working fine AS i specify alternative key map for F1 to F12 from Terminal --> Keyboard but how I can make script to call F5 as F5 commit some action over app load over the server AIX 6.1
I tried xsh.Screen.Send Chr(135) & xsh.Screen.Send "^V^M"
with same problem it never commit
any help Please how to use it with the script

Program Ver. : Xshell 4
Friday, April 19, 2013 2:41 AM - Andrew

Re: Script Problem can't call F5

 
If you are trying to send ctrl+v and enter, use the following lines:

xsh.Screen.Send Chr(22)
xsh.Screen.Send VbCr

This will send ctrl+v followed by enter.

Which keys are you trying to send?
Friday, April 19, 2013 5:33 AM - simon

Re: Script Problem can't call F5

 
Iam trying to send (F5) key as it should commit but F5 in my application have some code as i already add
F5= ^V^M NOT CTRL+V
Friday, April 19, 2013 6:12 AM - Support

Re: Script Problem can't call F5

 
Can you tell us the name of the application you are using and the expected action when you press F5?

Often ^V means ctrl-v and ^M means enter in UNIX.


---
Technical Support

Friday, April 19, 2013 8:54 AM - simon

Re: Script Problem can't call F5

 
the name of the application is T24 from http://www.temenos.com/products/t24/ and when we run some routines we need to make commit with F5 Key and i made it run as I need when i add the key map with that code *.tkm Terminal --> Keyboard as i told before but i can't make script call that key with that code. any help to call key F5 while i made the keymap change with what i need.
note: before i make the change it was't working but working normal with that code.
waiting your feed back
Sunday, April 21, 2013 5:51 PM - Support

Re: Script Problem can't call F5

 
Thank you for sharing the solution. I see that you have used the following command.

xsh.Screen.Send chr(22) & Chr(13) ^V & ^M



---
Technical Support
Monday, April 22, 2013 6:47 AM - simon

Re: Script Problem can't call F5

 
thanks for your help it working fine now
Tuesday, January 26, 2016 5:26 AM - Bejace Nyachhyon

Re: Script Problem can't call F5

 
Function keys for T24 Application:
Create a file with the extension *.tkm with the following content.

[FUNCKEY]
F1=^U^M
F2=^B^M
F3=^F^M
F4=^E^M
F5=^V^M
F6=^W^M
F7=^]^M
F8=^M
F12=^T^M
Thursday, March 24, 2016 7:43 AM - NISHNA

Re: Script Problem can't call F5

 
hi,

plz hlp.
i am newto xshell.

Kindly guide me on how to map the function to JBASE -- GLOBUS

F1 - Ctrl U Enter
F5 - Commint - Ctrl V enter
F2 - Move Up
F3 - Move down


thanks
Nishna
Friday, March 25, 2016 7:17 AM - zoo

Re: Script Problem can't call F5

 
Map F1~F5 in Custom Key mapping dialog with Send String type.
You know key mapping in Xshell?

In the input field, write into the field like this:

\025\n for Ctrl U Enter
commit\026\n for Commint - Ctrl V enter

For Move Up, Move down, you must find out which character or string occurs when you type the keys.

In terminal, execute a command 'cat ' or 'sed -n l'. Then press keys the value of which you want to know.

In my case,

$ cat
^[OA <= up key pressed
^[OB <= down key pressed

In Xshell, put the next string into the input field:
\033OA for ^[OA
\033OB for ^[OB

See also for ASCII control chars.

https://www.netsarang.com/extrafiles/xshell/3755/ASCII_Control_Characters

Bye.
Friday, March 25, 2016 12:22 PM - NISHNA

Re: Script Problem can't call F5

 
Hi,
thx for your help

For F2 - Q
F3 - R

When i do Custom key mapping,
Send string should be Q or [Q?

Key mapping is not working on Globus :(
Tuesday, March 29, 2016 10:22 PM - Support

Re: Script Problem can't call F5

 
You need to find the string output for the Up/Down keys not the F1/F2 keys. The Up/Down keys are what you want to map. The F1/F2 keys are what you want to map them to.

Can you send us a picture of the output after executing the cat command and hitting the up/down keys?

Technical Support

Like us on Facebook
Follow us on Twitter
Visit our blog Blog