 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Trubbleguy
Joined: 20 Jan 2007 Posts: 76 Location: Melbourne
|
Posted: Sun Dec 16, 2007 6:53 am Post subject: AutoFiller |
|
|
This Code uses its own Name to delimit into a Registration or Dialog's Field's, and then fills them automatically.
The first field can tell you what software or Registration it is for.
This totally needs no INI file or txt file, just it's self.
eg:
Winamp Registration, Joe Blogs, a6b5c4, b6a5c4, 1234, 2007.exe
It will Ignore Winamp Registration and Use Joe Blogs in the first field
then it will tab to the next field and paste a6b5c4 and continue tabbing and pasting until no more fields have data and then exit.
You get 30 seconds from the time you run it, to use CTRL+V to paste after clicking the first dialog box in the destination Gui, before it unloads.
Some Dialogs or Registrations have Auto-Tabbing input boxes.
Using a Minus sign - in place of a comma will make these work with these dialogs very well, (these type of input boxes auto-tab when full)
http://www.trubbleguy.com/regfiller.zip
the above zip contains a dummy registration Gui to test it on, as well as compiled and uncompiled autofiller.
The compiled autofiller has a Nice Bright 'Key' Icon to make it stand out as a Registration code.
| Code: |
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT/VISTA
; Author: trubbleguy@trubbleguy.com
; Script Name AutoFIller.ahk
; Script Function:
; Uses its own name to parse into a Registration or Edit box.
; break the name into tabs with commas or use - for forms that auto-tab
help=
(
YOU MUST RENAME THIS FILE FOR IT TO WORK CORRECTLY!!
Example: (Comma Delimited Name)
Big Beaver Registration,Joe Blogs,1234,4567,7890.exe
The First field is a Note for You.
The first field is always ignored eg: Big Beaver Registration
(a Comma by itself for nothing)
It will then copy Joe Blogs to the first field of your
Required destination application/Dialog
Then tab (or Auto-Tab) to the next field and paste 1234
and continue tabbing or auto-tabbing and pasting until done.
depending on whether you used commas or minus signs.
A comma is replaced with a tab
A minus is ignored and should be used in a registration that auto-tabs.
When the box is full like Mikrozoft uses in its Registration dialogs.
)
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#SingleInstance,Force
AutoTrim,On ; Recommended to remove leading and trailing spaces etc.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
iname := A_ScriptName ;get the name of the script
If iname Not Contains`,,
{
MsgBox,,HELP,%help%
goto exit
}
stringtrimright,iname,iname,4 ;remove the extension from the name
Msgbox,,Reg Filler,Click the FIRST field in the form/Registration to be filled`nThen press CTRL+V (PASTE) to fill data in the order stored within the name.`nYou have 30 Seconds before this Program exits memory,15
settimer,exit,-30000 ;set the program to unload if not used after 30 seconds
^v::
Loop, parse, iname,`,%A_Space% ;parse the name
{
If A_Index=1
Continue
If A_LoopField Contains - ;checks for auto-tab option used for MS dialogs etc.
{
Loop, parse, A_LoopField,-,%A_Space%
{
Send %A_LoopField%
Sleep 230
}
Send {tAB}
Continue
}
Send %A_LoopField%
Send {tAB}
Sleep 230
}
exit:
ExitApp
Return |
No more CUT-Paste-CUT-Paste episodes for me, just double click and Ctrl+V
Last edited by Trubbleguy on Mon Dec 17, 2007 3:17 am; edited 1 time in total |
|
| Back to top |
|
 |
HuBa
Joined: 24 Feb 2007 Posts: 172 Location: Budapest, Hungary
|
Posted: Sun Dec 16, 2007 3:27 pm Post subject: |
|
|
Nice approach.
I prefer to use a clipboard-manager that can store and paste clipboard values. It provides a menu with list of clipboards. And I don't need to use the mouse to perform clicks. |
|
| Back to top |
|
 |
Trubbleguy
Joined: 20 Jan 2007 Posts: 76 Location: Melbourne
|
Posted: Sun Dec 16, 2007 9:28 pm Post subject: does it? |
|
|
| Does your clipboard manager paste across multiple target boxes autoamatically? |
|
| Back to top |
|
 |
HuBa
Joined: 24 Feb 2007 Posts: 172 Location: Budapest, Hungary
|
Posted: Mon Dec 17, 2007 9:37 am Post subject: |
|
|
No, but I rarely need it.
If I need then I write a script for it, because then I can handle checkboxes too. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|