Sign in to follow this  
Followers 0
Kyme

random IniRead....can be posible?

2 posts in this topic

how i can make one skript to use this

IniRead(@ScriptDir & "\data.dll", "Question", "1", "")
IniRead(@ScriptDir & "\data.dll", "Question", "1", "")
IniRead(@ScriptDir & "\data.dll", "Question", "2", "")
IniRead(@ScriptDir & "\data.dll", "Question", "3", "")
IniRead(@ScriptDir & "\data.dll", "Question", "4", "")
IniRead(@ScriptDir & "\data.dll", "Question", "5", "")

whit random

i wanna make one

InputBox("Password", IniRead(@ScriptDir & "\data.dll", "Question", "1", ""), "", "*")

and to use random IniRead for each start...

can be that posible?

tnx

Share this post


Link to post
Share on other sites



how i can make one skript to use this

IniRead(@ScriptDir & "\data.dll", "Question", "1", "")
IniRead(@ScriptDir & "\data.dll", "Question", "1", "")
IniRead(@ScriptDir & "\data.dll", "Question", "2", "")
IniRead(@ScriptDir & "\data.dll", "Question", "3", "")
IniRead(@ScriptDir & "\data.dll", "Question", "4", "")
IniRead(@ScriptDir & "\data.dll", "Question", "5", "")

whit random

i wanna make one

InputBox("Password", IniRead(@ScriptDir & "\data.dll", "Question", "1", ""), "", "*")

and to use random IniRead for each start...

can be that posible?

tnx

Look up Random() in the help file and try this:
InputBox("Password", IniRead(@ScriptDir & "\data.dll", "Question", String(Random(1, 5, 1)), ""), "", "*")

This also converts the number to a string, which AutoIt probably would have automagically done for you, but it makes the point that the value name is a string, not an integer.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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