lolp1 Posted September 8, 2006 Share Posted September 8, 2006 (edited) Hello, I'm still trying to learn all of auto-it. How can I get this to choose at random from a list web sites I make? EG: First mouse click goes to google.com, second goes to ask.com, ect ect from a list I've made. ElseIf _IsPressed(01) Then $aUrl = "www.websitehere.com" $oIE = _IECreate($aUrl) Edited September 8, 2006 by lolp1 Link to comment Share on other sites More sharing options...
GaryFrost Posted September 8, 2006 Share Posted September 8, 2006 (edited) Have you tried using the Random function? put the list of urls in a array for example: Global $aUrls[3] = ["www.google.com", "www.autoitscript.com","www.ask.com"] $i_url = Random(0,2,1) $oIE = _IECreate($aUrls[$i_url]) Edited September 8, 2006 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
lolp1 Posted September 8, 2006 Author Share Posted September 8, 2006 I'll try this thanks. 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