locutus243 Posted July 25, 2005 Posted July 25, 2005 I have got an autoIT script that copies a number to the clipboard from a windows program such as 12.84.003.54 and then when it recieves a particular number from the windows program then the next part of the script kicks in. For example my script scrolls through the following numbers copying each one as it goes:- 12.345.56.58 13.242.54.66 13.222.34.31 When it recieves 13.242.54.66 to its clipboard then the next part of the program is set off. However is there any way to do this with the program recognising a certain length of the text string. So if I have the following numbers:- 11.24.002.08 11.24.001.08 11.23.002.08 I want my script to only read the first 9 characters from the clipboard when it copies them so I can differentiate between the top two numbers. Is there any way to do this??? Thankyou for your help, I hope my explanation wasn't 2 long winded...if so then tell me and I'll try to explain it a little easier. Thanks Mark
GaryFrost Posted July 25, 2005 Posted July 25, 2005 read it, then do a StringMid SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
seandisanti Posted July 25, 2005 Posted July 25, 2005 read it, then do a StringMid<{POST_SNAPBACK}>Actually, just because of the specification that it's the FIRST 9, it may be easier to use StringLeft(ClipGet(),9)
GaryFrost Posted July 25, 2005 Posted July 25, 2005 Was trying to get'em to work for it SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now