Skip to content

Commit

Permalink
Fixed "Mode Input' appearing at startup.
Browse files Browse the repository at this point in the history
The text "Mode Input" would appear when CEyboard was started. This has been fixed. A troubleshooting step was added if CEyboard was not activating notifications.
  • Loading branch information
TheLastMillennial committed Mar 11, 2021
1 parent 0ffbea4 commit 9ebe344
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 2 additions & 0 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ The first two modes prioritize a certain aspect of the keyboard: Numerical Input
- 1 means Numlock is now on.
- 0 means Numlock is now off.

- If you do not recieve any notifications from CEyboard, check in Settings that notifications are enabled for CEyboard. Do this even if you're sure you didn't turn them off.

- If you have any other problems, please create an issue on the Github page or on Cemetech!
https://www.cemetech.net/forum/viewtopic.php?t=17392

Expand Down
18 changes: 9 additions & 9 deletions Source/CEyboard.ahk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendInput,Mode Input ; Recommended for new scripts due to its superior speed and reliability.
;SendInput,Mode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

;Keybindings by TheLastMillennial
Expand All @@ -16,7 +16,7 @@ numLState := GetKeyState("NumLock", "T")
triggerSleep := false


TrayTip, CEyboard, Press [alpha] then [mode] to swap modes. Numlock status: %numLState%, 2, 32
TrayTip, CEyboard, Press [alpha] then [mode] to swap modes. Numlock status: %numLState%, 2

;y= to graph. The 2nd and alpha add F6 to F15 capabilities
<^<#F1:: ;y=
Expand Down Expand Up @@ -104,11 +104,11 @@ TrayTip, CEyboard, Press [alpha] then [mode] to swap modes. Numlock status: %num
if(keyStatus = 3)
keyStatus:=0
if(keyStatus=0)
TrayTip, CEyboard, Mode 0: Numeric input (default), 2, 16, 32
TrayTip, CEyboard, Mode 0: Numeric input (default), 2, 16
if(keyStatus=1)
TrayTip, CEyboard, Mode 1: Alpha input, 2, 16, 32
TrayTip, CEyboard, Mode 1: Alpha input, 2, 16
if(keyStatus=2)
TrayTip, CEyboard, Mode 2: Emulator input, 2, 16, 32
TrayTip, CEyboard, Mode 2: Emulator input, 2, 16
}
else if second ; 2nd
SendInput, {Escape}
Expand All @@ -126,7 +126,7 @@ TrayTip, CEyboard, Press [alpha] then [mode] to swap modes. Numlock status: %num
{
SetNumLockState % !GetKeyState("NumLock", "T")
numLState := GetKeyState("NumLock", "T")
TrayTip, CEyboard, NumLock set to %numLState%, 1, 16, 32 ;delete this line if you don't want a notification whenever numlock changes
TrayTip, CEyboard, NumLock set to %numLState%, 1, 16 ;delete this line if you don't want a notification whenever numlock changes
}
Return

Expand Down Expand Up @@ -198,12 +198,12 @@ TrayTip, CEyboard, Press [alpha] then [mode] to swap modes. Numlock status: %num
if keyStatus = 0 ;numeric input
{
keyStatus := 1 ;set key status to alpha input (A-Lock)
TrayTip, CEyboard, Mode 1: Alpha Input, 2, 16, 32
TrayTip, CEyboard, Mode 1: Alpha Input, 2, 16
}
else if keyStatus = 1
{
keyStatus := 0 ;set keyStatus to numeric input
TrayTip, CEyboard, Mode 0: Numeric Input, 2, 16, 32
TrayTip, CEyboard, Mode 0: Numeric Input, 2, 16
}
}

Expand Down Expand Up @@ -1038,7 +1038,7 @@ TrayTip, CEyboard, Press [alpha] then [mode] to swap modes. Numlock status: %num
else if second ; 2nd
{
triggerSleep := true
TrayTip, CEyboard, Press [mode] to put computer to sleep. Wait 1 second to cancel., 2, 32
TrayTip, CEyboard, Press [mode] to put computer to sleep. Wait 1 second to cancel., 2
}

alpha := false
Expand Down

0 comments on commit 9ebe344

Please sign in to comment.