Jump to content

Recommended Posts

Posted

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!

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...