gamepin126 Posted June 21, 2006 Share Posted June 21, 2006 (edited) Ok, maybe I didn't get it working. I don't know how to make it send the $x variable and not the actual "$x" text. Edit: Code removed due to adsense problems Edited May 30, 2016 by Jon Link to comment Share on other sites More sharing options...
Xenobiologist Posted June 21, 2006 Share Posted June 21, 2006 Hi, try something like: Global $jcArray[4] = ['','IM SOME KIND OF GAY RODENT','YOU APPEAR TO BE GAYER THAN I', _ 'BUT I DONT MISS THE PART WHERE YOU WACK MY NUTS WITH A STICK FOR FORTY MINUTE STRETCHES'] Global $i = 1 HotKeySet("{DOWN}", "jc") While 1 sleep(3000) WEnd Func jc() Send($jcArray[$i] & "{ENTER}") $i += 1 EndFunc So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
gamepin126 Posted June 21, 2006 Author Share Posted June 21, 2006 (edited) I figured it out, but my internet shut off like a hour ago. That array will be massive and not very easy to read. Edited May 30, 2016 by Jon Link to comment Share on other sites More sharing options...
Xenobiologist Posted June 21, 2006 Share Posted June 21, 2006 Hi, but I would prefer using an array. Change the Select case to Switch case, that is faster and better scripting. So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
gamepin126 Posted June 21, 2006 Author Share Posted June 21, 2006 Hi,but I would prefer using an array. Change the Select case to Switch case, that is faster and better scripting. So long,MegaThanks, that's actually my first time using cases. So many functions xD Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 21, 2006 Moderators Share Posted June 21, 2006 Hi,but I would prefer using an array. Change the Select case to Switch case, that is faster and better scripting. So long,MegaI've done quite a few test on that, and I can't prove that true, did you do something to prove that out of curiousity? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Xenobiologist Posted June 21, 2006 Share Posted June 21, 2006 I've done quite a few test on that, and I can't prove that true, did you do something to prove that out of curiousity?Hi SmOke_N,no I haven't tested it. :"> But I thought switch saves reading the one $var in every case again.So long,Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Daniel W. Posted June 21, 2006 Share Posted June 21, 2006 GLobal $array[6] $array[0] = 5 $array[1] = "Hi" $array[2] = "I" $array[3] = "am" $array[4] = "Daniel" $array[5] = "W." Run("notepad.exe") WinWaitActive( "Unbenannt - Editor" ) Sleep(1000) For $a = 1 to $array[0] Send( $array[$a] ) Next Do it like this --------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote] 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