LButton::
Send, {n down}
Send, {RButton down}
Send, {RButton up}
Send, {n up}
x::
Pause
Return
Anyone know on how I could fix this? Everytime I press left click, it makes it so the script is paused, but everytime I press left click again it unpauses. I was hoping to try to make it so when I Left click it sends those down and up, along with X being the toggle on and off for it. Anyone know how? If so, please tell me what to add to my script and where if that's okay with you.
Help on Simple Script Topic is solved
Re: Help on Simple Script Topic is solved
You can toggle the hotkeys for Lbutton with this code:
Code: Select all
F1::Hotkey,Lbutton,Toggle
Look at me, I am your god now.
-
- Posts: 12
- Joined: 25 May 2016, 13:37
Re: Help on Simple Script
Sorry, I wasn't clear enough on my part. My bad. What I meant was like I want to be able to toggle the script on and off with X, because what happens is that I'm not able to left click. For some reason the hotkey for Left click connects with the hotkey of X and I'm not able to left click at all. What happens is that when I left click, It pauses the script and then unpauses it. It does the commands that the hotkey X does. I'm just wondering if there's anyway for me to separate the 2 from each others commands. Do you know how to fix it?rootmos wrote:You can toggle the hotkeys for Lbutton with this code:Code: Select all
F1::Hotkey,Lbutton,Toggle
Last edited by SkyBreather on 25 May 2016, 14:01, edited 1 time in total.
Re: Help on Simple Script
I think I understand, it seems like you missed the Return command in the end dof the Lbutton:: code
Or instead of pause you can just toggle the single hotkey instead of pausing the whole script! Just a tip if you want to add more hotkeys ![Smile :)](./images/smilies/icon_e_smile.gif)
Sorry, I wasn't clear enough on my part. My bad. What I meant was like I want to be able to toggle the script on and off with X, because what happens is that I'm not able to left click. For some reason the script connects with the X and what it does. Do you know how to fix it?
Code: Select all
LButton::
Send, {n down}
Send, {RButton down}
Send, {RButton up}
Send, {n up}
Return
x::
;Hotkey,Lbutton,Toggle
Pause
Return
![Smile :)](./images/smilies/icon_e_smile.gif)
Look at me, I am your god now.
-
- Posts: 12
- Joined: 25 May 2016, 13:37
Re: Help on Simple Script
Thanks so much!rootmos wrote:I think I understand, it seems like you missed the Return command in the end dof the Lbutton:: code
Sorry, I wasn't clear enough on my part. My bad. What I meant was like I want to be able to toggle the script on and off with X, because what happens is that I'm not able to left click. For some reason the script connects with the X and what it does. Do you know how to fix it?Or instead of pause you can just toggle the single hotkey instead of pausing the whole script! Just a tip if you want to add more hotkeysCode: Select all
LButton:: Send, {n down} Send, {RButton down} Send, {RButton up} Send, {n up} Return x:: ;Hotkey,Lbutton,Toggle Pause Return
-
- Posts: 12
- Joined: 25 May 2016, 13:37
Re: Help on Simple Script
Nevermind, It's still glitching out. IDK why. I press X and then when I left click, it reactivates the script on and then off again.rootmos wrote:I think I understand, it seems like you missed the Return command in the end dof the Lbutton:: code
Sorry, I wasn't clear enough on my part. My bad. What I meant was like I want to be able to toggle the script on and off with X, because what happens is that I'm not able to left click. For some reason the script connects with the X and what it does. Do you know how to fix it?Or instead of pause you can just toggle the single hotkey instead of pausing the whole script! Just a tip if you want to add more hotkeysCode: Select all
LButton:: Send, {n down} Send, {RButton down} Send, {RButton up} Send, {n up} Return x:: ;Hotkey,Lbutton,Toggle Pause Return
EDIT: OH NOW I REALISE MY PROBLEM, I can't have them in same script XD
EDIT AGAIN: Nope, still not working.
-
- Posts: 12
- Joined: 25 May 2016, 13:37
Re: Help on Simple Script
Fixed it, thank you. For those looking at this, Here's the outcome of my script now.Capn Odin wrote:Try Suspend.
LButton::
Send, {n down}
Send, {RButton down}
Send, {RButton up}
Send, {n up}
Return
x::
;Hotkey,LButton,Toggle
Suspend
Return
Re: Help on Simple Script
You can remove if you want, it's just a comment. ![Smile :)](./images/smilies/icon_e_smile.gif)
Code: Select all
;Hotkey,LButton,Toggle
![Smile :)](./images/smilies/icon_e_smile.gif)
Look at me, I am your god now.
Who is online
Users browsing this forum: Bing [Bot], mstrauss2021, Spawnova, william_ahk and 363 guests