I have a script that is supposed to emulate the Colemak keyboard layout. I want to be able to toggle the layout with Win+Space
Here's the script:
colemak = true
#If %colemak% = true
hotkeys...
#If
#Space::ChangeLayout()
ChangeLayout()
{
colemak := !colemak
if (colemak = false) {
MsgBox Colemak deactivated.
} else {
MsgBox Colemak activated.
}
}
When I press Win+Space, the colemak variable doesn't change, it stays at true
. What am I doing wrong here?
Also, I want to have some kind of feedback that tells the user that the layout changed. MsgBox isn't really the thing I am looking for because it requires the user to press ok. I want a popup or something similar that just tells the user that it changed without any interaction required or possible. What are some possibilities?