istar Posted January 29, 2005 Share Posted January 29, 2005 Hello, not being a coder, I seek a script for the play daoc (Dark Age Of Camelot). I will like that script execute the following order: 1 - Selection of a monster with possibility to modify the name (ex: $monster "TITLEMONSTER" ) 2 - This adhesive has the target (ordering of the play: /stick ) 3 - Attack to repeat monster with choice of the various keys, until A the death of the monster ( keys : & ; "; '; ( ; - ; - ; etc... ) 4 - Rest period AFTER the death of the monster (order: /sit or key "C") 5 - this stand up (order: /stand or keys "C") Sorry I am not a coder and I do not know how to do it. And sorry for my English Thank you :"> Link to comment Share on other sites More sharing options...
gosu Posted January 29, 2005 Share Posted January 29, 2005 This is not a general support forum. [quote name='d2hacker88' date='Jan 6 2005, 05:10 PM']Can someone please help me out with autoit like gimme a link on how to use it cause i have no experience with computer languages and i'd like to make a program with autoit in order to empress my computer teacher.[right][snapback]52215[/snapback][/right][/quote] Link to comment Share on other sites More sharing options...
istar Posted January 29, 2005 Author Share Posted January 29, 2005 Erff ok admin move my post in other section ? Link to comment Share on other sites More sharing options...
therks Posted January 29, 2005 Share Posted January 29, 2005 (edited) No, no, he means the whole forum in general. We like to encourage people to learn the language and make their own scripts. We don't like to encourage people to just show up and ask others to make scripts for them.If you have no desire to learn and just want a program, try searching for it on Google. Edited January 29, 2005 by Saunders My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
istar Posted January 29, 2005 Author Share Posted January 29, 2005 Ok !I launched out! and here what that gives:__init()while 1a()b()Wendfunc a() ; Mob and moneyWinActivate("Dark Age of Camelot, Copyright © 2001-04 Mythic Entertainment, Inc.", "")  Sleep ( 5000 )  Send ( '{F8}' )  Sleep ( 1000 )  Send ( 'è' )  Sleep ( 1000 )  Send ( '&' )  Sleep ( 8000 )    for $__n1_ = 1 to 15 ;Repeat Attack    Send ( "'" )    Sleep ( 4500 )  next  Send ( '{F7}' )  Sleep ( 4000 )  Send ( 'G' )  Sleep ( 2000 )  Send ( '{ENTER}/sit{ENTER}' )  Sleep ( 10000 )  Send ( '{ENTER}/stand{ENTER}' )    Sleep ( 10 )EndFunc    Func b() ;RebuffSleep ( '3000' )Send ( 'ç' )Sleep ( '4000' )Send ( 'à ' )Sleep ( '4000' )EndFuncfilefunc __init () endfunc that functions well but there is a problem which I do not arrive has to solve . The part "Rebuff" I will like that it this repeat that every 10 minutes and not has each time. how to make? thank you Link to comment Share on other sites More sharing options...
therks Posted January 30, 2005 Share Posted January 30, 2005 See, you didn't need someone else to make it all for you. This is what we encourage, trying something yourself and then coming here when you're stuck. Unfortunately, I'm not sure what it is you're looking for exactly. You want it to repeat function b() every 10 minutes? Couldn't you just put some longer sleep in there? Like sleep(600000)? My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
istar Posted January 30, 2005 Author Share Posted January 30, 2005 I wish in made that the a() excute is buckled some, and that the b() excute that every 10 minutes! without that blocking the execution of a()! Sorry for my English, I espert that you arrive has to read me. I repost my script to modify:__init()while 1a()b()Wendfunc a() ; Mob and moneyWinActivate("Dark Age of Camelot, Copyright © 2001-04 Mythic Entertainment, Inc.", "")  Sleep ( 2000 )  Send ( '{F8}' )  Sleep ( 1000 )  Send ( 'è' )  Sleep ( 1000 )  Send ( 'é' )Sleep (95)Send ('&')  Sleep (5000)Send ('{_}')  Sleep (4800)  for $__n1_ = 1 to 6 ;Repeat Attack    Send ( "'" )    Sleep ( 4800 ) Send ( "'" )Sleep (95)Send ("(")Sleep (4600)  next  Send ('{F7}')  Sleep (2000)  Send ('g')  Sleep (1000)  Send ('c')  Sleep ( 6000 )  Send ('c')    Sleep ( 10 )EndFunc    Func b() ;RebuffSleep ( 1000 )Send ('ç')Sleep ( 95 )Send ('à ')Sleep ( 500 )EndFuncfunc __init () endfunc Link to comment Share on other sites More sharing options...
therks Posted January 30, 2005 Share Posted January 30, 2005 Okay, I think I see what you mean. You want b() to execute only every 10 minutes, but you want a() to execute all the time? Give me a couple minutes and I will see what I come up with for you. My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
therks Posted January 30, 2005 Share Posted January 30, 2005 Okay, try this. I cleaned up the code a little bit, just to make it easier on myself to read. a() should execute all the time, and b() should execute approximately every 10 minutes (it might not be exactly 10 minutes because of the sleep()'s in the a() function causing pauses, but it should be pretty close).expandcollapse popup$timer = TimerInit() While 1 a() If TimerDiff($timer) >= (10 * 60 * 1000) Then b() $timer = TimerInit() EndIF WEnd Func a(); Mob and money WinActivate("Dark Age of Camelot, Copyright © 2001-04 Mythic Entertainment, Inc.", "") Sleep ( 2000 ) Send ( '{F8}' ) Sleep ( 1000 ) Send ( 'è' ) Sleep ( 1000 ) Send ( 'é' ) Sleep (95) Send ('&') Sleep (5000) Send ('{_}') Sleep (4800) for $n = 1 to 6;Repeat Attack Send ( "'" ) Sleep ( 4800 ) Send ( "'" ) Sleep (95) Send ("(") Sleep (4600) next Send ('{F7}') Sleep (2000) Send ('g') Sleep (1000) Send ('c') Sleep ( 6000 ) Send ('c') Sleep ( 10 ) EndFunc Func b(); Rebuff Sleep ( 1000 ) Send ('ç') Sleep ( 95 ) Send ('à ') Sleep ( 500 ) EndFuncI don't know why you had the __init() function, it wasn't doing anything, so I removed it, hope that's not a problem.Hope this works for you! My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
istar Posted January 30, 2005 Author Share Posted January 30, 2005 Is Good !! thank you very much! a last thing to make my script "perfect" is you it possible that script execute the order when the window of the program is reduced? and thus launched several scripts for several program all that with the possibility of using its PC without stops the excution of script? I know that I must in asked much, but as I do not know if it is possible I require Thank ! Link to comment Share on other sites More sharing options...
therks Posted January 31, 2005 Share Posted January 31, 2005 Honestly, I'm not sure about sending commands to minimized windows. All I remember is something having to use ControlSend instead of Send. Maybe someone else could help out better. My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
Insolence Posted January 31, 2005 Share Posted January 31, 2005 I made a minimized window clicking UDF. Search the scripts/scrapts forum for it. "I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar. Link to comment Share on other sites More sharing options...
istar Posted January 31, 2005 Author Share Posted January 31, 2005 ok I seek on the forum, this says thank you for all, with the creators of AutoIt, and all those which take part in it Thank ! ps: once again sorry for my English c Link to comment Share on other sites More sharing options...
istar Posted January 31, 2005 Author Share Posted January 31, 2005 (edited) I give up for the minimized windowc, I has reflected something. Veiled the play uses messages when made an action (message example of attack: you attack MONSTER) and thus I would like to know if it's possible to use its messages for executer an action. I have a message of the type: The MONSTER dies. will be you he possible when this message is posted, to make execute an action? if "MONSTER DIES" posts. execution of order: send (' command ') (sorry if I am perturbing) :"> Edited January 31, 2005 by istar Link to comment Share on other sites More sharing options...
istar Posted January 31, 2005 Author Share Posted January 31, 2005 up 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