VoiceAttack

General => How Do I? => Topic started by: Jeremiah on October 07, 2024, 05:02:24 PM

Title: If-else statement not working inside wait for mouse input indefinite loop
Post by: Jeremiah on October 07, 2024, 05:02:24 PM
My command isn't working, can anyone help?

Code: [Select]
Start Indefinite Loop
    Wait for mouse button press [Any Button]
    Begin Small Integer Compare : [~mouse] Equals 1
        Press A key and hold for 0.1 seconds and release
    Else If Small Integer Compare : [~mouse] Equals 2
        Press B key and hold for 0.1 seconds and release
    Else If Small Integer Compare : [!mouse] Equals 3
        Press C key and hold for 0.1 seconds and release
    End Condition
End Loop
Title: Re: If-else statement not working inside wait for mouse input indefinite loop
Post by: Gary on October 07, 2024, 05:45:08 PM
As Gangrel had pointed out in the discussion opened on Discord, your third usage of variable name '~mouse' has been replaced with variable name '!mouse'.
Title: Re: If-else statement not working inside wait for mouse input indefinite loop
Post by: Jeremiah on October 07, 2024, 07:11:24 PM
Yea, also SemlerPDX pointed out that I'm suppose to use integer compare, and not small integer.