Jump to content

Recommended Posts

Posted

$PAS1 = IniReadSection("config.ini", "section1")
If @error Then
MsgBox(4096, "", "Error occured, probably no INI file.")
Else
For $i = 1 To $PAS1[0][0]
Sleep(5000)
Send("& $par[$i][1] & ")
Next
EndIf

Doesn't work :whistle:

Posted (edited)

Your comments don't work either...

HOW doesn't it work: Do you get an error message? Are you getting that MsgBox you have coded in?

SHOW us an example of the INI file: Actually copy and paste a sample of the INI you're working with and let us see it.

Providing us this information will help us try the script ourselves to see if we can figure out what the problem is. Any mook can post code like this...

_Totally()
For $i = 0 to 25
  _Awesome()
Next

...and then whine that it doesn't work. But we can't help them because we don't know what the _Totally() and _Awesome() functions do. Just like in your case, we can't help you because we don't know what's in your INI file. Or what errors you're getting. Perhaps you don't have the INI in the right folder? Try specifying a full path to it.

And last, whether you want the $par variable or the $PAS1 variable, this piece of code won't work.

Send("& $par[$i][1] & ")

Putting quote marks (") around that text means it will try to actually print it exactly, giving you a string of text that says & $par[$i][1] & .

Try this:

Send($par[$i][1])

In the future, remember, you have to help us, to help you.

*Edit: Typo

Edited by Saunders

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...