Code: Select all
; Win + Ctrl + [0-9] = Move window to desktop [1-9] and switch to it
i := 1
while (i <= desktop_count) {
impl() {
MoveCurrentWindowToDesktop i
GoToDesktopNumber i
}
Hotkey "#^" . i, impl
i++
}
Code: Select all
; Win + Ctrl + [0-9] = Move window to desktop [1-9] and switch to it
i := 1
while (i <= desktop_count) {
impl() {
MoveCurrentWindowToDesktop i
GoToDesktopNumber i
}
Hotkey "#^" . i, impl
i++
}
So your function is invalid because it doesn't accept a parameter. You can have it ignore the parameter with a * in its definition:Hokey documentation wrote:If Action is a function, it is called with one parameter...
Code: Select all
impl(*) {