Search found 8 matches

by Randannon
06 Feb 2019, 10:52
Forum: Ask For Help
Topic: How to add else if in loop
Replies: 7
Views: 622

Re: How to add else if in loop

that is because it reaches the last else statement before you press the xbutton1. You would have to have the rbutton down with the xbutton1 at the same time then release it. Otherwise it will reach the else statement. Also add the "p" option to the getkeystate for xbutton1 and that should help. I d...
by Randannon
06 Feb 2019, 10:37
Forum: Ask For Help
Topic: How to add else if in loop
Replies: 7
Views: 622

Re: How to add else if in loop

Well albeit the script doesn't work, I ended up making a separate script just for xbutton1. I swear when I get something to work something else breaks. I suspect loops works best with one else? I'm not sure, I'm too new to coding, but thank you for trying.
by Randannon
06 Feb 2019, 10:03
Forum: Ask For Help
Topic: How to add else if in loop
Replies: 7
Views: 622

Re: How to add else if in loop

Your else if cannot be a trigger for another hotkey. Instead you should use another getkeystate with that button like so else if getkeystate("xbutton1") Hmm thanks for the quick reply. I've tested out what you advised and changed it to rbutton:: loop { if getkeystate("rbutton", "p") { send, {2} sle...
by Randannon
06 Feb 2019, 09:07
Forum: Ask For Help
Topic: How to add else if in loop
Replies: 7
Views: 622

How to add else if in loop

rbutton:: loop { if getkeystate("rbutton", "p") { send, {2} sleep, 10 send, {mbutton Down} } else if xbutton1:: { send, {xbutton1} } else { send, {mbutton up} break } } return I'm trying to add an optional side mouse button press into the loop while still holding down the right mouse button. I have...
by Randannon
05 Feb 2019, 10:08
Forum: Gaming
Topic: [vermntide 2] melee animation cancel loop
Replies: 2
Views: 442

Re: [vermntide 2] melee animation cancel loop

Welp seems like the issues is more due to ingame features. I had to make another script to balance the them out.
by Randannon
05 Feb 2019, 10:05
Forum: Ask For Help
Topic: Loop not working correctly due to extreme speed?
Replies: 4
Views: 495

Re: Loop not working correctly due to extreme speed?

Welp, seems like the issue is more to do with the program and not the script itself.
by Randannon
05 Feb 2019, 04:34
Forum: Gaming
Topic: [vermntide 2] melee animation cancel loop
Replies: 2
Views: 442

[vermntide 2] melee animation cancel loop

I need help in trying to do the 1st melee move set over and over while doing it as fast as I can with side mouse button held down. This is the ingame sequence of what it's suppose to do: 1, left mouse click, 2, 1 1) Melee weapon drawn ( this is the 1) 2) Attack with first melee move set ( left mouse...
by Randannon
04 Feb 2019, 19:40
Forum: Ask For Help
Topic: Loop not working correctly due to extreme speed?
Replies: 4
Views: 495

Loop not working correctly due to extreme speed?

What I'm trying to do is to make a script to speedly press: 1, left mouseclick, 2, 1 while holding down the side mouse button. This is the what I mangled up together after many days, while being a clueless John Snow. xbutton2:: Loop { GetKeyState, state, xbutton2, p if state = U break ; Otherwise: s...

Go to advanced search