Welcome Guest.   Make a donation to an author on the site September 30, 2014, 02:56:27 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2010! Download 24 custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: IDEA : Universal counter for documents  (Read 2698 times)
Contro
Participant
*
Posts: 2,139

View Profile Give some DonationCredits to this forum member
« on: December 11, 2008, 02:19:22 PM »

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

Logged
aCkRiTe
Honorary Member
**
Posts: 21

View Profile Give some DonationCredits to this forum member
« Reply #1 on: December 11, 2008, 04:17:49 PM »

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

[copy or print]
#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...
« Last Edit: December 11, 2008, 04:19:26 PM by aCkRiTe » Logged
Contro
Participant
*
Posts: 2,139

View Profile Give some DonationCredits to this forum member
« Reply #2 on: December 12, 2008, 09:39:08 AM »

Return values in the way = number+yyyy

Example :

1-2008
21-2008 , etc

 Grin

compiled and running

Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.024s | Server load: 0.06 ]