diff --git a/ReadMe.md b/ReadMe.md index 3638711..785caac 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -2,8 +2,8 @@ An AutoHotKey Script for SmartPad on the TI-84 Plus CE. By TheLastMillennial -## About: -This project allows you to treat your TI-84 Plus CE like an external keyboard! It interprets the wierd keys the official TI-SmartPad app outputs and turns them into useful key presses. +This project allows you to treat your TI-84 Plus CE like an external keyboard! +It interprets the wierd keys the official TI-SmartPad app outputs and turns them into useful key presses. ## Required Hardware: - TI-84 Plus CE or TI-83 Premium CE (Note, it is not designed for the TI-83 Premium CE key layout) @@ -64,58 +64,58 @@ If you have any other problems, please create an issue on the Github page or on https://www.cemetech.net/forum/viewtopic.php?t=17392 ## Key Documentation -https://1drv.ms/x/s!Al_ZukYl7Xyyzmmzj-SOTPJi2rUu?e=5c0Xoo +Latest documentation: https://1drv.ms/x/s!Al_ZukYl7Xyyzmmzj-SOTPJi2rUu?e=5c0Xoo If the above link is broken, here's the table: -|Mode 0: Numeric Input|No Modifier |2nd Modifier |Alpha Modifier|Notes |Mode 1: Alpha Input|No Modifier |2nd Modifier |Alpha Modifier|Notes| -|:-------------------:|----------------------------------|-----------------------------------------------|--------------|-------------------------------------------------------|:-----------------:|---------------|--------------------------------------------------|--------------|-----| -| y= |F1 |F6 |F11 | | y= |F1 |F6 |F11 | | -| window |F2 |F7 |F12 | | window |F2 |F7 |F12 | | -| zoom |F3 |F8 |F13 | | zoom |F3 |F8 |F13 | | -| trace |F4 |F9 |F14 | | trace |F4 |F9 |F14 | | -| graph |F5 |F10 |F15 | | graph |F5 |F10 |F15 | | -| 2nd |rAlt |rAlt |rAlt | | 2nd |rAlt |rAlt |rAlt | | -| mode |Toggle Numlock |Esc |Swaps Modes |Triggers Sleep ([2nd]>[on] must be pressed beforehand) | mode |Toggle Numlock |Esc |Swaps Modes | | -| del |Delete |Insert |ctrl+delele | | del |Delete |Insert |ctrl+delele | | -| left |Left |Shift+left |ctrl+left | | left |Left |Shift+left |ctrl+left | | -| up |Up |shift+up |ctrl+up | | up |Up |shift+up |ctrl+up | | -| right |Right |shift+right |ctrl+right | | right |Right |shift+right |ctrl+right | | -| alpha |rCtrl | | | | alpha |rCtrl | | | | -| X,T,0,n |Toggle CapsLock |Play/Pause |/ | | X,T,0,n |Toggle CapsLock|Play/Pause |/ | | -| stat |Tab |{} |Next Song | | stat |Tab |{} |Next Song | | -| down |Down |shift+down |ctrl+down | | down |Down |shift+down |ctrl+down | | -| math |Run Calculator |ctrl+a |A | | math |a |ctrl+a |A | | -| apps |Right Click menu |ctrl+b |B | | apps |b |ctrl+b |B | | -| prgm |ctrl+shift+esc (Open task manager)|ctrl+c |C | | prgm |c |ctrl+c |C | | -| vars |win+tab |Volume Up |Volume Down | | vars |win+tab |Volume Up |Volume Down | | -| clear |Backspace |Home+End+Delete (delete line) |ctrl+backspace| | clear |Backspace |Home+End+Delete (delete line) |ctrl+backspace| | -| x^-1 |x^-1 |[] |D | | x^-1 |d |ctrl+d |D | | -| sin |sin() |sin^-1() |E | | sin |e |ctrl+e |E | | -| cos |cos() |cos^-1() |F | | cos |f |ctrl+f |F | | -| tan |tan() |tan^-1() |G | | tan |g |ctrl+g |G | | -| ^ |^ |? |H | | ^ |h |ctrl+h |H | | -| x^2 |x^2 |?() |I | | x^2 |i |ctrl+i |I | | -| , |, |E |J | | , |j |ctrl+j |J | | -| ( |( |{ |K | | ( |k |ctrl+k |K | | -| ) |) |} |L | | ) |l |ctrl+l |L | | -| ÷ |/ |e |M | | ÷ |m |ctrl+m |M | | -| log |log() |10^() |N | | log |n |ctrl+n |N | | -| 7 |7 |u |O | | 7 |o |ctrl+o |O | | -| 8 |8 |v |P | | 8 |p |ctrl+p |P | | -| 9 |9 |w |Q | | 9 |q |ctrl+q |Q | | -| * |* |[ |R | | * |r |ctrl+r |R | | -| ln |ln() |e^() |S | | ln |s |ctrl+s |S | | -| 4 |4 |ctrl+t |T | | 4 |t |ctrl+t |T | | -| 5 |5 |ctrl+u |U | | 5 |u |ctrl+u |U | | -| 6 |6 |ctrl+v |V | | 6 |v |ctrl+v |V | | -| - |- |] |W | | - |w |ctrl+w |W | | -| sto-> |ctrl+c |ctrl+v |X | | sto-> |x |ctrl+x |X | | -| 1 |1 |ctrl+y |Y | | 1 |y |ctrl+y |Y | | -| 2 |2 |ctrl+z |Z | | 2 |z |ctrl+z |Z | | -| 3 |3 |% |? | | 3 |? |% |? | | -| + |+ |ctrl+tab |" | | + |" |` | | | -| on |Pause (break) |Starts Sleep trigger (Press [mode] to trigger) |CtrlBreak | | on |Pause (break) |Starts Sleep trigger (Press [mode] to trigger) |CtrlBreak | | -| 0 |0 |Help |Spacebar | | 0 |Spacebar |ctrl+spacebar |Spacebar | | -| . |. |?? (Imaginary i) |: | | . |: |. |; | | -| (-) |- |ctrl+shift+z |? | | (-) |? |_ |! | | -| enter |Enter |ctrl+enter |Enter | | enter |Enter |ctrl+shift+z |shift+enter | | +|Mode 0: Numeric Input|No Modifier |2nd Modifier |Alpha Modifier|Notes |Mode 1: Alpha Input|No Modifier |2nd Modifier |Alpha Modifier|Notes | +|:-------------------:|----------------------------------|-----------------------------------------------------------|--------------|--------------------------------------------------------------|:-----------------:|---------------|-----------------------------------------------------------|--------------|------------------------------------| +| y= |F1 |F6 |F11 | | y= |F1 |F6 |F11 | | +| window |F2 |F7 |F12 | | window |F2 |F7 |F12 | | +| zoom |F3 |F8 |F13 | | zoom |F3 |F8 |F13 | | +| trace |F4 |F9 |F14 | | trace |F4 |F9 |F14 | | +| graph |F5 |F10 |F15 | | graph |F5 |F10 |F15 | | +| 2nd |rAlt |rAlt |rAlt | | 2nd |rAlt |rAlt |rAlt | | +| mode |Toggle Numlock |Esc |Swaps Modes |Completes [2nd]>[on] Sleep trigger | mode |Toggle Numlock |Esc |Swaps Modes |Completes [2nd]>[on] Sleep trigger | +| del |Delete |Insert |ctrl+delele | | del |Delete |Insert |ctrl+delele | | +| left |Left |Shift+left |ctrl+left | | left |Left |Shift+left |ctrl+left | | +| up |Up |shift+up |ctrl+up | | up |Up |shift+up |ctrl+up | | +| right |Right |shift+right |ctrl+right | | right |Right |shift+right |ctrl+right | | +| alpha |rCtrl |rCtrl |rCtrl | | alpha |rCtrl |rCtrl |rCtrl | | +| X,T,0,n |Toggle CapsLock |Play/Pause |/ | | X,T,0,n |Toggle CapsLock|Play/Pause |/ | | +| stat |Tab |{} |Next Song | | stat |Tab |{} |Next Song | | +| down |Down |shift+down |ctrl+down | | down |Down |shift+down |ctrl+down | | +| math |Run Calculator |ctrl+a |A |Run calculator may only work on old operating systems | math |a |ctrl+a |A | | +| apps |Right Click menu |ctrl+b |B | | apps |b |ctrl+b |B | | +| prgm |ctrl+shift+esc (Open task manager)|ctrl+c |C | | prgm |c |ctrl+c |C | | +| vars |win+tab |Volume Up |Volume Down | | vars |win+tab |Volume Up |Volume Down | | +| clear |Backspace |Home+End+Delete (delete line) |ctrl+backspace| | clear |Backspace |Home+End+Delete (delete line) |ctrl+backspace| | +| x^-1 |x^-1 |[] |D | | x^-1 |d |ctrl+d |D | | +| sin |sin() |sin^-1() |E | | sin |e |ctrl+e |E | | +| cos |cos() |cos^-1() |F | | cos |f |ctrl+f |F | | +| tan |tan() |tan^-1() |G | | tan |g |ctrl+g |G | | +| ^ |^ |ã |H | | ^ |h |ctrl+h |H | | +| x^2 |x^2 |û() |I | | x^2 |i |ctrl+i |I | | +| , |, |E |J | | , |j |ctrl+j |J | | +| ( |( |{ |K | | ( |k |ctrl+k |K | | +| ) |) |} |L | | ) |l |ctrl+l |L | | +| / |/ |e |M | | / |m |ctrl+m |M | | +| log |log() |10^() |N | | log |n |ctrl+n |N | | +| 7 |7 |u |O | | 7 |o |ctrl+o |O | | +| 8 |8 |v |P | | 8 |p |ctrl+p |P | | +| 9 |9 |w |Q | | 9 |q |ctrl+q |Q | | +| * |* |[ |R | | * |r |ctrl+r |R | | +| ln |ln() |e^() |S | | ln |s |ctrl+s |S | | +| 4 |4 |ctrl+t |T | | 4 |t |ctrl+t |T | | +| 5 |5 |ctrl+u |U | | 5 |u |ctrl+u |U | | +| 6 |6 |ctrl+v |V | | 6 |v |ctrl+v |V | | +| - |- |] |W | | - |w |ctrl+w |W | | +| sto-> |ctrl+c |ctrl+v |X | | sto-> |x |ctrl+x |X | | +| 1 |1 |ctrl+y |Y | | 1 |y |ctrl+y |Y | | +| 2 |2 |ctrl+z |Z | | 2 |z |ctrl+z |Z | | +| 3 |3 |% |é | | 3 |? |% |é | | +| + |+ |ctrl+tab |" | | + |" |` |' | | +| on |Pause (break) |Starts Sleep trigger (Press [mode] to complete the trigger)|CtrlBreak |Sleep does not work on all computers | on |Pause (break) |Starts Sleep trigger (Press [mode] to complete the trigger)|CtrlBreak |Sleep does not work on all computers| +| 0 |0 |Help |Spacebar |Help is deprecated, likely only works on old operating systems| 0 |Spacebar |ctrl+spacebar |Spacebar | | +| . |. |?? (Imaginary i) |: | | . |: |. |; | | +| (-) |- |ctrl+shift+z |? | | (-) |? |_ |! | | +| enter |Enter |ctrl+enter |Enter | | enter |Enter |ctrl+shift+z |shift+enter | | diff --git a/Releases/CEyboard 1.0.1.zip b/Releases/CEyboard 1.0.1.zip new file mode 100644 index 0000000..6902711 Binary files /dev/null and b/Releases/CEyboard 1.0.1.zip differ diff --git a/Source/CEyboard.ahk b/Source/CEyboard.ahk index 0a0afa3..d5cf52e 100644 --- a/Source/CEyboard.ahk +++ b/Source/CEyboard.ahk @@ -9,8 +9,10 @@ SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. ;keyStatus 0 is number input; keyStatus 1 is alpha input; keyStatus 2 is emulator input keyStatus := 0 +triggerSleep := false +NumLState := GetKeyState("NumLock", "T") -TrayTip, TI-84 Plus CE Hotkey, Press [alpha] then [mode] to swap modes, 2, 32 +TrayTip, CEyboard, Press [alpha] then [mode] to swap modes. Numlock status: %NumLState%, 2, 32 ;y= to graph. The 2nd and alpha add F6 to F15 capabilities <^<#F1:: ;y= @@ -30,12 +32,12 @@ TrayTip, TI-84 Plus CE Hotkey, Press [alpha] then [mode] to swap modes, 2, 32 if ((A_PriorHotKey = "<^<#F7" or A_PriorHotKey = "<^<#F6") and A_TimeSincePriorHotkey < 750) { if (A_PriorHotKey = "<^<#F7") ; Alpha - SendInput, {F13} + SendInput, {F12} else if (A_PriorHotKey = "<^<#F6") ; 2nd - SendInput, {F8} + SendInput, {F7} } else ; no modifier - SendInput, {F3} + SendInput, {F2} Return <^<#F3:: ;zoom if (keyStatus != 2) @@ -80,7 +82,7 @@ TrayTip, TI-84 Plus CE Hotkey, Press [alpha] then [mode] to swap modes, 2, 32 SendInput, {>!} ;Sends right alt Return <^<#^>+Escape} + SendInput, ^+{Escape} } else if (keyStatus = 1) ;[Alpha Input] { @@ -283,7 +292,7 @@ TrayTip, TI-84 Plus CE Hotkey, Press [alpha] then [mode] to swap modes, 2, 32 SendInput, {Volume_Up} } ; no modifier else - SendInput, >#{Tab} + SendInput, #{Tab} Return <^<#<+F9:: ;clear @@ -917,12 +926,16 @@ TrayTip, TI-84 Plus CE Hotkey, Press [alpha] then [mode] to swap modes, 2, 32 <^<#