AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

temporary copy and pasting of a pin number

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
mikeriia1
Guest





PostPosted: Tue Dec 29, 2009 1:26 am    Post subject: temporary copy and pasting of a pin number Reply with quote

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





PostPosted: Tue Dec 29, 2009 1:43 am    Post subject: Reply with quote

check the help for:
InputBox
SubStr()
Send
Back to top
None



Joined: 28 Nov 2009
Posts: 3086

PostPosted: Tue Dec 29, 2009 1:45 am    Post subject: Reply with quote

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
View user's profile Send private message
poo_noo



Joined: 08 Dec 2006
Posts: 248
Location: Sydney Australia

PostPosted: Tue Dec 29, 2009 2:32 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group