Forum

Keyboard Mapping th...
 
Notifications
Clear all

Keyboard Mapping the current date.

0 Posts
2 Users
0 Reactions
337 Views
(@jeffjbrasherscom)
New Member
Joined: 14 years ago
Posts: 1
Topic starter  

Is there a way in Absolute Telnet to map a key that will enter in the current date? We have users who enter in transportation costs on multiple vehicles and it would be a real time saver if they didn't have to enter in the full date each time.


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

You *can* use key mapping to do this. In the key mapping dialog on Options->Properties->VToptions, choose 'add', then press the key or key combiniation (control, alt, etc) you want to remap. When asked for the mapped text, enter the following script. You can adjust the script for the date format you desire.

VBSCRIPT
Sub Main
DIM timevalue
DIM datestring
timevalue=Now
datestring=CStr(Year(timevalue))+"_"+CStr(Month(timevalue))+"_"+CStr(Day(timevalue))
Terminal.SendText datestring
End Sub

   
ReplyQuote
Share: