Jump to content
Sign in to follow this  
Aasem

Look at my gaming script

Recommended Posts

Aasem

I came to a few possiblities however I can't get them to work.

CODE
WinActivate ( "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.

CODE
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}" )

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 by Aasem

Share this post


Link to post
Share on other sites
DCCD

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 by DCCD

Share this post


Link to post
Share on other sites
herewasplato

@Aasem,

Do not start another "new topic" for this same script.

http://www.autoitscript.com/forum/index.php?showtopic=96573

http://www.autoitscript.com/forum/index.php?showtopic=96595

http://www.autoitscript.com/forum/index.php?showtopic=96625

and 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=694951

But 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]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.