Orgins Posted August 24, 2007 Share Posted August 24, 2007 (edited) 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 August 24, 2007 by Orgins I'm a newbie.Sorry if I don't reposed to your replays very fast. Link to comment Share on other sites More sharing options...
Zedna Posted August 24, 2007 Share Posted August 24, 2007 Look at this $Key1 = Random(1,5) ConsoleWrite($Key1 & @LF) $Key1 = Random(1,5,1) ConsoleWrite($Key1 & @LF) Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Orgins Posted August 24, 2007 Author Share Posted August 24, 2007 (edited) 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 August 24, 2007 by Orgins I'm a newbie.Sorry if I don't reposed to your replays very fast. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now