Very simple question that I can't figure out (new user) Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
neptuneA
Posts: 1
Joined: 29 Oct 2019, 08:54

Very simple question that I can't figure out (new user)

29 Oct 2019, 09:14

I am trying to get a script to minimize a window when I double tap the space bar.

I tried this to no avail:

Code: Select all

SPACESPACE:: WinMinimize, A
 return
The "SPACESPACE" doesn't work. But I can use !SPACE just fine.
User avatar
SALZKARTOFFEEEL
Posts: 89
Joined: 10 May 2017, 11:14
Location: Germany
Contact:

Re: Very simple question that I can't figure out (new user)  Topic is solved

29 Oct 2019, 09:23

Code: Select all

Timeout := DllCall("GetDoubleClickTime")
$Space::
If (A_PriorHotkey == A_ThisHotkey && A_TimeSincePriorHotkey <= Timeout)
    WinMinimize, A
Else
    Send {Space}

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: NinjoOnline and 302 guests