Game Show Overlay problem

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
ItsAStrangeJob
Posts: 1
Joined: 16 Sep 2018, 00:53

Game Show Overlay problem

16 Sep 2018, 01:09

Here's what I'm going for: 2 keys will be pressed nearly simultaneously, whichever is pressed first will display its progress window color (red or Blue) and ignore the other key until its reset (space)

I wrote the following Script but the problem red (F13 and the first one) can overide blue (F13/second) and if red is first blue plays after and vice versa but only once, e.g. can go red then blue but not back to red

Any insight you could offer would be appreciated

Code: Select all

F13::
{
BlockInput, On
Sleep, 50
SoundPlay, Ring.mp3
Progress,1: CWFF0000 B W20000 H10000 X0 Y0 zh0 fs200,
Progress,2: CWFF0000 B W20000 H10000 X1281 Y0 zh0 fs200,
Sleep, 3000
Progress,1: CWFF0000 B W20000 H200 X0 Y0 zh0 fs200,
Progress,2: CWFF0000 B W20000 H200 X1281 Y0 zh0 fs200,
KeyWait, Space, D T10
Progress,1: Off
Progress,2: Off
BlockInput, Off
}
return



F14::
{
BlockInput, On
Sleep, 50
SoundPlay, Ring.mp3
Progress,1: CW0000FF B W20000 H10000 X0 Y0 zh0 fs200,
Progress,2: CW0000FF B W20000 H10000 X1281 Y0 zh0 fs200,
Sleep, 3000
Progress,1: CW0000FF B W20000 H200 X0 Y0 zh0 fs200,
Progress,2: CW0000FF B W20000 H200 X1281 Y0 zh0 fs200,
KeyWait, Space, D T10
Progress,1: Off
Progress,2: Off
BlockInput, Off
}
return
Skippy
Posts: 1
Joined: 23 Jan 2021, 22:40

Re: Game Show Overlay problem

14 Nov 2022, 11:11

Knowing this is old, but i was looking for a quick and dirty game show buzz in, and modifying your worked for me.

It disables all the hotkeys until the spacebar is pressed.

Code: Select all



F12::
{
Suspend On
Thread, NoTimers , 1
; turn off all the hotkeys
Hotkey, F1 , Off

BlockInput, On
Sleep, 50
SoundPlay, Ring.mp3
Progress,1: CW0000FF B W20000 H10000 X0 Y0 zh0 fs200,
Progress,2: CW0000FF B W20000 H10000 X1281 Y0 zh0 fs200,
Sleep, 3000
Progress,1: CW0000FF B W20000 H200 X10 Y0 zh0 dd fs200,
Progress,2: CW0000FF B W20000 H200 X1281 Y0 zh0 fs200,
KeyWait, Space, D T10
Progress,1: Off
Progress,2: Off
BlockInput, Off

Thread, NoTimers , 0
Suspend Off
; turn on all the hotkeys
Hotkey, F1 , On
}
return

F1::
{
Suspend On
Thread, NoTimers , 1
; turn off all the hotkeys
Hotkey, F12 , Off

BlockInput, On
Sleep, 50
SoundPlay, Ring.mp3
Progress,1: CWFF0000 B W20000 H10000 X0 Y0 zh0 fs200,
;Progress,2: CWFF0000 B W20000 H10000 X1281 Y0 zh0 fs200,
Sleep, 3000
Progress,1: CWFF0000 B W20000 H200 X10 Y10 zh0 fs200,
;Progress,2: CWFF0000 B W20000 H200 X1281 Y0 zh0 fs200,
KeyWait, Space, D T10     
Progress,1: Off
Progress,2: Off
BlockInput, Off

Thread, NoTimers , 0
Suspend Off
; turn on all the hotkeys
Hotkey, F12 , On
}
return



Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Tvlao and 330 guests