the_lord_mephy Posted October 4, 2004 Share Posted October 4, 2004 ok well say i have a chat window like this :[10:41:58 PM]<Silenthawk.> amyotrophic lateral sclerosis erythromysotisis [10:41:58 PM] <1337slayer> ghonnarea hemroids amyotrophic lateral sclerosis amythriosomething erythromysotisis cold genital lice syphilis aids pneumonia scholeosis influenza herpes lupis simplex [10:42:04 PM] <1337slayer> DPMT CHANGE [10:42:05 PM] <Guide silenthawk.!, (Q.12) -> [erythromysotisis] - (Streak: 2)-(Cash: $202.00)-(Rank: 6)> [10:42:06 PM] <Silenthawk.> lol [10:42:06 PM] <1337slayer> -.- [10:42:16 PM] <Guide> :+: (S.8 -> [$1.00])-> clgentleaii [10:42:17 PM] <Silenthawk.> amyotrophic lateral sclerosis erythromysotisis [10:42:17 PM] <1337slayer> ghonnarea hemroids amyotrophic lateral sclerosis amythriosomething erythromysotisis cold genital lice syphilis aids pneumonia scholeosis influenza herpes lupis simplex [10:42:19 PM] <Jimwest> which file is this?? [10:42:20 PM] <Guide 1337slayer!, (Q.8) -> [genital lice] - (Streak: 0)-(Cash: $132.00)-(Rank: 8)> [10:42:24 PM] <1337slayer> desiesehow can i make it so when someone types something that it will type something else. My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Link to comment Share on other sites More sharing options...
scriptkitty Posted October 4, 2004 Share Posted October 4, 2004 That depends on how this chat it. It could be Javascript, HTML, or a IM client. In my IM clients, I can read the text in a standard control, therefore I can do a simple string search and then send text to the application. ( a text box control as well, and hitting the button send. ) Sample code, just made up while 1 $var = ControlGetText("Untitled chat", "", "Edit1") if StringInstr($var,"My text")<>0 then Controlsend("Untitled chat", "", "Edit2","Blah Blah Blah") Controlclick("Untitled chat", "", "Button1") endif sleep(1000) wend AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
the_lord_mephy Posted October 4, 2004 Author Share Posted October 4, 2004 im not sure what kind of w/e it is but it looks like this on window spy expandcollapse popup>>>>>>>>>>> Visible Window Text <<<<<<<<<<< [4:19:45 PM] <Rauru> FUCKINGUFCKFUCKDFUCKFUCVKC [4:19:46 PM] <eye@Azeroth> =O [4:19:54 PM] <1337slayer> :O [4:19:54 PM] <Guide> :+: (S.3057 -> [$1.00])-> updyeaslbalin [4:20:08 PM] <Guide> :+:(Hint):+: --d-----y--l- :D-\< [4:20:10 PM] <1337slayer throws a rock at eyes big ass eye> [4:20:15 PM] <eye@Azeroth> lol [4:20:21 PM] <Guide> :+:(Hint):+: u-d---lay--l- :D-\< [4:20:25 PM] <1337slayer> underlayntly [4:20:27 PM] <1337slayer> :O [4:20:34 PM] <Guide> :+:(Hint):+: u-di--layabl- :D-\< [4:20:36 PM] <the_lord_mephy2> underlayable [4:20:43 PM] <eye@Azeroth> undierlayable [4:20:48 PM] <eye@Azeroth> crap [4:20:50 PM] <the_lord_mephy2> undiselayable [4:20:50 PM] <Guide> :+: TimesUp - (Q.3057) -> -(undisplayable)- [4:20:53 PM] <the_lord_mephy2> ugh [4:20:58 PM] <the_lord_mephy2> didnt see a p [4:20:59 PM] <the_lord_mephy2> =\ [4:21:03 PM] <eye@Azeroth> nor did i [4:21:04 PM] <Guide> :+: (S.460 -> [$1.00])-> ilerabntoiidc [4:21:07 PM] <eye@Azeroth> so i didnt include it [4:21:18 PM] <Guide> :+:(Hint):+: -------ti-n-- :D-\< [4:21:23 PM] <the_lord_mephy2> biordictional [4:21:30 PM] <1337slayer> bionicole [4:21:31 PM] <Guide> :+:(Hint):+: bid----ti-n-- :D-\< [4:21:32 PM] <1337slayer> O_O [4:21:36 PM] <1337slayer> bidordictional [4:21:43 PM] <1337slayer> o_O [4:21:43 PM] <Guide> :+:(Hint):+: bidi---tion-l :D-\< [4:21:49 PM] <the_lord_mephy2> bidirictional [4:21:49 PM] <1337slayer> bidirdictional [4:21:59 PM] <Guide> :+: TimesUp - (Q.460) -> -(bidirectional)- [4:22:01 PM] <1337slayer> bidinictional [4:22:04 PM] <the_lord_mephy2> i was close [4:22:04 PM] <1337slayer> bidirectional [4:22:11 PM] <the_lord_mephy2> i got 1 letter off the last 2 words :( [4:22:13 PM] <Guide> :+: (S.973 -> [$1.00])-> ercdsiebs [4:22:17 PM] <eye@Azeroth> describes [4:22:18 PM] <the_lord_mephy2> abscisser [4:22:20 PM] <Guide eye@azeroth!, (Q.973) -> [describes] - (Streak: 1)-(Cash: $859.00)-(Rank: 1)> [4:22:22 PM] <the_lord_mephy2> lol [4:22:33 PM] <eye@Azeroth> got milk? [4:22:33 PM] <1337slayer> eye=have no life ? [4:22:35 PM] <Guide> :+: (S.2475 -> [$1.00])-> msyam [4:22:36 PM] <the_lord_mephy2> sammy [4:22:37 PM] <eye@Azeroth> sammy [4:22:38 PM] <Guide the_lord_mephy2!, (Q.2475) -> [sammy] - (Streak: 0)-(Cash: $182.00)-(Rank: 9)> [4:22:43 PM] <1337slayer> got hampster? [4:22:47 PM] <the_lord_mephy2> ,fr 10 [4:22:49 PM] <eye@Azeroth> dead hampster [4:22:49 PM] <From Guide> .: Jimwest has rank#10 [4:22:51 PM] <the_lord_mephy2> ,score jimwest [4:22:52 PM] <From Guide> .: information on jimwest - score: 175 | rank#: 10 [4:22:56 PM] <Guide> :+: (S.691 -> [$1.00])-> tcsuac [4:22:59 PM] <the_lord_mephy2> cactus [4:23:00 PM] <1337slayer> tucpoc [4:23:02 PM] <Guide the_lord_mephy2!, (Q.691) -> [cactus] - (Streak: 1)-(Cash: $183.00)-(Rank: 9)> [4:23:08 PM] <eye@Azeroth> tupac anyway lol [4:23:08 PM] <1337slayer> mephy o_O leave;p [4:23:17 PM] <Guide> :+: (S.2345 -> [$1.00])-> nootidrseenmcam [4:23:25 PM] <eye@Azeroth> .skip [4:23:26 PM] <eye@Azeroth> lol [4:23:31 PM] <Guide> :+:(Hint):+: ---o---n---i--- :D-\< [4:23:31 PM] <1337slayer> camcortersinthemiddleofsummerwhileyoueatyourdamnicecream [4:23:32 PM] <the_lord_mephy2> dont u dare [4:23:33 PM] <the_lord_mephy2> :) [4:23:37 PM] <1337slayer> damn am i even close;D [4:23:44 PM] <Guide> :+:(Hint):+: ---o--en--tio-- :D-\< [4:23:56 PM] <AC)DC(> slayer [4:23:57 PM] <Guide> :+:(Hint):+: --co-mend-tio-- :D-\< [4:23:57 PM] <AC)DC(> i [4:24:02 PM] <AC)DC(> excommendation [4:24:04 PM] <the_lord_mephy2> recommendation [4:24:05 PM] <eye@Azeroth> recommendation [4:24:06 PM] <eye@Azeroth> s [4:24:08 PM] <eye@Azeroth> shit [4:24:10 PM] <Guide> :+: TimesUp - (Q.2345) -> -(recommendations)- [4:24:12 PM] <the_lord_mephy2> fuck [4:24:12 PM] <the_lord_mephy2> lol [4:24:13 PM] <eye@Azeroth> fucker [4:24:14 PM] <1337slayer> LOL [4:24:16 PM] <AC)DC(> brb [4:24:19 PM] <AC)DC(> i instal [4:24:19 PM] <AC)DC(> new [4:24:21 PM] <AC)DC(> keyboad [4:24:27 PM] <AC)DC(> ,score [4:24:27 PM] <Guide> :+: (S.1381 -> [$1.00])-> ssgla [4:24:29 PM] <the_lord_mephy2> glass [4:24:30 PM] <AC)DC(> glass [4:24:30 PM] <1337slayer> glass [4:24:32 PM] <eye@Azeroth> he bought jsut for word scrmblew [4:24:34 PM] <Guide the_lord_mephy2!, (Q.1381) -> [glass] - (Streak: 2)-(Cash: $184.00)-(Rank: 9)> [4:24:45 PM] <Guide> :+: (S.1674 -> [$1.00])-> kye [4:24:47 PM] <eye@Azeroth> key [4:24:48 PM] <Guide eye@azeroth!, (Q.1674) -> [key] - (Streak: 0)-(Cash: $860.00)-(Rank: 1)> [4:25:03 PM] <1337slayer> afk................................................................................................. .................................................................................................... ....................... [4:25:03 PM] <Guide> :+: (S.1740 -> [$3.00])-> hlgti [4:25:05 PM] <the_lord_mephy2> light [4:25:05 PM] <eye@Azeroth> lkigth [4:25:06 PM] <1337slayer> light [4:25:06 PM] <Guide the_lord_mephy2!, (Q.1740) -> [light] - (Streak: 0)-(Cash: $187.00)-(Rank: 9)> [4:25:08 PM] <1337slayer> afk not [4:25:11 PM] <the_lord_mephy2> :-)(-: [4:25:11 PM] <1337slayer> now ^ [4:25:21 PM] <Guide> :+: (S.2809 -> [$1.00])-> cdceeus [4:25:24 PM] <eye@Azeroth> what is that two asscheeks? [4:25:26 PM] <the_lord_mephy2> succeed [4:25:28 PM] <Guide the_lord_mephy2!, (Q.2809) -> [succeed] - (Streak: 1)-(Cash: $188.00)-(Rank: 9)> [4:25:28 PM] <eye@Azeroth> cadacues [4:25:31 PM] <eye@Azeroth> lol [4:25:32 PM] <the_lord_mephy2> lol [4:25:36 PM] <eye@Azeroth> im all diablo's out [4:25:37 PM] <dx13> cadacus [4:25:38 PM] <the_lord_mephy2> yeah [4:25:38 PM] <eye@Azeroth> d* [4:25:42 PM] <Guide> :+: (S.1589 -> [$5.00])-> tuidlraisn [4:25:49 PM] <eye@Azeroth> O.o [4:25:56 PM] <Guide> :+:(Hint):+: -n------a- :D-\< [4:25:59 PM] <eye@Azeroth> industrial [4:26:00 PM] <Guide eye@azeroth!, (Q.1589) -> [industrial] - (Streak: 0)-(Cash: $865.00)-(Rank: 1)> [4:26:02 PM] <the_lord_mephy2> gj [4:26:02 PM] <eye@Azeroth> nice [4:26:05 PM] <the_lord_mephy2> for 5 bucks [4:26:09 PM] <eye@Azeroth> yup [4:26:12 PM] <eye@Azeroth> so the last 5 i lost to u [4:26:14 PM] <Guide> :+: (S.2160 -> [$1.00])-> elip [4:26:16 PM] <the_lord_mephy2> pile [4:26:17 PM] <eye@Azeroth> pile [4:26:18 PM] <Guide the_lord_mephy2!, (Q.2160) -> [pile] - (Streak: 0)-(Cash: $189.00)-(Rank: 9)> [4:26:33 PM] <Guide> :+: (S.22 -> [$1.00])-> vberiaborta [4:26:36 PM] <the_lord_mephy2> abbreveation [4:26:39 PM] <the_lord_mephy2> abbreviation [4:26:44 PM] <eye@Azeroth> ate [4:26:44 PM] <the_lord_mephy2> abbreviator [4:26:45 PM] <eye@Azeroth> prob [4:26:47 PM] <Guide the_lord_mephy2!, (Q.22) -> [abbreviator] - (Streak: 1)-(Cash: $190.00)-(Rank: 9)> [4:26:49 PM] <the_lord_mephy2> =-o [4:26:50 PM] <Guide> -> the_lord_mephy2, You have been given a can of stfu for hitting a new score of 190! [4:26:59 PM] <eye@Azeroth> i type faster thazn me and i knew u had it lol [4:27:01 PM] <Guide> :+: (S.796 -> [$2.00])-> ouldc [4:27:02 PM] <eye@Azeroth> u* [4:27:03 PM] <the_lord_mephy2> could [4:27:03 PM] <l8z> meph is still here [4:27:04 PM] <l8z> could [4:27:05 PM] <the_lord_mephy2> cloud [4:27:08 PM] <Guide the_lord_mephy2!, (Q.796) -> [cloud] - (Streak: 2)-(Cash: $192.00)-(Rank: 9)> [4:27:11 PM] <the_lord_mephy2> lol [4:27:17 PM] <the_lord_mephy2> u type faster than me [4:27:18 PM] <the_lord_mephy2> .. [4:27:18 PM] <l8z> ,rank l8z [4:27:22 PM] <Guide> :+: (S.418 -> [$5.00])-> bekllsatab [4:27:25 PM] <l8z> how come im not here [4:27:25 PM] <LixA> basketball [4:27:25 PM] <the_lord_mephy2> basketball [4:27:26 PM] <Guide lixa!, (Q.418) -> [basketball] - (Streak: 0)-(Cash: $415.00)-(Rank: 2)> [4:27:26 PM] <close_em> basketball [4:27:29 PM] <the_lord_mephy2> then comes rising [4:27:30 PM] <LixA> wow just on time [4:27:31 PM] <close_em> bastards :( [4:27:34 PM] <the_lord_mephy2> who types faster than all of us [4:27:35 PM] <l8z> meph what happend [4:27:39 PM] <l8z> my score is ogne [4:27:40 PM] <Guide> :+: (S.3035 -> [$1.00])-> uptac [4:27:41 PM] <l8z> tupa [4:27:41 PM] <the_lord_mephy2> tupac [4:27:41 PM] <LixA> tupac [4:27:42 PM] <eye@Azeroth> tupac [4:27:43 PM] <Guide lixa!, (Q.3035) -> [tupac] - (Streak: 1)-(Cash: $416.00)-(Rank: 2)> [4:27:45 PM] <the_lord_mephy2> latency [4:27:46 PM] <the_lord_mephy2> =\ [4:27:52 PM] <the_lord_mephy2> [4:27:40 PM] <Guide> :+: (S.3035 -> [$1.00])-> uptac [4:27:52 PM] <l8z> ,score l8z [4:27:52 PM] <the_lord_mephy2> [4:27:41 PM] <l8z> tupa [4:27:54 PM] <the_lord_mephy2> [4:27:41 PM] <the_lord_mephy2> tupac [4:27:54 PM] <LixA> tuapc [4:27:56 PM] <the_lord_mephy2> [4:27:41 PM] <LixA> tupac [4:27:57 PM] <Guide> :+: (S.1752 -> [$1.00])-> uixnl [4:27:57 PM] <LixA> tupac [4:27:58 PM] <LixA> linux [4:27:59 PM] <eye@Azeroth> linux [4:28:00 PM] <Guide lixa!, (Q.1752) -> [linux] - (Streak: 2)-(Cash: $417.00)-(Rank: 2)> [4:28:00 PM] <the_lord_mephy2> linux [4:28:14 PM] <Guide> :+: (S.541 -> [$1.00])-> hgodilnobdn [4:28:18 PM] <LixA> hobgobelin [4:28:20 PM] <propogandapanda> yo nigguh [4:28:25 PM] <eye@Azeroth> i thought same thing lixa lol [4:28:27 PM] <l8z> how come my score is gone [4:28:28 PM] <LixA> hahaha [4:28:28 PM] <Guide> :+:(Hint):+: ------l-in- :D-\< [4:28:34 PM] <LixA> baldurs gate own ^^ [4:28:41 PM] <eye@Azeroth> dnd =( [4:28:42 PM] <eye@Azeroth> lol [4:28:43 PM] <LixA> ha ok [4:28:44 PM] <LixA> same [4:28:44 PM] <Guide> :+:(Hint):+: --nd--ldin- :D-\< [4:28:44 PM] <LixA> ^^ [4:28:48 PM] <the_lord_mephy2> bondhilding [4:28:51 PM] <LixA> bondholding [4:28:54 PM] <Guide lixa!, (Q.541) -> [bondholding] - (Streak: 3)-(Cash: $418.00)-(Rank: 2)> [4:28:56 PM] <the_lord_mephy2> FUcking typo [4:28:56 PM] <eye@Azeroth> yup [4:28:57 PM] <l8z> meph [4:28:58 PM] <LixA> w/e [4:28:59 PM] <LixA> cya [4:28:59 PM] <eye@Azeroth> lol [4:29:04 PM] <l8z> what happend to my score/ [4:29:07 PM] <eye@Azeroth> i ate it [4:29:09 PM] <Guide> :+: (S.572 -> [$1.00])-> efbinor [4:29:09 PM] <l8z> did the bot restart [4:29:19 PM] <eye@Azeroth> no [4:29:21 PM] <eye@Azeroth> i erased [4:29:21 PM] <Guide> :+:(Hint):+: ----ir- :D-\< [4:29:23 PM] <l8z> i dont know what happend [4:29:26 PM] <l8z> oh [4:29:28 PM] <eye@Azeroth> ? [4:29:29 PM] <eye@Azeroth> j/p [4:29:34 PM] <Guide> :+:(Hint):+: --nfir- :D-\< [4:29:36 PM] <eye@Azeroth> some dick rider named friend [4:29:41 PM] <the_lord_mephy2> bonfire [4:29:41 PM] <l8z> bondfire [4:29:42 PM] <Straight> lol [4:29:44 PM] <eye@Azeroth> see he loved us so much [4:29:44 PM] <Guide the_lord_mephy2!, (Q.572) -> [bonfire] - (Streak: 0)-(Cash: $193.00)-(Rank: 9)> [4:29:45 PM] <Straight> that kid is a moron [4:29:50 PM] <eye@Azeroth> he delted the shit [4:29:54 PM] <l8z> oh [4:29:59 PM] <Guide> :+: (S.668 -> [$1.00])-> rebwsro [4:30:02 PM] <the_lord_mephy2> browser [4:30:04 PM] <l8z> browser [4:30:05 PM] <Guide the_lord_mephy2!, (Q.668) -> [browser] - (Streak: 1)-(Cash: $194.00)-(Rank: 9)> [4:30:07 PM] <the_lord_mephy2> massive typo on entering [4:30:09 PM] <eye@Azeroth> damn it all to hell [4:30:20 PM] <Guide> :+: (S.1053 -> [$1.00])-> rognad [4:30:22 PM] <the_lord_mephy2> dragon [4:30:23 PM] <Guide the_lord_mephy2!, (Q.1053) -> [dragon] - (Streak: 2)-(Cash: $195.00)-(Rank: 9)> [4:30:38 PM] <Guide> :+: (S.2737 -> [$1.00])-> wrsaastr [4:30:45 PM] <Straight> starwars [4:30:48 PM] <Guide straight!, (Q.2737) -> [starwars] - (Streak: 0)-(Cash: $2.00)-(Rank: 55)> [4:30:49 PM] <eye@Azeroth> gj [4:31:03 PM] <Guide> :+: (S.1316 -> [$1.00])-> ehrcnf [4:31:05 PM] <eye@Azeroth> french [4:31:06 PM] <Guide eye@azeroth!, (Q.1316) -> [French] - (Streak: 0)-(Cash: $866.00)-(Rank: 1)> [4:31:06 PM] <Straight> french [4:31:11 PM] <eye@Azeroth> is donating still off? [4:31:21 PM] <Guide> :+: (S.2934 -> [$1.00])-> eetrh [4:31:21 PM] <Straight> ,donate dh [4:31:23 PM] <eye@Azeroth> there [4:31:23 PM] <Straight> threre [4:31:27 PM] <Straight> lol [4:31:27 PM] <Guide eye@azeroth!, (Q.2934) -> [there] - (Streak: 1)-(Cash: $867.00)-(Rank: 1)> [4:31:28 PM] <Straight> nope >>>>>>>>>>> Hidden Window Text <<<<<<<<<<< My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Link to comment Share on other sites More sharing options...
Guest BL@(K-R34P3R Posted October 4, 2004 Share Posted October 4, 2004 Added info.: It is a game client, DiabloII specifically. Link to comment Share on other sites More sharing options...
the_lord_mephy Posted October 4, 2004 Author Share Posted October 4, 2004 It is a Diablo II channel bot. like chatroom bot. My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Link to comment Share on other sites More sharing options...
the_lord_mephy Posted October 6, 2004 Author Share Posted October 6, 2004 can anyone help me? My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Link to comment Share on other sites More sharing options...
scriptkitty Posted October 6, 2004 Share Posted October 6, 2004 (edited) sure, well since the text is in the >>>>>>>>>>> Visible Window Text <<<<<<<<<<< lets say the window is called DiabloChat then you can use: while 1 if winexists("DiabloChat","starwars") then exitloop sleep(10) wend winactivate("DiabloChat","") send("Starwars rocks") Unless you clear the text after, you wouldn't want to loop this. Edited October 6, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
the_lord_mephy Posted October 6, 2004 Author Share Posted October 6, 2004 oo ty, 1) would that just keep sending it until it doesnt exist in the window. 2) can u use wildcards with that. WinExists("DiabloChat", "*Starwars")? My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Link to comment Share on other sites More sharing options...
scriptkitty Posted October 7, 2004 Share Posted October 7, 2004 That perticular one waits til anthing with starwars in it shows up and then sends it once. It would work with bobstarwarsfan as well as starwars. I didn't make it perticular A log file would be far better if it has one. AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
the_lord_mephy Posted October 7, 2004 Author Share Posted October 7, 2004 well then could i put the loop in a loop so it goes on for ever? for example While 1 while 1 if winexists("DiabloChat","starwars") then exitloop sleep(10) wend winactivate("DiabloChat","") send("Starwars rocks") WEnd or somethign to that effect. My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Link to comment Share on other sites More sharing options...
the_lord_mephy Posted October 7, 2004 Author Share Posted October 7, 2004 help plz? My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Link to comment Share on other sites More sharing options...
Guest BL@(K-R34P3R Posted October 8, 2004 Share Posted October 8, 2004 Just try it out. I don't think you can double loop? And I haven't tried it yet. Link to comment Share on other sites More sharing options...
the_lord_mephy Posted October 8, 2004 Author Share Posted October 8, 2004 well that wouldnt work anyway. im trying to find a way to maek it so that it will send something else only once. My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Link to comment Share on other sites More sharing options...
Guest BL@(K-R34P3R Posted October 8, 2004 Share Posted October 8, 2004 Hmm... Well... You could make it Exit the script... Send("Starwars Rocks") Exit Wend Link to comment Share on other sites More sharing options...
the_lord_mephy Posted October 8, 2004 Author Share Posted October 8, 2004 i dont want it to exit the script. i want it to keep looping, but only send the thing once. My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Link to comment Share on other sites More sharing options...
Guest BL@(K-R34P3R Posted October 8, 2004 Share Posted October 8, 2004 Add a counter? Just put a $counter = 0 $counter = $counter + 1 If counter = 1 then Statements you only want to call once Endif Elseif MsgBox(0, "Error.", "There was an error.") Link to comment Share on other sites More sharing options...
the_lord_mephy Posted October 8, 2004 Author Share Posted October 8, 2004 (edited) what i want is, a script that searches for a certain text. when they say it. it returns something else, but only one time for example: [9:05:01 PM] <the_lord_mephy> Hello. i want it to return like Send("Whats up?") but only once. [Edit] And if he says: [9:05:01 PM] <the_lord_mephy> Hello. again, it will return Send("Whats up?") again Edited October 8, 2004 by the_lord_mephy My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Link to comment Share on other sites More sharing options...
the_lord_mephy Posted October 9, 2004 Author Share Posted October 9, 2004 Anyone know how to do this? My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Link to comment Share on other sites More sharing options...
the_lord_mephy Posted October 9, 2004 Author Share Posted October 9, 2004 wheres JdeB when you need him My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Link to comment Share on other sites More sharing options...
Konan--M Posted October 9, 2004 Share Posted October 9, 2004 while 1 if winexists("DiabloII") then exitloop sleep(10) wend $word = "Starcraft|Hello|sun"; ....... $answer = "Starcraft RULEZ|Hi :D|*sun is shining*" $words = StringSplit($word, "|") $answers = StringSplit($answer, "|") while WinActive("DiaboII") $t = WinGetText ("") $text = StringSplit($t, " ") send(Answer()) Sleep(10) Wend Func Answer() For $i = 1 to $text[0] For $j = 1 to $words[0] if $words[$j] = $answer[$j] Then Return $answer[$j] Next Next return "" EndFunc Just try this... this i the worst bot ever created, but i think it is maybe a little help. I have no idea if this works and if this is working it allways searches the whole window for words, not only the last line, but it should be no problem for u too add this. Konan--- 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