The GW-Scripting list is a discussion list for information regarding the development and use of Window-Eyes scripts. Any subscriber of the GW-Scripting list has the ability to post on-topic messages.
From:
Tylers ScriptingSubject:
Re: RandomizerDate:
Sat, Apr 3, 2010 10:49:20 pmBut then, where do I store the xml file?
Could you guys just send me the code.
I need this for tomorrow, and don't have time to read up on it tonight.
Thank you.
Tyler Juranek
----- Original Message -----
From: "J.J. Meddaugh"
To:
Date: Saturday, Apr 3, 2010 19:23:43
Subject: Re: Randomizer
Could you guys just send me the code.
I need this for tomorrow, and don't have time to read up on it tonight.
Thank you.
Tyler Juranek
----- Original Message -----
From: "J.J. Meddaugh"
To:
Date: Saturday, Apr 3, 2010 19:23:43
Subject: Re: Randomizer
You could put all of them in an XML file and read them in using a dictionary
object. Or there are functions to read in files as well which you could find
from one of the vb.net tutorials or reference guides.
J.J. Meddaugh — ATGuys.com
A premier Licensed Code Factory and KNFB Reader distributor
----- Original Message -----
From: "Tylers Scripting"
To:
Sent: Saturday, April 03, 2010 10:08 PM
Subject: RE: Randomizer
> So I have to put all the names in by hand.
> I can't use a txt file?
> Tyler
>
> ----- Original Message -----
> From: "Chip Orange"
> To:
> Date: Saturday, Apr 3, 2010 18:59:40
> Subject: RE: Randomizer
>
>ar
>ar
>ar Tiler,
>ar
>ar Aarons code allows for any number of choices, assuming the size of your
>ar array has been set to the number of choices that you have. that's why
>ar all
>ar the use of the ubound(were and lbound(were functions; it also allows for
>ar an array
>ar with a lower bound of either 0 or 1, which does make it look a little
>ar complicated at first glance.
>ar
>ar the rnd(were function is the heart of his answer, it returns a random
>ar number
>ar between 0 and 1.
>ar
>ar For using a hotkey, see the keyboard object's registerhotkey function,
>ar and I
>ar think the wiki beginning scripting article, part 2, actually has a
>ar section
>ar on how to do that. I'd bet the help for the registerHotkey does also.
>ar
>ar
>ar hth,
>ar
>ar Chip
>ar
>ar -----Original Message-----
>ar From: Tylers Scripting [mailto:tylersscripting@gmail.com]
>ar Sent: Saturday, April 03, 2010 7:39 PM
>ar To: gw-scripting@gwmicro.com
>ar Subject: Re: Randomizer
>ar
>ar But aaron,
>ar What if you have 100 names.
>ar I also need a hotkey for this.
>ar Thank you.
>ar Tyler Juranek
>ar
>ar ----- Original Message -----
>ar From: Aaron Smith
>ar To: gw-scripting@gwmicro.com
>ar Date: Saturday, Apr 3, 2010 16:30:26
>ar Subject: Re: Randomizer
>ar
>ar >
>ar >
>ar > Dim a : a = Array("Tom", "Jerry", "Ren", "Stimpy", "Yakko", "Wakko",
>ar > "Dot")
>ar > Speak a(Int((UBound(a) LBound(a) + 1) * Rnd + LBound(a)))
>ar >
>ar > Aaron
>ar >
>ar > On 4/3/2010 7:16 PM, Tylers Scripting wrote:
>ar > > Hey guys,
>ar > > I was wondering, what are some lines of code I can run that will
>ar > > pick
>ar a random name with a script?
>ar > > For example, if you wanted it to pick a random name from Tyler,
>ar > > Gary,
>ar Kim, Brittney, and if I had like say 10000 names, how would I do this?
>ar > > Thanks.
>ar > > Tyler Juranek
>ar > >
>ar >
>ar > --
>ar > Aaron Smith
>ar > Product Support Specialist * Web Development GW Micro, Inc. * 725
>ar > Airport North Office Park, Fort Wayne, IN 46825
>ar > 260-489-3671 * gwmicro.com
>ar >
>ar > To insure that you receive proper support, please include all past
>ar > correspondence (where applicable), and any relevant information
>ar > pertinent to your situation when submitting a problem report to the GW
>ar > Micro Technical Support Team.
>ar >
>ar > Dim a : a = Array("Tom", "Jerry", "Ren", "Stimpy", "Yakko", "Wakko",
>ar > "Dot") Speak a(Int((UBound(a) LBound(a) + 1) * Rnd + LBound(a)))
>ar >
>ar > Aaron
>ar >
>ar > On 4/3/2010 7:16 PM, Tylers Scripting wrote:
>ar > Hey guys,
>ar > I was wondering, what are some lines of code I can run that will pick
>ar > a
>ar random name with a script?
>ar > For example, if you wanted it to pick a random name from Tyler, Gary,
>ar Kim, Brittney, and if I had like say 10000 names, how would I do this?
>ar > Thanks.
>ar > Tyler Juranek
>ar >
>ar >
>ar >
>ar >
>ar > --
>ar > Aaron Smith
>ar > Product Support Specialist * Web Development GW Micro, Inc. * 725
>ar > Airport North Office Park, Fort Wayne, IN 46825
>ar > 260-489-3671 * gwmicro.com
>ar >
>ar > To insure that you receive proper support, please include all past
>ar > correspondence (where applicable), and any relevant information
>ar > pertinent to your situation when submitting a problem report to the GW
>ar > Micro Technical Support Team.


