dav37
|
  |
| Joined: 10 Feb 2013 |
| Total Posts: 1779 |
|
|
| 18 Dec 2016 03:57 PM |
how do i add a start/stop button to this
r::l x::r
like if I wanted f5 to start and stop it it would look soemthing like this
F5 START F5 STOP
then repeats
|
|
|
| Report Abuse |
|
|
dav37
|
  |
| Joined: 10 Feb 2013 |
| Total Posts: 1779 |
|
| |
|
dav37
|
  |
| Joined: 10 Feb 2013 |
| Total Posts: 1779 |
|
| |
|
|
| 18 Dec 2016 04:14 PM |
I don't know the most efficient way but i had a quick look at the documentation and came up with this. I'm not even sure if it's what you wanted tbh :/
x = true f5:: if (%x%) { x = false send, test1 } else { x = true send, test2 } Return |
|
|
| Report Abuse |
|
|
dav37
|
  |
| Joined: 10 Feb 2013 |
| Total Posts: 1779 |
|
| |
|
|
| 18 Dec 2016 04:16 PM |
use UserInput
Nico Nico Ni |
|
|
| Report Abuse |
|
|
dav37
|
  |
| Joined: 10 Feb 2013 |
| Total Posts: 1779 |
|
| |
|
|
| 18 Dec 2016 04:17 PM |
| What will the script be used for? |
|
|
| Report Abuse |
|
|
dav37
|
  |
| Joined: 10 Feb 2013 |
| Total Posts: 1779 |
|
|
| 18 Dec 2016 04:17 PM |
x = true f5:: if (%x%) { x = false send, test1 } else { x = true send, test2 } Return
nah i think that says if you press F5 send this ol test that idk im new to autohotkey lol
|
|
|
| Report Abuse |
|
|
dav37
|
  |
| Joined: 10 Feb 2013 |
| Total Posts: 1779 |
|
|
| 18 Dec 2016 04:18 PM |
r::l x::r
is saying turn the letter R into L
so if i press R it's L
basically changing keys
|
|
|
| Report Abuse |
|
|
|
| 18 Dec 2016 04:19 PM |
| My friend uses AutoHotKey, and he has a script which turns his 'B' into ':B:', so he can use emojis on Discord more efficiently. |
|
|
| Report Abuse |
|
|
dav37
|
  |
| Joined: 10 Feb 2013 |
| Total Posts: 1779 |
|
|
| 18 Dec 2016 04:20 PM |
yeah i'm just doing that but with different keys for a certain game
|
|
|
| Report Abuse |
|
|
|
| 18 Dec 2016 04:21 PM |
| yeah change the send lines to whatever thing you want to toggle. I'm not sure exactly what you want. |
|
|
| Report Abuse |
|
|
dav37
|
  |
| Joined: 10 Feb 2013 |
| Total Posts: 1779 |
|
|
| 18 Dec 2016 04:22 PM |
"yeah change the send lines to whatever thing you want to toggle. I'm not sure exactly what you want."
okay, say I want to make a script.
i want a key that i can press that will enable/disable the script when i press the key
|
|
|
| Report Abuse |
|
|
|
| 18 Dec 2016 04:31 PM |
ok after some testing all it took was 3 lines :P
f5::Suspend r::l x::r |
|
|
| Report Abuse |
|
|
dav37
|
  |
| Joined: 10 Feb 2013 |
| Total Posts: 1779 |
|
| |
|
| |
|
dav37
|
  |
| Joined: 10 Feb 2013 |
| Total Posts: 1779 |
|
|
| 18 Dec 2016 05:12 PM |
what does it do for you?
what i wanted it to do was
when i click on the script to use it
then when i want to disable it temporarily to chat or something
|
|
|
| Report Abuse |
|
|
|
| 18 Dec 2016 05:13 PM |
| when you run it, it changes the r key to l and the x key to r then when you press f5 it toggles to the correct keys. At-least that's what it does for me. |
|
|
| Report Abuse |
|
|
dav37
|
  |
| Joined: 10 Feb 2013 |
| Total Posts: 1779 |
|
|
| 18 Dec 2016 05:14 PM |
when i click F5 to disable it
when i click X it still shows up as R
|
|
|
| Report Abuse |
|
|
|
| 18 Dec 2016 05:17 PM |
| I don't really know what to tell you, it works for me. Try going into task manager then the "processes" tab and ending the AutoHotkey process then run the script again. |
|
|
| Report Abuse |
|
|
dav37
|
  |
| Joined: 10 Feb 2013 |
| Total Posts: 1779 |
|
|
| 18 Dec 2016 05:48 PM |
oh nvm, that seemed to work for me thanks
|
|
|
| Report Abuse |
|
|
tbnj123
|
  |
| Joined: 29 Oct 2010 |
| Total Posts: 443 |
|
| |
|