Jump to content
Sign in to follow this  
NS5

Read Clipboard and look for a match from a file

Recommended Posts

NS5

Hi there guys, I would like to ask for some help on working with "Array" here is the sample code. This can read clipboard and search for the string on a file. Now my problem is...what if clipboard has this and needs to be search all at once from a INI file and replies it back to the visitor.

Clipboard has:

Item1 = $10

Item2 = $11

Item3 = $11

Item4 = $14

Item5 = $16

Item6 = $123

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Code goes here

Dim $A, $INI

Local $NAME1, $I

$bak = ClipGet()

ClipPut($bak & "")

$item= ClipGet()

$I = 1

While (Asc(StringMid($NAME1, $I, 1)) <> 10)

If $item= "item1" Then

$INIFILE = "Database.ini" ; INI file

$Open = FileOpen($INIFILE, 0)

$INI = FileRead($Open)

ClipPut($INI)

Sleep(100)

MouseClick("left", 766, 480, 1, 1) ;were pm window reply is

Sleep(100)

Send("^v{Enter}")

ExitLoop

Else

SendMessage(766, 480, "Order's are not on my database")

ExitLoop

EndIf

WEnd

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; End of Code

Thanks looking forward on everyones help!

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.