VKontakte.DJ
forum traveling
 

Celestial Software

...better by design

Home Support SSH Client Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Keyboard Mapping the current date. (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Keyboard Mapping the current date.
#2568
Keyboard Mapping the current date. 6 Years, 10 Months ago  
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.
jeffj@brashers.com (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#2569
Re:Keyboard Mapping the current date. 6 Years, 10 Months ago  
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.


Code:


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

bpence (Admin)
Admin
Posts: 1328
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
Go to top