Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

paste timestamp?


  • Please log in to reply
14 replies to this topic
drewsimm
  • Members
  • 1 posts
  • Last active: Nov 15 2008 01:15 AM
  • Joined: 15 Nov 2008
I would like to be able to paste the date, time, and my initials wherever I am on the computer by simply clicking 'alt' 'q'. Can anyone please help me make this happen? ex...... when I hit alt q, whether in MSWord, MSExcel, or any other program, it automatically pastes 11/14/08 8:14pm aws-

Can someone please help me?
Thanks,
Andy

jaco0646
  • Moderators
  • 3165 posts
  • Last active: Apr 01 2014 01:46 AM
  • Joined: 07 Oct 2006
!q::

FormatTime, T, %A_Now%, M/dd/yy h:mmtt

SendInput, %T% aws

return


  • Guests
  • Last active:
  • Joined: --
jaco need your help instead I want text before the timestamp,

!q::
SendInput, %T% aws
FormatTime, T, %A_Now%, M/dd/yy h:mmtt
retun

but didn't work

aws 00:00 instead of 00:00 aws

please help me with the code

SoLong&Thx4AllTheFish
  • Members
  • 4999 posts
  • Last active:
  • Joined: 27 May 2007
!q::

FormatTime, T, %A_Now%, M/dd/yy h:mmtt

SendInput, aws %T% 

return
:?:

  • Guests
  • Last active:
  • Joined: --
oh never mind I got. I'm so silly at times hehe

  • Guests
  • Last active:
  • Joined: --
thanks HUGO that worked as well.

  • Guests
  • Last active:
  • Joined: --
Hugo mind helping me out

instead of using time from my computer it will as soon as I press hotkey it at the beginning of the task it will the time will start ticking and when I hit alt q it will show time elapsed.

HOTKEY tick 00:00 (not shown)
interval
HOTKEY (alt q show 00:00 elapsed time) 01:06
interval
HOTKEY (alt q show 00:00 elapsed time) 03:01
interval
HOTKEY (alt q show 00:00 elapsed time) 05:24
interval

to track from beginning to end how long it takes to do things

sinkfaze
  • Moderators
  • 6365 posts
  • Last active:
  • Joined: 18 Mar 2008
!x::Start := A_TickCount



!q::

Finish := A_TickCount

MsgBox % Floor((Finish - Start) / 60000) " minutes and "  Floor(Mod(Finish - Start,60000) / 1000) " seconds have elapsed."

return


  • Guests
  • Last active:
  • Joined: --
sink thanks for your attention to this matter however I need it inputted as timestamp not msgbox also need to retain that text part "aws" like below. Thanks in advance.

aws 00:00
interval
aws 01:06
interval
aws 03:01
interval
aws 05:24
interval

vahju
  • Members
  • 337 posts
  • Last active: Sep 02 2014 01:42 PM
  • Joined: 17 Feb 2008
Change

MsgBox % Floor((Finish - Start) / 60000) " minutes and " Floor(Mod(Finish - Start,60000) / 1000) " seconds have elapsed."

To

Send % "aws " Floor((Finish - Start) / 60000) ":" Floor(Mod(Finish - Start,60000) / 1000)

Not tested.

  • Guests
  • Last active:
  • Joined: --
Oh wow it's getting close, actually I need it like this format aws [00]. Timestamp enclosed in square bracket and mm:ss. I tried to tweak it to add in the bracket but won't work. The mm:ss part no idea how to get there.

sinkfaze
  • Moderators
  • 6365 posts
  • Last active:
  • Joined: 18 Mar 2008
Close vahju, but it doesn't accomodate the leading zeroes. I think this one will work, although a little long:

!x::Start := A_TickCount 

!q:: 
Finish := A_TickCount
if (Floor((Finish - Start) / 60000) < 10)
  Min := "0" . Floor((Finish - Start) / 60000)
else Min := Floor((Finish - Start) / 60000)
if (Floor(Mod(Finish - Start,60000) / 1000) < 10)
 Sec := "0" . Floor(Mod(Finish - Start,60000) / 1000)
else
 Sec := Floor(Mod(Finish - Start,60000) / 1000)
Send % "aws [" Min ":" Sec "]"
return


  • Guests
  • Last active:
  • Joined: --
Oh wow it works sinkfaze please just one more tweak if I can sorry I just mentioned. I do need space right after the last bracket

aws [00]<space here please>

Thank you much.
Thank you too vahju and Hugo.

sinkfaze
  • Moderators
  • 6365 posts
  • Last active:
  • Joined: 18 Mar 2008
Send % "aws [" Min ":" Sec "] "


  • Guests
  • Last active:
  • Joined: --
Oh lol it's obvious I don't understand the code. I'm just glad there's community to help others out. Kisses sinkfaze lol.