Sign in to follow this  
Followers 0
lint

no varible given for

9 posts in this topic

ugh...topic name speaks for it self?

$var = IniRead("config.ini", "spam", "spammsg", "spammsg Key Not Found")

While 1

dim ClipPut($spamMsg)

Sleep(1)

Send("^v{ENTER}")

Sleep(500)

Wend

Share this post


Link to post
Share on other sites



dim ClipPut($spamMsg)

Dim is used for defining an Variable so this is invalid.

its either:

ClipPut($spamMsg)

or

$rc = ClipPut($spamMsg)


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

It does not speak at all...

I guess you meant...

$spamMsg = IniRead("config.ini", "spam", "spammsg", "spammsg Key Not Found")
ClipPut($spamMsg)
While 1
   Sleep(500)
   Send("^v{ENTER}")
Wend

And other spamming user that uses Autoit to bother people? Wow....

Edit: ehy, JdeB. It is the second time in few seconds that we give almost the same answer... What do you think? Good or bad? :)

Edited by ezzetabi

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

thanks...but now its telling me varible is used without been declared....im new to autoit...

no not to brother people...some games u can trade in them and i wanted something to say what im trading...

Edited by lint

Share this post


Link to post
Share on other sites

i will give an different answer this time...

You have to declare the $spamMsg variable first before you can use it.

What do you want to PUT into the clipboard ??


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

nothing atm...but i can change it in the config.ini........but right now the config says kah bah gee !!!!

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

nothing atm...but i can change it in the config.ini........but right now the config says kah bah gee !!!!

<{POST_SNAPBACK}>

I think you are confused.....

You read the value from the INI into variable $var.

$var = IniRead("config.ini", "spam", "spammsg", "spammsg Key Not Found")

Then you use a different variable name in the function:

ClipPut($spamMsg)

So i guess you want:

ClipPut($var)

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

I think you are confused.....

You read the value from the INI into variable $var.

$var = IniRead("config.ini", "spam", "spammsg", "spammsg Key Not Found")

Then you use a different variable name in the function:

ClipPut($spamMsg)

So i guess you want:

ClipPut($var)

<{POST_SNAPBACK}>

yes i can be very confuzed....

thanks for helping me....i dont need help anymore..thanks again

Edited by lint

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