Jump to content
Sign in to follow this  

Part of a text string on the clipboard?

Recommended Posts


I have got an autoIT script that copies a number to the clipboard from a windows program such as 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:-


When it recieves 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:-

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.



Share this post

Link to post
Share on other sites

read it, then do a StringMid


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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.