toggle works only the first time. Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
devnullsp
Posts: 73
Joined: 21 Nov 2017, 09:00

toggle works only the first time.

11 Apr 2019, 17:09

Code: Select all


Hotkey, WheelDown, proceso, Off
return

proceso:
    Send z
return

:b0*:v::
   Hotkey, WheelDown, Toggle
return
first, sorry for my english....

for what only toggle the first time.

but if you add one msgbox previus to hotkey do the toogle all time.

TIA:

Edit: Topic name added ~ gregster
Rohwedder
Posts: 7681
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: toggle works only the first time.

12 Apr 2019, 00:06

Hallo,
try:

Code: Select all

Hotkey, WheelDown, proceso, Off
return

proceso:
	Send z
return

:b0*:v::
	Send, {Click up} ;HotString Reset
	Hotkey, WheelDown, Toggle
return
devnullsp
Posts: 73
Joined: 21 Nov 2017, 09:00

Re: toggle works only the first time.

12 Apr 2019, 14:34

ok,
I sure its right, i try with msgbox or wait a few seconds and voila! again toogle.

So, what is HotString Reset? who i reset hotstring without send any text.....

I dont see any about reset in autohotkey document.... :S

TIA.
Rohwedder
Posts: 7681
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: toggle works only the first time.  Topic is solved

12 Apr 2019, 15:26

Hallo,
don't like my HotString Reset?
Then maybe this is the method you prefer:

Code: Select all

:b0*:v::
	Hotstring("Reset")
	Hotkey, WheelDown, Toggle
return
devnullsp
Posts: 73
Joined: 21 Nov 2017, 09:00

Re: toggle works only the first time.

12 Apr 2019, 20:15

Thanks,
I dont understund well for what i need to reset, but thank for all

T.
Rohwedder
Posts: 7681
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: toggle works only the first time.

13 Apr 2019, 04:42

Autohotkey is also only a human being!
Better use a Execute Hotstring:

Code: Select all

:*X:v::
	Send, v
	Hotkey, WheelDown, Toggle
return
or shorter a Tilde Hotkey:

Code: Select all

~v::Hotkey, WheelDown, Toggle

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: GEOVAN, Google [Bot], ShatterCoder and 131 guests