Sign in to follow this  
Followers 0
locutus243

Part of a text string on the clipboard?

4 posts in this topic

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

Share this post


Link to post
Share on other sites



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)

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0