Skip to content

Commit 3fe40bc

Browse files
committed
Cleaned up some unused code
1 parent 28a76a5 commit 3fe40bc

4 files changed

Lines changed: 3 additions & 100 deletions

File tree

RomaKey.exe

-1.15 MB
Binary file not shown.

RomaKeySource.ahk

Lines changed: 3 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@
33
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
44
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
55

6-
; updateFunction()
7-
; return
8-
Menu, Tray, NoStandard
9-
Menu, Tray, Add, Update, updateLabel
10-
Menu, Tray, Add , Exit, ExitButton ;add a item named Exit that goes to the ButtonExit label
11-
Menu, Tray, Default, Update
12-
fetchUpdate()
13-
return
146

157
#HotkeyInterval 1000000000
168
#MaxHotkeysPerInterval 1000000000
@@ -281,13 +273,13 @@ return
281273
; send {text}()
282274
; send {Left}
283275
; Return
284-
(::
276+
/* (::
285277
send {text}(
286278
KeyWait, Tab, D
287279
send {text})
288280
send {Left}{BackSpace}{Right}
289281
Return
290-
282+
*/
291283
; [::
292284
; send {Tab}
293285
; return
@@ -305,7 +297,7 @@ Return
305297
; "q" Gunimtam
306298
;
307299
;
308-
;
300+
309301
:?C*:qa::{text}{²
310302
return
311303
:?C*:qi::{text}{ì
@@ -1585,81 +1577,9 @@ return
15851577
:?C*:fm::{text
15861578
return
15871579

1588-
1589-
;
1590-
;
1591-
;
1592-
; Auto - Update Functionality
1593-
;
1594-
;
1595-
;
1596-
updateLabel:
1597-
UrlDownloadToFile, https://raw.githubusercontent.com/Vignesh-Vin/RomaKey/master/SHA256, hashnew.txt
1598-
FileReadLine, hashnew, hashnew.txt, 1
1599-
FileReadLine, newVersion, hashnew.txt, 2
1600-
FileReadLine, hash, hash.txt, 1
1601-
FileReadLine, currentVer, hash.txt, 2
1602-
if (hashnew != null) {
1603-
if (hash != hashnew) {
1604-
MsgBox, 4, Update Available, Do you want to update RomaKey to %newVersion% `nCurrent Version is %currentVer%
1605-
IfMsgBox, Yes
1606-
update_from_internet()
1607-
IfMsgBox, No
1608-
TrayTip, Update Cancelled, Update Cancelled by User, 5,
1609-
}
1610-
if (hash == hashnew) {
1611-
TrayTip, No Update Needed, RomaKey is already Latest Version %currentVer%, 5,
1612-
}
1613-
}
1614-
if (hashnew == null) {
1615-
TrayTip, Updates Unavailable, No Internet, 3,
1616-
}
1617-
FileDelete, hashnew.txt
1618-
return
1619-
1620-
update_from_internet() {
1621-
UrlDownloadToFile, https://raw.githubusercontent.com/Vignesh-Vin/Roma-Keyboard-Telugu/master/update.bat, update.bat
1622-
UrlDownloadToFile, https://github.com/Vignesh-Vin/RomaKey/raw/master/RomaKey.exe, RomaKeyNew.exe
1623-
FileDelete, hash.txt
1624-
UrlDownloadToFile, https://raw.githubusercontent.com/Vignesh-Vin/RomaKey/master/SHA256, hash.txt
1625-
FileReadLine, newVersion, hash.txt, 2
1626-
TrayTip, Update Successfull!, RomaKey is now %newVersion%, 5,
1627-
Run, update.bat
1628-
ExitApp
1629-
}
1630-
fetchUpdate() {
1631-
UrlDownloadToFile, https://raw.githubusercontent.com/Vignesh-Vin/RomaKey/master/SHA256, hashnew.txt
1632-
FileReadLine, hashnew, hashnew.txt, 1
1633-
FileReadLine, newVersion, hashnew.txt, 2
1634-
FileReadLine, hash, hash.txt, 1
1635-
FileReadLine, currentVer, hash.txt, 2
1636-
if (hashnew != null) {
1637-
if (hash != hashnew) {
1638-
TrayTip, Update Available, Double-click icon to update to %newVersion% `nCurrent Version is %currentVer%, 5,
1639-
}
1640-
if (hash == hashnew) {
1641-
TrayTip, Latest Version, RomaKey is already Latest Version, 5,
1642-
}
1643-
1644-
FileDelete, hashnew.txt
1645-
}
1646-
if (hashnew == null) {
1647-
TrayTip, Updates Unavailable, No Internet, 3,
1648-
}
1649-
}
16501580
ExitButton:
16511581
ExitApp
16521582
Return
1653-
;
1654-
;
1655-
; "Other Program Shortcuts"
1656-
;
1657-
;
1658-
; PageMaker PAN Functionality
1659-
if WinActive("ahk_exe Pm70.exe") {
1660-
MButton::!LButton
1661-
return
1662-
}
16631583

16641584

16651585
;

SHA256

Lines changed: 0 additions & 2 deletions
This file was deleted.

update.bat

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)