Aasem Posted June 13, 2009 Share Posted June 13, 2009 (edited) I came to a few possiblities however I can't get them to work. CODEWinActivate ( "Bleach: Last Horizon 2.0 Alpha" , "") WinWaitActive ( "Bleach: Last Horizon 2.0 Alpha" , "") Send ( "{NUMPAD5}" ) WinWaitActive ( "Shadow Sparring", "") Send ( "{Enter}" ) Select Case If WinWaitActive ( "Bleach: Last Horizon 2.0 Alpha", "Shadow Copy's Action: dodges right") Then Send ( "{NUMPAD9}" ) Case If WinWaitActive ( "Bleach: Last Horizon 2.0 Alpha", "Shadow Copy's Action: dodges left.") Then Send ( "{NUMPAD7}" ) Case If WinWaitActive ( "Bleach: Last Horizon 2.0 Alpha", "Shadow Copy's Action: no movement.") Send ( "{NUMPAD8}" ) EndSelect This one seems more practical but I just can't get this one to loop. I want the loop on the shadow sparring part. Till I figure that out I can't move on. CODEWinActivate ( "Bleach: Last Horizon 2.0 Alpha", "") WinWaitActive ( "Bleach: Last Horizon 2.0 Alpha", "") Send ( "{NUMPAD5}" ) WinWaitActive ( "Shadow Sparring", "") Send ( "{Enter}" ) If WinActive ( "Bleach: Last Horizon 2.0 Alpha", "Shadow Copy's Action: dodges right") Then Send ( "{NUMPAD9}" ) Elseif WinActive ( "Bleach: Last Horizon 2.0 Alpha", "Shadow Copy's Action: dodges left.") Then Send ( "{NUMPAD7}" ) Else WinActive ( "Bleach: Last Horizon 2.0 Alpha", "Shadow Copy's Action: no movement.") Send ( "{NUMPAD8}" ) EndIf EDIT: Here is another one that works but I can't seem to loop. Are their any loop commands besides while and WEnd? WinActivate ( "Bleach: Last Horizon 2.0 Alpha", "") WinWaitActive ( "Bleach: Last Horizon 2.0 Alpha", "") Send ( "{NUMPAD5}" ) WinWaitActive ( "Shadow Sparring", "") Send ( "{Enter}" ) If WinActive ( "Bleach: Last Horizon 2.0 Alpha", "Shadow Copy's Action: dodges right") Then Send ( "{NUMPAD9}" ) EndIf If WinActive ( "Bleach: Last Horizon 2.0 Alpha", "Shadow Copy's Action: dodges left.") Then Send ( "{NUMPAD7}" ) EndIf If WinActive ( "Bleach: Last Horizon 2.0 Alpha", "Shadow Copy's Action: no movement.") Then Send ( "{NUMPAD8}" ) EndIf Edited June 13, 2009 by Aasem Link to comment Share on other sites More sharing options...
DCCD Posted June 13, 2009 Share Posted June 13, 2009 (edited) EDIT: Here is another one that works but I can't seem to loop. Are their any loop commands besides while and WEnd? i don't know what you want, but try this $setting_loop_times = 10; Loop 10 Times Then Stop ; WinActivate("Bleach: Last Horizon 2.0 Alpha", "") WinWaitActive("Bleach: Last Horizon 2.0 Alpha", "") Send("{NUMPAD5}") ; $i = 0 Do WinWaitActive("Shadow Sparring", "") Send("{Enter}") If WinActive("Bleach: Last Horizon 2.0 Alpha", "Shadow Copy's Action: dodges right") Then Send("{NUMPAD9}") EndIf If WinActive("Bleach: Last Horizon 2.0 Alpha", "Shadow Copy's Action: dodges left.") Then Send("{NUMPAD7}") EndIf If WinActive("Bleach: Last Horizon 2.0 Alpha", "Shadow Copy's Action: no movement.") Then Send("{NUMPAD8}") EndIf $i = $i + 1 Until $i = $setting_loop_times Edited June 13, 2009 by DCCD [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group Link to comment Share on other sites More sharing options...
herewasplato Posted June 13, 2009 Share Posted June 13, 2009 @Aasem,Do not start another "new topic" for this same script.http://www.autoitscript.com/forum/index.php?showtopic=96573http://www.autoitscript.com/forum/index.php?showtopic=96595http://www.autoitscript.com/forum/index.php?showtopic=96625and now this one.@DCCD,The "text" in the Win.... function lines is from a chat like window......so it is not unique after all three lines appear.The OP was given a good solution by bogQ here:http://www.autoitscript.com/forum/index.ph...st&p=694951But the OP can not comprehend how to modify it.Few forum members are willing to "spoon feed" the OP the final solution at this point.@bogQ,If you make it to this thread - kudos on the solution that you posted. [size="1"][font="Arial"].[u].[/u][/font][/size] 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