Forum

Keyboard mapping (P...
 
Notifications
Clear all

Keyboard mapping (Printscreen command)

0 Posts
2 Users
0 Reactions
322 Views
(@abhassan)
New Member
Joined: 8 years ago
Posts: 2
Topic starter  

I need help mapping printscreen command in a function Key


   
ReplyQuote
(@bpence)
Member Admin
Joined: 1 year ago
Posts: 1375
 

I think you can do this using a combination of keyboard mapping and scripting.

1. go to the Options->Properties->VTOptions diag

2. Click the "edit keymap" button.
3. On the key mapping dialog, click "add".
4. You'll be prompted for a key combination to remap. Click any key or key combination that you want to use to perform the script (F7 for example). F7 will now be remapped.
5. Now, you're prompted for the text to map F7 to. In previous versions of Absolute, you could only enter a text string here to send to the host when F7 is pressed. In Absolute 7 and above, you can enter a script, but be sure to enter the first line as the text "VBSCRIPT" This tells Absolute that the remainder of the text is a script to execute... The script would look like this.....

VBSCRIPT
Sub Main
Terminal.PrintScreen
end sub

Click Ok
Click Ok
Click OK

Now, when you hit F7, you get a screen print.

Voila!

I hope this helps. Let me know.


   
ReplyQuote
(@abhassan)
New Member
Joined: 8 years ago
Posts: 2
Topic starter  

I followed your instructions but I'm the error messages below when I press F7

Keyboard mapping script error

"(null)" (-2147467259 on line 2 column 1: (null)

Here are the contents of the keyboard map for F7

VBSCRIPT
Sub Main
Terminal.PrintScreen
end sub

Thanks


   
ReplyQuote
(@bpence)
Member Admin
Joined: 1 year ago
Posts: 1375
 

Exactly what version of absolute and what version of windows are you using?


   
ReplyQuote
Share: