Jump to content

Iniread with a random key?


 Share

Recommended Posts

I'm just try to make a small useless random crap spammer. (When I hit ctrl + shift it should spam some random line in the ini file)

but I can't seem to get a random key in the iniread. I aways get the Not found default.

So any pointers?

(Don't ask about the Do until thing)

#include <Misc.au3>

$dll = DllOpen("user32.dll")

        $Key1 = Random(1,5)
        $key2 = $Key1
        $I = "Orgins"
        
Do
    While  _IsPressed("11", $dll)
         If _IsPressed("10", $dll) Then
           $var = IniRead("random.ini", "Crap", $key2, "NotFound")
           Sleep(500)
           Send("{Enter}")
           Send($var)
           Send("{Enter}")
           Sleep(1500)
        Endif
    Wend
Until $I = 1337
Edited by Orgins

I'm a newbie.Sorry if I don't reposed to your replays very fast.

Link to comment
Share on other sites

I just tried both (several times)

IniRead("random.ini", "Crap", Random(1,5), "NotFound")

and

IniRead("random.ini", "Crap", Random(1,5,1), "NotFound")

I'm still getting the Notfound.

I have the random.ini file with the [Crap] section and the keys. 1=spam crap 1

2=spam crap 2 ....ect

Edit* Nvm it worked I had a typo. Thinks

Edited by Orgins

I'm a newbie.Sorry if I don't reposed to your replays very fast.

Link to comment
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
 Share

  • Recently Browsing   0 members

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