text
stringlengths
0
15.7k
source
stringlengths
6
112
if key is "V" or key is "v" then return 9
keyboard.applescript
if key is "W" or key is "w" then return 13
keyboard.applescript
if key is "X" or key is "x" then return 7
keyboard.applescript
if key is "Y" or key is "y" then return 16
keyboard.applescript
if key is "Z" or key is "z" then return 6
keyboard.applescript
if key as text is "0" then return 29
keyboard.applescript
if key as text is "1" then return 18
keyboard.applescript
if key as text is "2" then return 19
keyboard.applescript
if key as text is "3" then return 20
keyboard.applescript
if key as text is "4" then return 21
keyboard.applescript
if key as text is "5" then return 23
keyboard.applescript
if key as text is "6" then return 22
keyboard.applescript
if key as text is "7" then return 26
keyboard.applescript
if key as text is "8" then return 28
keyboard.applescript
if key as text is "9" then return 25
keyboard.applescript
if key is space then return 49
keyboard.applescript
if key is "[" then return 33
keyboard.applescript
if key is "]" then return 30
keyboard.applescript
if key is "/" then return 44
keyboard.applescript
if key is "\\" then return 42
keyboard.applescript
if key is "-" then return 27
keyboard.applescript
if key is "=" then return 24
keyboard.applescript
if key is "`" then return 50
keyboard.applescript
if key is "\"" then return 39
keyboard.applescript
if key is tab or key is "tab" then return 48
keyboard.applescript
if (ASCII number key) is 10 or key is "enter" then return 76
keyboard.applescript
if (ASCII number key) is 13 or key is "return" then return 36
keyboard.applescript
if key is "esc" then return 53
keyboard.applescript
if key is "escape" then return 53
keyboard.applescript
if key is "delete" then return 51
keyboard.applescript
if key is "del" then return 51
keyboard.applescript
if key is "space" then return 49
keyboard.applescript
if key is " " then return 49
keyboard.applescript
if key is "up" then return 126
keyboard.applescript
if key is "down" then return 125
keyboard.applescript
if key is "left" then return 123
keyboard.applescript
if key is "right" then return 124
keyboard.applescript
if key is "F1" or key is "f1" then return 122
keyboard.applescript
if key is "F2" or key is "f2" then return 120
keyboard.applescript
if key is "F3" or key is "f3" then return 99
keyboard.applescript
if key is "F4" or key is "f4" then return 118
keyboard.applescript
if key is "F5" or key is "f5" then return 96
keyboard.applescript
if key is "F6" or key is "f6" then return 97
keyboard.applescript
if key is "F7" or key is "f7" then return 98
keyboard.applescript
if key is "F8" or key is "f8" then return 100
keyboard.applescript
if key is "F9" or key is "f9" then return 101
keyboard.applescript
if key is "F10" or key is "f10" then return 109
keyboard.applescript
if key is "F11" or key is "f11" then return 103
keyboard.applescript
if key is "F12" or key is "f12" then return 111
keyboard.applescript
-1
keyboard.applescript
end _charToKeycode
keyboard.applescript
set logger to std's import("logger")'s new("keyboard")
keyboard.applescript
use kl : script "Kevin's Library"
Handler-Tester.applescript
tell application "Keyboard Maestro Engine"
Handler-Tester.applescript
if variable "SD__theChoice" exists then
Handler-Tester.applescript
set handlerName to getvariable "SD__theChoice"
Handler-Tester.applescript
tell application "Script Debugger"
Handler-Tester.applescript
tell front document
Handler-Tester.applescript
set theselection to selection
Handler-Tester.applescript
if theselection begins with "on" then
Handler-Tester.applescript
set handlerName to kl's extractBetween(paragraph 1 of theselection, "on ", "(")
Handler-Tester.applescript
set theName to name
Handler-Tester.applescript
set theHandler to first script handler whose name is handlerName
Handler-Tester.applescript
set theparams to every handler parameter of theHandler
Handler-Tester.applescript
set handlerCall to missing value
Handler-Tester.applescript
if (count of every handler parameter of theHandler) > 0 then
Handler-Tester.applescript
repeat with n from 1 to (count of theparams)
Handler-Tester.applescript
if n = 1 then
Handler-Tester.applescript
set paramList to name of item n of theparams
Handler-Tester.applescript
set variableSetter to "set " & name of item n of theparams & " to var" & n
Handler-Tester.applescript
set paramList to paramList & ", " & name of item n of theparams
Handler-Tester.applescript
set variableSetter to variableSetter & return & "set " & name of item n of theparams & " to var" & n
Handler-Tester.applescript
if handlerCall ≠ missing value then
Handler-Tester.applescript
set handlerCall to handlerName & "(" & paramList & ")"
Handler-Tester.applescript
set theTester to variableSetter & "
Handler-Tester.applescript
tell application \"Script Debugger\"
Handler-Tester.applescript
tell document \"" & theName & "\"
Handler-Tester.applescript
" & handlerCall & "
Handler-Tester.applescript
kend tell"
Handler-Tester.applescript
set theTester to "tell application \"Script Debugger\"
Handler-Tester.applescript
" & handlerName & "()" & "
Handler-Tester.applescript
end tell"
Handler-Tester.applescript
set d to make new document with properties {source text:theTester}
Handler-Tester.applescript
tell d
Handler-Tester.applescript
compile
Handler-Tester.applescript
on indexOfSubStringInString(theString, theSubString)
note.applescript
offset of theSubString in theString
note.applescript
end indexOfSubStringInString
note.applescript
on cutSubStringFromBeginningOf(theString, theSubString)
note.applescript
set indexSubString to indexOfSubStringInString(theString, theSubString)
note.applescript
set theCuttingSubstring to text 1 thru (indexSubString + (length of theSubString) - 1) of theString
note.applescript
end cutSubStringFromBeginningOf
note.applescript
set theURL to "https://www.hellochao.vn/ba-cau-noi-chat-moi-ngay#2018-01-06"
note.applescript
set theSubString to "ba-cau-noi-chat-moi-ngay"
note.applescript
cutSubStringFromBeginningOf(theURL, theSubString)
note.applescript
on getCurrentURLChrome()
note.applescript
set currentURL to get URL of active tab of first window
note.applescript
return currentURL
note.applescript
end getCurrentURLChrome
note.applescript
on addFavoriteChrome(theString)
note.applescript