 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
mikeriia1 Guest
|
Posted: Tue Dec 29, 2009 1:26 am Post subject: temporary copy and pasting of a pin number |
|
|
I need to take real estate pin numbers example: 15-15-414-027-0000
and remove the dashes and then paste them into fields, two digits, two digits, three digits, three digits, and four digits. it's wearing my fingers down the way I'm doing it now -- by hand. My thinking is you create some kind of temporary file and it stores the number temporarily, removing the dashes, and then pasting them in the order described above into the fields.
But this one is way beyond me, as is most of this stuff. Any help would be appreciated |
|
| Back to top |
|
 |
Z_Gecko Guest
|
Posted: Tue Dec 29, 2009 1:43 am Post subject: |
|
|
check the help for:
InputBox
SubStr()
Send |
|
| Back to top |
|
 |
None
Joined: 28 Nov 2009 Posts: 3086
|
Posted: Tue Dec 29, 2009 1:45 am Post subject: |
|
|
| Code: | Var=15-15-414-027-0000
StringMid, P1, Var, 1 , 2
StringMid, P2, Var, 4 , 2
StringMid, P3, Var, 7 , 3
StringMid, P4, Var, 11 , 3
StringMid, P5, Var, 15
Send %P1%{Tab}%P2%{Tab}%P3%{Tab}%P4%{Tab}%P5% | Not that hard to divide or paste but you need to decide how you want to get the numbers into the script, and how you want to trigger it.
FileRead
InputBox
Clipboard
HotKeys/Stings |
|
| Back to top |
|
 |
poo_noo
Joined: 08 Dec 2006 Posts: 248 Location: Sydney Australia
|
Posted: Tue Dec 29, 2009 2:32 am Post subject: |
|
|
Here is a simple example to split a single line into its parts, assuming the delimiter is a '-'
| Code: | theVar=15-15-414-027-0000
Loop, Parse, theVar, -
{
msgbox This is field %A_Index% containing the value of %A_LoopField%
}
Msgbox Outta loop
|
_________________ Paul O |
|
| 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
|