ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

IDEA : Universal counter for documents

(1/1)

Contro:
I would like a script for introducing seguential code in documents editable of any type.

Document code : number-year
I need an independant script for asigning codes to the document I make.
When I have the cursor over a text field, a word processor like word, notepad, wordpad, field notes on many programs, a database text field, etc , I might be able to invoke the script and write the code in that document. Just where the cursor is.
The code is formed by a sequantial number and the year : 000125-2008
Next time I invoke the script will be 000126-2008

Do you know an autoIt script doing this ?

Thanks
Excuse my language. I'm from Canary Islands

aCkRiTe:
See if this works for you... {Win+x} fires the hotkey.  HTH


--- ---#SingleInstance Force
#Persistent
#NoEnv
SendMode, Input
SetBatchLines -1
FormatTime, Year, ,yyyy
Cnt = 1

#x::
Click
Send, %Cnt%-%Year%
Cnt++
Return

This is in AHK btw...

Contro:
Return values in the way = number+yyyy

Example :

1-2008
21-2008 , etc

 ;D

compiled and running

Navigation

[0] Message Index

Go to full version