hello everyone,
i just begin using AutoHotkey and i'm blocked when i want joined 3 scripts in 1. (sorry for my bad english)
i explain : i make 3 differents scripts :
1) a macro script for crouch jumping in video game (pressing 2 key at the same time)
2) a macro script to peek left just clicking the key and release not press it.
3) a macro script to peek right just clicking the key and release not press it.
My 3 scripts works very good separately but when i want gather all, i have got an error.
you can see 2 of my scripts just here ;
I want to have only one key combo (F1+F2) to activate/desactivate the macro. So i done that ;
but it didn't worked.
The text error is :
"error at line 46.
Line Text: SendTheKey.
Error:Duplicate label.
The program will exit."
i hope you could help me.
need help to gather 3 scripts in 1
-
- Posts: 2
- Joined: 24 Sep 2017, 06:14
Re: need help to gather 3 scripts in 1
Add Return after this line:
You use same variable and label/timer names for a and e hotkeys. Change them and You should be fine I guess.
Code: Select all
SendInput, {f}
You use same variable and label/timer names for a and e hotkeys. Change them and You should be fine I guess.
Use
Code: Select all
[/c] forum tag to share your code.
Click on [b]✔[/b] ([b][i]Accept this answer[/i][/b]) on top-right part of the post if it has answered your question / solved your problem.
-
- Posts: 2
- Joined: 24 Sep 2017, 06:14
Re: need help to gather 3 scripts in 1
thanks guys. You solved my problems !!