PC Review


Reply
Thread Tools Rate Thread

Capture Date/Time for Pasting into Application

 
 
magmike
Guest
Posts: n/a
 
      12th Aug 2011
I type date and time all day long into various programs to mark notes.
Is there a way in Windows XP or a tool that anyone knows of where I
would be able to use keystrokes (i.e. CTRL+SHIFT+D) to automatically
insert the date and time into the active application at the cursors
location?

Thanks in advance for your help,

magmike
 
Reply With Quote
 
 
 
 
Patok
Guest
Posts: n/a
 
      12th Aug 2011
magmike wrote:
> I type date and time all day long into various programs to mark notes.
> Is there a way in Windows XP or a tool that anyone knows of where I
> would be able to use keystrokes (i.e. CTRL+SHIFT+D) to automatically
> insert the date and time into the active application at the cursors
> location?


I don't know about a tool, but you can use a small VBscript to do
it. Create a text file, paste the following script into it, and save
it as a .vbs file, for example DaTime.vbs

Dim MyTime
Dim MyDate
MyTime = Time
MyDate = Date
Dim Wsh
Set Wsh = Wscript.CreateObject("Wscript.Shell")
Wsh.SendKeys Date&" "&Time


Then, create a shortcut to the script file *on the desktop* (that's
important). Edit the properties of the shortcut, and into the field
for "Shortcut key" press the key combination you want (i.e.
CTRL+SHIFT+D) or whatever. Press OK. That's it.

Now, whenever you press the key combination, it will paste the date
and time into the current active window.

Like this: 2011-08-12 00:12:45 (I just pressed it while editing the
message.)

If you don't like the format, or want to add other stuff to the
string, just edit what SendKeys sends. In my script, it is the date, a
space, and the time, in the current system format. Of course you'll
need to have VBscript installed, but I think it would be highly
unusual if you didn't.

--
You'd be crazy to e-mail me with the crazy. But leave the div alone.
*
Whoever bans a book, shall be banished. Whoever burns a book, shall burn.
 
Reply With Quote
 
Patok
Guest
Posts: n/a
 
      12th Aug 2011
Patok wrote:
> magmike wrote:
>> I type date and time all day long into various programs to mark notes.
>> Is there a way in Windows XP or a tool that anyone knows of where I
>> would be able to use keystrokes (i.e. CTRL+SHIFT+D) to automatically
>> insert the date and time into the active application at the cursors
>> location?

>
> I don't know about a tool, but you can use a small VBscript to do it.
> Create a text file, paste the following script into it, and save it as a
> .vbs file, for example DaTime.vbs
>
> Dim MyTime
> Dim MyDate
> MyTime = Time
> MyDate = Date
> Dim Wsh
> Set Wsh = Wscript.CreateObject("Wscript.Shell")
> Wsh.SendKeys Date&" "&Time
>
>
> Then, create a shortcut to the script file *on the desktop* (that's
> important). Edit the properties of the shortcut, and into the field for
> "Shortcut key" press the key combination you want (i.e. CTRL+SHIFT+D) or
> whatever. Press OK. That's it.
>
> Now, whenever you press the key combination, it will paste the date and
> time into the current active window.
>
> Like this: 2011-08-12 00:12:45 (I just pressed it while editing the
> message.)
>
> If you don't like the format, or want to add other stuff to the string,
> just edit what SendKeys sends. In my script, it is the date, a space,
> and the time, in the current system format. Of course you'll need to
> have VBscript installed, but I think it would be highly unusual if you
> didn't.


I mean you need Windows Scripting host; the file is wscript.exe in
system32. In any event, it would be unusual to not have it.

--
You'd be crazy to e-mail me with the crazy. But leave the div alone.
*
Whoever bans a book, shall be banished. Whoever burns a book, shall burn.
 
Reply With Quote
 
dadiOH
Guest
Posts: n/a
 
      12th Aug 2011
magmike wrote:
> I type date and time all day long into various programs to mark notes.
> Is there a way in Windows XP or a tool that anyone knows of where I
> would be able to use keystrokes (i.e. CTRL+SHIFT+D) to automatically
> insert the date and time into the active application at the cursors
> location?
>
> Thanks in advance for your help,
>
> magmike


Type it once

Copy it

Paste it where you want in the future

Will work until you next copy/cut something or shut down the computer. If
you want it to remain indefinitely, get one of the clipboard apps that lets
you keep multiple clips. Here is one such...
http://www.cybermatrix.com/clipboard_magic.html

--

dadiOH
____________________________

dadiOH's dandies v3.06...
....a help file of info about MP3s, recording from
LP/cassette and tips & tricks on this and that.
Get it at http://mysite.verizon.net/xico



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to capture last used date/time K90267000 via AccessMonster.com Microsoft Access Getting Started 8 22nd Aug 2007 05:11 PM
How do I capture just the date from date/time field in an SQL Dat =?Utf-8?B?ZWh1ZHNvbg==?= Microsoft Access VBA Modules 1 16th Feb 2006 02:14 PM
How do I capture just the date from date/time field in an SQL Dat. =?Utf-8?B?ZWh1ZHNvbg==?= Microsoft Access Queries 1 15th Feb 2006 04:14 PM
Capture of Date/Time Stamp funkychateau Windows XP MovieMaker 1 1st Nov 2005 08:45 PM
Capture with date/time Bluetooth Windows XP MovieMaker 4 15th Jan 2004 12:33 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:55 PM.