Remove Progress Bar (Progress, Off) - where do i need to put it? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
MapleStreet
Posts: 10
Joined: 06 Oct 2016, 03:38

Remove Progress Bar (Progress, Off) - where do i need to put it?  Topic is solved

29 Jul 2021, 03:01

I have a code that:
- spams 1 or 2 and stops spam if i click on 1 or 2 again
- spams 1 and if i click on 2 it stops spaming 1 and starts spaming 2

now i want to have an indicator that shows me, that they are spamming - i can activate it but dont know how to turn it off

Code: Select all

$1::SetTimer, Hit,% Key="1"?("Off",Key:=""):(10,Key:="1")
$2::SetTimer, Hit,% Key="2"?("Off",Key:=""):(10,Key:="2")

Hit:
Send,% Key
Progress, x1270 y760 B5 H20 W20 ZH0 CWwhite CTwhite FS20 WS700 WM700,
Return
Where do i have to put "Progress, Off" to make the Progress Bar disappear?
User avatar
boiler
Posts: 16985
Joined: 21 Dec 2014, 02:44

Re: Remove Progress Bar (Progress, Off) - where do i need to put it?

29 Jul 2021, 06:57

Try this:

Code: Select all

$1::SetTimer, Hit,% Key="1"?("",Key:=""):(10,Key:="1")
$2::SetTimer, Hit,% Key="2"?("",Key:=""):(10,Key:="2")

Hit:
	if Key {
		Send,% Key
		Progress, x1270 y760 B5 H20 W20 ZH0 CWwhite CTwhite FS20 WS700 WM700,
	} else {
		SetTimer, Hit, Off
		Progress, Off
	}
Return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 77 guests