Code: Select all
B := false
X := false
L := false
O := false
MsgBox, 0x24, Autohotkey - Up, Starting up.exe for Autohotkey development`n(Did you start this script?),
IfMsgBox, Yes
{
MsgBox, 0x24, Autohotkey - Up, Would you like the app to block up arrow when command is used?,
IfMsgBox, Yes
{
B := true
Help()
Return
} else {
B := false
Help()
Return
}
Return
} else {
MsgBox, 0x40, Autohotkey - Up, Sorry then, we are turning off!,
ExitApp
Return
}
Help() {
MsgBox, 0x24, Autohotkey - Up, Do you know how to use this tool?,
IfMsgBox, No
{
Info()
Return
}
}
ButtonClick:
Gui, Destroy
return
Info() {
Gui, Show, w300 h75, Autohotkey - UP - Help
Gui, Add, Text, x10 y5, To exit press "Control + Shift + F11"
Gui, Add, Text, x10 y20, To print up arrow bracket do "Control + UpArrow"
Gui, Add, Text, x10 y35, To re-open this menu do "Control + Shift + UpArrow"
Gui, Add, Button, Default w80 x100 y50 gButtonClick, Done
}
^Up::
L := true
O := true
if (!B) {
if (!X) {
Send, {Raw}^
}
} else {
Send, {Raw}^
}
if (!B) {
X := true
Send, {Up}
}
return
^Up Up::
X := false
return
^ Up::
L := false
return
Up::
if (!L && !O) {
Send, {Up}
}
return
Up Up::
L := false
O := false
return
^+Up::
Info()
return
^+F11::
MsgBox, 0x24, Autohotkey - UP, Do you want to close the script?
IfMsgBox Yes
{
ExitApp
return
} else {
MsgBox, 0x30, Autohotkey - UP, Continuing script
return
}
return