├── .gitignore ├── .vscode └── settings.json ├── AutoHotkey.exe ├── Icons ├── AhkDirectives.ico ├── Structor.ico ├── Verifier.ico ├── cherry_black.ico ├── cherry_black.png ├── ct_cherries.ico ├── ct_cherries.png ├── dragon.gif ├── gg.gif ├── input-keyboard.ico ├── input-keyboard.png ├── paper.gif ├── set.ico ├── super-command.ico ├── super-command1.ico ├── 删除.ico ├── 发送.ico ├── 复制.ico ├── 帮助.ico ├── 帮助.png ├── 搜索.ico ├── 添加.ico ├── 火箭 (1).png ├── 火箭.png ├── 编辑.ico ├── 编辑全部.ico ├── 设置.ico ├── 设置.png ├── 退出.ico ├── 重启.ico ├── 闪电五连鞭.gif ├── 龙 - 副本.ico ├── 龙 - 副本.png ├── 龙.ico ├── 龙.jpg └── 龙.png ├── cherry-snippet.ahk ├── cherry-snippet.exe ├── cmd ├── Adventure │ ├── Adventure.ahk │ ├── Adventure.exe │ ├── AutoComplete │ │ ├── AutoHotkey.ac │ │ ├── Batch.ac │ │ ├── CSS.ac │ │ ├── FreeBASIC.ac │ │ ├── Go.ac │ │ ├── Pascal.ac │ │ ├── PowerShell.ac │ │ ├── Some Words.ud │ │ └── VB.ac │ ├── Examples │ │ ├── AutoHotkey │ │ │ ├── Debug │ │ │ │ └── Debug Test.ahk │ │ │ ├── GUI Clones │ │ │ │ ├── Advanced Security Settings.ahk │ │ │ │ ├── ConEmu Settings.ahk │ │ │ │ ├── Device Installation Settings.ahk │ │ │ │ ├── Disk Defragmenter.ahk │ │ │ │ ├── FFmpeg Catapult.ahk │ │ │ │ ├── FLAC Frontend.ahk │ │ │ │ ├── FileZilla Settings.ahk │ │ │ │ ├── Grab and Drag Preferences.ahk │ │ │ │ ├── Internet Download Manager Configuration.ahk │ │ │ │ ├── IrfanView Slideshow.ahk │ │ │ │ ├── Menu Design Window.ahk │ │ │ │ ├── Notepad.ahk │ │ │ │ ├── Taskbar and Start Menu Properties.ahk │ │ │ │ ├── TightVNC Server Configuration.ahk │ │ │ │ ├── UltraVNC Server Property Page.ahk │ │ │ │ ├── WinRAR - Archive Name and Parameters.ahk │ │ │ │ ├── WinRAR Settings.ahk │ │ │ │ ├── Windows Live Installer.ahk │ │ │ │ ├── Windows Media Player Settings.ahk │ │ │ │ └── ePSXe Video Settings.ahk │ │ │ └── TreeList │ │ │ │ ├── TreeList Class.ahk │ │ │ │ └── TreeList Test.ahk │ │ ├── C# │ │ │ └── OrderBy.cs │ │ ├── C-C++ │ │ │ ├── Dialogs │ │ │ │ ├── MessageBoxes.c │ │ │ │ ├── Open File Dialog.c │ │ │ │ └── Screen Resolution.c │ │ │ ├── File IO │ │ │ │ ├── CurrentDirectory.c │ │ │ │ ├── FileAppend.c │ │ │ │ ├── ListFiles.c │ │ │ │ └── LogTime.c │ │ │ └── File Mapping │ │ │ │ ├── CreateFileMapping.c │ │ │ │ ├── Creating Named Shared Memory.txt │ │ │ │ └── OpenFileMapping.c │ │ └── HTML │ │ │ ├── Images │ │ │ └── Script.ico │ │ │ └── JavaScript Basics │ │ │ ├── Basics.htm │ │ │ ├── Basics.js │ │ │ └── Evaluator.htm │ ├── Help │ │ ├── AHK-WinAPI.htm │ │ ├── Adventure.htm │ │ ├── AutoHotkey.chm │ │ ├── Credits.htm │ │ ├── Find in Files.htm │ │ ├── Images │ │ │ ├── Adventure.ico │ │ │ └── Windows.ico │ │ ├── Keyboard.ahk │ │ ├── Keyboard.exe │ │ ├── License.txt │ │ └── Toolbar Editor.htm │ ├── Icons │ │ ├── 8x8.bmp │ │ ├── A_Variables.ico │ │ ├── Adventure.icl │ │ ├── Adventure.ico │ │ ├── AhkDirectives.ico │ │ ├── Auto-GUI.icl │ │ ├── AutoTaskMan.icl │ │ ├── Breakpoint.xpm │ │ ├── BugBlue.png │ │ ├── BugRed.png │ │ ├── COM Inspector.ico │ │ ├── Constantine.icl │ │ ├── Constantine.ico │ │ ├── DragMove.cur │ │ ├── Error.xpm │ │ ├── ErrorView.ico │ │ ├── Expressive.icl │ │ ├── Find in Files.icl │ │ ├── Handpoint1.xpm │ │ ├── Handpoint2.xpm │ │ ├── Handpoint3.xpm │ │ ├── Handpoint4.xpm │ │ ├── Keyboard.icl │ │ ├── Keyboard.ico │ │ ├── MagicBox.ico │ │ ├── Search.ico │ │ ├── SidePane.bmp │ │ ├── Sort Panel.ico │ │ ├── Structor.ico │ │ └── Verifier.ico │ ├── Include │ │ ├── AhkDebug.ahk │ │ ├── AhkHelp.ahk │ │ ├── AhkHelpMenu.xml │ │ ├── Editor.ahk │ │ ├── Globals.ahk │ │ ├── Menu.ahk │ │ ├── Search.ahk │ │ ├── Settings.ahk │ │ ├── Tools.ahk │ │ └── Windows.xml │ ├── Lib │ │ ├── AutoSize.ahk │ │ ├── AutoXYWH.ahk │ │ ├── AuxLib.ahk │ │ ├── Class_SQLiteDB.ahk │ │ ├── CommonDialogs.ahk │ │ ├── ControlColor.ahk │ │ ├── CreateGradient.ahk │ │ ├── DBGp.ahk │ │ ├── EnumIncludes.ahk │ │ ├── ExecScript.ahk │ │ ├── GuiButtonIcon.ahk │ │ ├── GuiTabEx.ahk │ │ ├── LV_GroupView.ahk │ │ ├── ResourceID.ahk │ │ ├── RunGetStdout.ahk │ │ ├── Scintilla.ahk │ │ ├── ShellMenu.ahk │ │ └── Toolbar.ahk │ ├── SciLexer32.dll │ ├── SciLexer64.dll │ ├── ScreenToGif │ │ └── Logs │ │ │ └── 22_01_15.txt │ ├── Settings │ │ ├── AHK-Tools.xml │ │ ├── Adventure.ini │ │ ├── AutoTaskMan.ini │ │ ├── Constantine.ini │ │ ├── FileHistory.xml │ │ ├── FileHistory.xml.bak │ │ ├── FileTypes.xml │ │ ├── Structor.ini │ │ ├── Templates.ini │ │ └── Tools.xml │ ├── Source │ │ ├── Scintilla-3.7.6.zip │ │ └── Scintilla.txt │ ├── Templates │ │ ├── AutoHotkey GUI.ahk │ │ ├── AutoHotkey Script.ahk │ │ ├── AutoIt Basic GUI.au3 │ │ ├── Bash Shell Script.sh │ │ ├── Batch File.bat │ │ ├── C Console Application.c │ │ ├── C MessageBox.c │ │ ├── C MsgBoxPrintf.c │ │ ├── C Win32 GUI.c │ │ ├── C# Console Application.cs │ │ ├── C# WinForms Application.cs │ │ ├── C++ Console Application.cpp │ │ ├── FreeBASIC Win32 GUI.bas │ │ ├── HTML5 Template.html │ │ ├── Java Console Application.java │ │ ├── PHP Script.php │ │ ├── Pascal Console Application.pp │ │ ├── Pascal Win32 GUI.pp │ │ ├── Python Script.py │ │ ├── VB.NET WinForms Application.vb │ │ ├── VBScript.vbs │ │ ├── XML Document.xml │ │ └── XSL Transformation File.xslt │ ├── Themes │ │ ├── Specifics │ │ │ ├── AutoHotkey.xml │ │ │ ├── AutoIt.xml │ │ │ ├── Bash.xml │ │ │ ├── Batch.xml │ │ │ ├── C#.xml │ │ │ ├── C++.xml │ │ │ ├── CSS.xml │ │ │ ├── FreeBASIC.xml │ │ │ ├── Gui4Cli.xml │ │ │ ├── HTML.xml │ │ │ ├── Harbour.xml │ │ │ ├── IniFile.xml │ │ │ ├── JSON.xml │ │ │ ├── Java.xml │ │ │ ├── JavaScript.xml │ │ │ ├── Lua.xml │ │ │ ├── Makefile.xml │ │ │ ├── Markdown.xml │ │ │ ├── NSIS.xml │ │ │ ├── Pascal.xml │ │ │ ├── Perl.xml │ │ │ ├── PowerShell.xml │ │ │ ├── Python.xml │ │ │ ├── Ruby.xml │ │ │ ├── Rust.xml │ │ │ ├── SQL.xml │ │ │ ├── VB.xml │ │ │ ├── VHDL.xml │ │ │ ├── XML.xml │ │ │ └── YAML.xml │ │ └── Themes.xml │ ├── Tools │ │ ├── AHK Website.url │ │ ├── A_Variables │ │ │ └── A_Variables.ahk │ │ ├── AhkDirectives │ │ │ └── AhkDirectives.ahk │ │ ├── COM Inspector │ │ │ ├── COM Inspector.ahk │ │ │ └── COM Inspector.exe │ │ ├── Constantine │ │ │ ├── Constantine.ahk │ │ │ └── Constantine.exe │ │ ├── Default Editor.ahk │ │ ├── ErrorView │ │ │ ├── ErrorView.ahk │ │ │ └── ErrorView.exe │ │ ├── Expressive │ │ │ └── Expressive.ahk │ │ ├── Find in Files │ │ │ ├── Find in Files.ahk │ │ │ └── Find in Files.exe │ │ ├── GUI Designer │ │ │ ├── Auto-GUI.ahk │ │ │ └── Include │ │ │ │ ├── CloneWindow.ahk │ │ │ │ ├── Controls.ahk │ │ │ │ ├── Designer.ahk │ │ │ │ ├── FontDialog.ahk │ │ │ │ ├── GenerateCode.ahk │ │ │ │ ├── Globals.ahk │ │ │ │ ├── Keywords.ahk │ │ │ │ ├── MenuEditor.ahk │ │ │ │ ├── Properties.ahk │ │ │ │ ├── ScriptParser.ahk │ │ │ │ ├── Settings.ahk │ │ │ │ ├── Styles.ini │ │ │ │ └── ToolbarEditor.ahk │ │ ├── MagicBox │ │ │ ├── Examples │ │ │ │ ├── Close Tabs.ahk │ │ │ │ ├── Error 25.ahk │ │ │ │ ├── Filename.ahk │ │ │ │ ├── Input Box.ahk │ │ │ │ ├── Partition.ahk │ │ │ │ ├── Pigeons.ahk │ │ │ │ ├── Progress.ahk │ │ │ │ ├── Types.ahk │ │ │ │ ├── Virtuoso.ahk │ │ │ │ └── XP Support.ahk │ │ │ ├── Functions │ │ │ │ ├── FatalAppExit.ahk │ │ │ │ ├── InputBoxEx.ahk │ │ │ │ ├── MessageBox.ahk │ │ │ │ ├── MessageBoxCheck.ahk │ │ │ │ ├── MessageBoxIndirect.ahk │ │ │ │ ├── MessageBoxTimeout.ahk │ │ │ │ ├── MsgBoxEx.ahk │ │ │ │ ├── MsiMessageBox.ahk │ │ │ │ ├── ShellAbout.ahk │ │ │ │ ├── ShellMessageBox.ahk │ │ │ │ ├── SoftModalMessageBox.ahk │ │ │ │ ├── TaskDialog.ahk │ │ │ │ ├── TaskDialogEx.ahk │ │ │ │ └── WTSSendMessage.ahk │ │ │ ├── MagicBox.ahk │ │ │ └── MagicBox.txt │ │ ├── Scripts Manager │ │ │ ├── Scripts Manager.ahk │ │ │ └── Scripts-Manager.ahk │ │ ├── Sort Panel │ │ │ ├── Sort Panel.ahk │ │ │ ├── Sort Panel.exe │ │ │ └── Sort Panel.png │ │ ├── Structor │ │ │ ├── Structor.ahk │ │ │ └── Verifier.ahk │ │ └── XML Syntax Checker │ │ │ ├── XML Syntax Checker.ahk │ │ │ └── XML Syntax Checker.exe │ └── sqlite3.dll └── tmp │ ├── tmp.ahk │ ├── tmp.bat │ └── tmp.py ├── config ├── py_map.bin ├── settings.json ├── template.json └── wubi.bin ├── data.ctb ├── lib ├── BTT.ahk ├── CJSON.ahk ├── Class_SQLiteDB.ahk ├── Gdip_All.ahk ├── Graphics.ahk ├── ImagePut.ahk ├── NonNull.ahk ├── ShinsOverlayClass.ahk ├── TextRender.ahk ├── ZeroMQ.ahk ├── ZeroMQ_Constant.ahk ├── dll_32 │ └── cpp2ahk.dll ├── dll_64 │ ├── cpp2ahk.dll │ ├── fuzz.dll │ ├── libsodium.dll │ └── libzmq-v141-mt-4_3_4.dll ├── empty1.exe ├── fuzz.ahk ├── json.ahk ├── log.ahk ├── log4ahk.ahk ├── menu_fuzz.ahk ├── my_lib.ahk ├── py.ahk ├── runcmd.ahk ├── utility.ahk └── wubi.ahk ├── plugin ├── bd │ └── bd.ahk └── cal │ ├── cal.ahk │ └── lib │ ├── 32bit │ └── ntl.dll │ ├── 64bit │ └── ntl.dll │ └── NTLCalc.ahk ├── readme.md ├── set.ahk ├── set.exe ├── setv2需要安装dx11.txt ├── sqlite3.dll ├── tool ├── set-v2 │ ├── imgui.ini │ ├── lib │ │ ├── dll_32 │ │ │ └── cpp2ahk.dll │ │ ├── dll_64 │ │ │ ├── DXGICapture.dll │ │ │ ├── cpp2ahk.dll │ │ │ ├── imgui.dll │ │ │ └── imgui.pdb │ │ ├── imgui.ahk │ │ └── log.ahk │ ├── setv2.ahk2 │ └── setv2.exe └── 超级命令工具-excel转xml │ ├── ExcelIO.ahk │ ├── lib │ ├── dll_32 │ │ └── cpp2ahk.dll │ ├── dll_64 │ │ └── cpp2ahk.dll │ └── log.ahk │ ├── libxl.dll │ ├── libxl │ ├── 32 │ │ └── libxl.dll │ ├── 64 │ │ └── libxl.dll │ └── libxl.txt │ ├── src.xlsx │ ├── vscode代码片段转换为excel.ahk2 │ ├── 超级命令.xml │ └── 转换.ahk ├── v1 └── AutoHotkey.exe └── v2 ├── AutoHotkey.exe └── menu_fuzz速度稍慢.ahk /.gitignore: -------------------------------------------------------------------------------- 1 | ./cherry-tree/.* -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "git.ignoreLimitWarning": true 3 | } -------------------------------------------------------------------------------- /AutoHotkey.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/AutoHotkey.exe -------------------------------------------------------------------------------- /Icons/AhkDirectives.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/AhkDirectives.ico -------------------------------------------------------------------------------- /Icons/Structor.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/Structor.ico -------------------------------------------------------------------------------- /Icons/Verifier.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/Verifier.ico -------------------------------------------------------------------------------- /Icons/cherry_black.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/cherry_black.ico -------------------------------------------------------------------------------- /Icons/cherry_black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/cherry_black.png -------------------------------------------------------------------------------- /Icons/ct_cherries.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/ct_cherries.ico -------------------------------------------------------------------------------- /Icons/ct_cherries.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/ct_cherries.png -------------------------------------------------------------------------------- /Icons/dragon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/dragon.gif -------------------------------------------------------------------------------- /Icons/gg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/gg.gif -------------------------------------------------------------------------------- /Icons/input-keyboard.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/input-keyboard.ico -------------------------------------------------------------------------------- /Icons/input-keyboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/input-keyboard.png -------------------------------------------------------------------------------- /Icons/paper.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/paper.gif -------------------------------------------------------------------------------- /Icons/set.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/set.ico -------------------------------------------------------------------------------- /Icons/super-command.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/super-command.ico -------------------------------------------------------------------------------- /Icons/super-command1.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/super-command1.ico -------------------------------------------------------------------------------- /Icons/删除.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/删除.ico -------------------------------------------------------------------------------- /Icons/发送.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/发送.ico -------------------------------------------------------------------------------- /Icons/复制.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/复制.ico -------------------------------------------------------------------------------- /Icons/帮助.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/帮助.ico -------------------------------------------------------------------------------- /Icons/帮助.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/帮助.png -------------------------------------------------------------------------------- /Icons/搜索.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/搜索.ico -------------------------------------------------------------------------------- /Icons/添加.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/添加.ico -------------------------------------------------------------------------------- /Icons/火箭 (1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/火箭 (1).png -------------------------------------------------------------------------------- /Icons/火箭.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/火箭.png -------------------------------------------------------------------------------- /Icons/编辑.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/编辑.ico -------------------------------------------------------------------------------- /Icons/编辑全部.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/编辑全部.ico -------------------------------------------------------------------------------- /Icons/设置.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/设置.ico -------------------------------------------------------------------------------- /Icons/设置.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/设置.png -------------------------------------------------------------------------------- /Icons/退出.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/退出.ico -------------------------------------------------------------------------------- /Icons/重启.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/重启.ico -------------------------------------------------------------------------------- /Icons/闪电五连鞭.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/闪电五连鞭.gif -------------------------------------------------------------------------------- /Icons/龙 - 副本.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/龙 - 副本.ico -------------------------------------------------------------------------------- /Icons/龙 - 副本.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/龙 - 副本.png -------------------------------------------------------------------------------- /Icons/龙.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/龙.ico -------------------------------------------------------------------------------- /Icons/龙.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/龙.jpg -------------------------------------------------------------------------------- /Icons/龙.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/Icons/龙.png -------------------------------------------------------------------------------- /cherry-snippet.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cherry-snippet.exe -------------------------------------------------------------------------------- /cmd/Adventure/Adventure.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Adventure.exe -------------------------------------------------------------------------------- /cmd/Adventure/AutoComplete/Go.ac: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /cmd/Adventure/AutoComplete/Some Words.ud: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /cmd/Adventure/AutoComplete/VB.ac: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /cmd/Adventure/Examples/AutoHotkey/GUI Clones/Device Installation Settings.ahk: -------------------------------------------------------------------------------- 1 | ; Advanced System Settings -> Hardware -> Device Installation Settings (Windows 7) 2 | #NoEnv 3 | #Warn 4 | SetWorkingDir %A_ScriptDir% 5 | 6 | Gui Color, White 7 | Gui Font, s12 c0x003399, Segoe UI 8 | Gui Add, Text, x18 y9 w557 h45, Do you want Windows to download driver software and realistic icons for your devices? 9 | Gui Font 10 | 11 | Gui Font, s9, Segoe UI 12 | Gui Add, Radio, x26 y83 w525 h15, &Yes`, do this automatically (recommended) 13 | Gui Add, Radio, x26 y116 w525 h15 Checked, No`, &let me choose what to do 14 | Gui Add, Radio, x63 y141 w525 h15 Group, &Always install the best driver software from Windows Update. 15 | Gui Add, Radio, x63 y161 w403 h30, &Install driver software from Windows Update if it is not found on my computer. 16 | Gui Add, Radio, x63 y197 w525 h15 Checked, &Never install driver software from Windows Update. 17 | Gui Add, CheckBox, x63 y234 w525 h30, &Replace generic device icons with enhanced icons 18 | Gui Add, Link, x18 y315 w319 h15, Why should I have Windows do this automatically? 19 | Gui Add, Text, x18 y343 w557 h17 Disabled, _____________________________________________________________________________________________________________________________________________ 20 | Gui Add, Button, hWndhSaveBtn x345 y366 w130 h26 Disabled, Save Changes 21 | SendMessage 0x160C, 0, 1,, ahk_id%hSaveBtn% 22 | Gui Add, Button, x487 y366 w88 h26 Default, Cancel 23 | Gui Show, w593 h399, Device Installation Settings - Sample GUI 24 | Return 25 | 26 | GuiEscape: 27 | GuiClose: 28 | ExitApp 29 | -------------------------------------------------------------------------------- /cmd/Adventure/Examples/AutoHotkey/GUI Clones/FLAC Frontend.ahk: -------------------------------------------------------------------------------- 1 | #NoEnv 2 | #Warn 3 | SetWorkingDir %A_ScriptDir% 4 | 5 | Gui Add, ListBox, x12 y12 w393 h134 6 | Gui Add, Button, x412 y12 w75 h23, &Add files 7 | Gui Add, Button, x412 y42 w75 h23, &Remove file 8 | Gui Add, Button, x412 y72 w75 h23, &Clear filelist 9 | Gui Add, GroupBox, x12 y152 w200 h134, Encoding options 10 | Gui Add, Text, x22 y182 w36 h13, Level: 11 | Gui Add, Edit, x60 y179 w21 h20 Center Disabled, 5 12 | Gui Add, Slider, x87 y175 w119 h45 Range0-8 TickInterval1, 5 13 | Gui Add, CheckBox, x25 y213 w123 h17 Checked, Verify after encoding 14 | Gui Add, CheckBox, x25 y237 w128 h17, Calculate ReplayGain 15 | Gui Add, CheckBox, x42 y260 w164 h17 Disabled, Treat input files as one album 16 | Gui Add, GroupBox, x220 y152 w185 h88, General options 17 | Gui Add, CheckBox, x233 y172 w104 h17, Delete input files 18 | Gui Add, CheckBox, x233 y195 w153 h17, Create/read as OGG-FLAC 19 | Gui Add, CheckBox, x233 y218 w133 h17, Keep foreign metadata 20 | Gui Add, GroupBox, x220 y243 w185 h43, Decoding/testing options 21 | Gui Add, CheckBox, x233 y262 w154 h17, Decode/test through errors 22 | Gui Add, Button, x411 y167 w75 h23, Ad&vanced 23 | Gui Add, Button, x412 y234 w75 h23, &Help 24 | Gui Add, Button, x412 y263 w75 h23, A&bout 25 | Gui Add, GroupBox, x12 y292 w469 h53, Output directory (only for encoding and decoding) 26 | Gui Add, Edit, x25 y314 w327 h20 Disabled, << Same as input directory >> 27 | Gui Add, Button, x358 y313 w26 h22, ... 28 | Gui Add, Button, x387 y313 w85 h22, Same as input 29 | Gui Add, Button, x12 y351 w75 h23, &Encode 30 | Gui Add, Button, x107 y351 w75 h23, &Decode 31 | Gui Add, Button, x201 y351 w90 h23, &Test for errors 32 | Gui Add, Button, x311 y351 w75 h23, &Fingerprint 33 | Gui Add, Button, x406 y351 w75 h23, E&xit 34 | 35 | Gui Show, w493 h382, FLAC Frontend - Sample GUI 36 | Return 37 | 38 | GuiEscape: 39 | GuiClose: 40 | ExitApp 41 | -------------------------------------------------------------------------------- /cmd/Adventure/Examples/AutoHotkey/GUI Clones/Menu Design Window.ahk: -------------------------------------------------------------------------------- 1 | ; Visual Basic 1.0 Menu Design Window 2 | #NoEnv 3 | #Warn 4 | SendMode Input 5 | SetWorkingDir %A_ScriptDir% 6 | Menu Tray, UseErrorLevel 7 | 8 | Menu Tray, Icon, ..\Icons\AutoGUI.icl, 58 9 | Gui -MinimizeBox 10 | Gui Font, s8 w700, Segoe UI 11 | Gui Color, White 12 | Gui Add, Text, x8 y12 w60 h23 +0x202, Ca&ption: 13 | Gui Add, Edit, x78 y12 w200 h21 14 | Gui Add, Button, x291 y12 w60 h23, &Done 15 | Gui Add, Text, x7 y44 w60 h23 +0x202, CtlNa&me: 16 | Gui Add, Edit, x78 y44 w200 h21 17 | Gui Add, Button, x291 y43 w60 h23, Cancel 18 | Gui Add, Text, x8 y74 w60 h23 +0x202, Inde&x: 19 | Gui Add, Edit, x78 y76 w46 h21 20 | Gui Add, Text, x132 y74 w76 h23 +0x202, &Accelerator: 21 | Gui Add, ComboBox, x219 y76 w130, (none)|| 22 | Gui Add, CheckBox, x22 y106 w80 h23, &Checked 23 | Gui Add, CheckBox, x148 y106 w80 h23 Checked, &Enabled 24 | Gui Add, CheckBox, x268 y106 w80 h23 Checked, &Visible 25 | Gui Add, GroupBox, x9 y126 w341 h48 +0x9000 26 | Gui Font, s8 w400, Wingdings 27 | Gui Add, Button, x17 y141 w23 h23, ç 28 | Gui Add, Button, x39 y141 w23 h23, è 29 | Gui Add, Button, x61 y141 w23 h23, é 30 | Gui Add, Button, x83 y141 w23 h23, ê 31 | Gui Font, s8 w700, Ms Shell Dlg 2 32 | Gui Add, Button, x115 y141 w70 h23 Default, &Next 33 | Gui Add, Button, x191 y141 w70 h23, &Insert 34 | Gui Add, Button, x268 y141 w70 h23, Dele&te 35 | Gui Add, ListBox, x10 y173 w340 h134, % "||" 36 | Gui Show, w362 h319, Menu Design Window - Sample GUI 37 | SendInput {Alt 2} 38 | Return 39 | 40 | GuiEscape: 41 | GuiClose: 42 | ExitApp 43 | -------------------------------------------------------------------------------- /cmd/Adventure/Examples/AutoHotkey/GUI Clones/Taskbar and Start Menu Properties.ahk: -------------------------------------------------------------------------------- 1 | ; Windows 7 Taskbar and Start Menu Properties 2 | #NoEnv 3 | #Warn 4 | SetWorkingDir %A_ScriptDir% 5 | 6 | Menu Tray, Icon, shell32.dll, 40 7 | 8 | Try { 9 | Gui Add, % "Tab3", x6 y7 w386 h380, Taskbar|Start Menu|Toolbars 10 | } Catch { 11 | Gui Add, Tab2, x6 y7 w386 h380, Taskbar|Start Menu|Toolbars 12 | } 13 | Gui Add, CheckBox, x30 y58 w300 h16 Checked, &Lock the taskbar 14 | Gui Add, CheckBox, x30 y81 w300 h16, A&uto-hide the taskbar 15 | Gui Add, CheckBox, x30 y104 w300 h16, Use small &icons 16 | Gui Add, Text, x30 y131 w150 h16, &Taskbar location on screen: 17 | Gui Add, DropDownList, x186 y127 w165, Bottom||Left|Right|Top 18 | Gui Add, Text, x30 y161 w150 h16, Taskbar &buttons: 19 | Gui Add, DropDownList, x186 y156 w165, Always combine`, hide labels||Combine when taskbar is full|Never combine 20 | Gui Add, GroupBox, x21 y40 w357 h148, Taskbar appearance 21 | Gui Add, Text, x30 y213 w257 h26, Customize which icons and notifications appear in the notification area. 22 | Gui Add, Button, x292 y213 w75 h23, &Customize... 23 | Gui Add, GroupBox, x21 y195 w357 h55, Notification area 24 | Gui Add, Text, x30 y274 w330 h26, Temporarily view the desktop when you move your mouse to the Show desktop button at end of the taskbar. 25 | Gui Add, CheckBox, x30 y307 w300 h16 Checked, Use Aero &Peek to preview the desktop 26 | Gui Add, GroupBox, x21 y257 w357 h78, Preview desktop with Aero Peek 27 | Gui Add, Link, x21 y354 w300 h13, How do I customize the taskbar? 28 | 29 | Gui Tab, 2 30 | Gui Add, Text, x21 y40 w255 h26, To customize how links`, icons`, and menus look and behave in the Start menu`, click Customize. 31 | Gui Add, Button, x298 y36 w80 h23 Default, &Customize... 32 | Gui Add, Text, x21 y86 w108 h13, Power &button action: 33 | Gui Add, DropDownList, x135 y81 w150, Switch user|Log off|Lock|Restart|Sleep|Shut down|| 34 | Gui Add, CheckBox, x31 y140 w336 h16 Checked, Store and display recently opened &programs in the Start menu 35 | Gui Add, CheckBox, x31 y162 w336 h33, Store and display recently opened items in the Start &menu and the taskbar 36 | Gui Add, GroupBox, x21 y118 w357 h81, Privacy 37 | Gui Add, Link, x21 y354 w300 h13, How do I change the way the Start menu looks? 38 | 39 | Gui Tab, 3 40 | Gui Add, Text, x21 y40 w335 h20, Select which toolbars to add to the taskbar. 41 | Gui Add, ListView, x21 y62 w354 h260 -Hdr Checked, Toolbars 42 | LV_Add("", "Address") 43 | LV_Add("", "Links") 44 | LV_Add("", "Desktop") 45 | 46 | Gui Tab 47 | Gui Add, Button, x155 y393 w75 h23 Default, OK 48 | Gui Add, Button, x236 y393 w75 h23, Cancel 49 | Gui Add, Button, x317 y393 w75 h23 Disabled, &Apply 50 | 51 | Gui Show, w398 h423, Taskbar and Start Menu Properties - Sample GUI 52 | Return 53 | 54 | GuiEscape: 55 | GuiClose: 56 | ExitApp 57 | -------------------------------------------------------------------------------- /cmd/Adventure/Examples/AutoHotkey/GUI Clones/Windows Live Installer.ahk: -------------------------------------------------------------------------------- 1 | #NoEnv 2 | #Warn 3 | #SingleInstance Force 4 | SetWorkingDir %A_ScriptDir% 5 | SetBatchLines -1 6 | 7 | Menu Tray, Icon, shell32.dll, 131 8 | 9 | Gui Body: New, LabelBody hWndhBody 10 | Gui Color, White 11 | 12 | Gui Add, Edit, x0 y0 w0 h0 ; Capture focus 13 | Gui Font, s8 w700 cBlack, Segoe UI 14 | Gui Add, Text, x10 y46 w187 h16, You're installing these programs. 15 | Gui Font 16 | Gui Font,, Segoe UI 17 | Gui Add, Text, x10 y62 w456 h16 +0x200, As each item finishes, you can start using it while the others continue to install. 18 | Gui Add, Text, x10 y80 w480 h1 0x10 ; Separator 19 | 20 | If (FileExist(A_WinDir . "\System32\ieframe.dll")) { 21 | Gui Add, Picture, x24 y90 w16 h16 Icon40, ieframe.dll 22 | } 23 | Gui Add, Text, x48 y90 w100 h16 +0x200, Installed 24 | Gui Add, Text, x48 y107 w100 h16 +0x200, Installing 25 | Gui Add, Text, x48 y124 w100 h16 +0x200, 100`% downloaded 26 | 27 | Gui Font, w700 c0x0080ff, Segoe UI 28 | Gui Add, Text, x164 y90 w100 h16 +0x200, Start Messenger 29 | Gui Font 30 | Gui Font, s8 w700, Segoe UI 31 | Gui Add, Text, x164 y107 w100 h16 +0x200, Writer 32 | Gui Font 33 | Gui Font, w700 cBlack, Segoe UI 34 | Gui Add, Text, x164 y124 w100 h16 +0x200, Sign-in Assistant 35 | Gui Font 36 | 37 | Gui Font,, Segoe UI 38 | Gui Add, Text, x336 y90 w120 h16 +0x200, Done 39 | Gui Font 40 | Gui Add, Progress, x335 y108 w120 h16 -Smooth, 5 41 | 42 | Gui Font, w700 cBlack, Segoe UI 43 | Gui Add, Text, x10 y224 w480 h16 +0x200, Select any additional products you want to install. 44 | Gui Font 45 | Gui Add, Text, x10 y243 w480 h2 0x10 ; Separator 46 | Gui Font, w700, Segoe UI 47 | Gui Add, CheckBox, x33 y253 w42 h23, Mail 48 | Gui Add, CheckBox, x33 y282 w60 h23, Toolbar 49 | Gui Add, CheckBox, x33 y311 w92 h23, Photo Gallery 50 | Gui Add, CheckBox, x33 y342 w92 h23, Family Safety 51 | Gui Font 52 | 53 | Gui Font,, Segoe UI 54 | Gui Add, Text, x78 y253 w410 h23 +0x200, (15 MB) - Access all your e-mail accounts in one place 55 | Gui Add, Text, x95 y282 w393 h23 +0x200, (5 MB) - Search from any Web page 56 | Gui Add, Text, x126 y311 w362 h23 +0x200, (13 MB) - Easily organize, edit, and share your photos and videos 57 | Gui Add, Text, x126 y341 w364 h23 +0x200, (3 MB) - Help keep your family safe online 58 | 59 | Gui Add, Button, x14 y376 w110 h23 Disabled, Add to installation 60 | Gui Font, c0x0080ff, Segoe UI 61 | Gui Add, Text, x10 y400 w263 h25 +0x200, Learn more about these products 62 | Gui Font 63 | 64 | Gui Add, Progress, x-1 y430 w502 h49 Border, 0 65 | Gui Font,, Segoe UI 66 | Gui Add, Button, x413 y439 w75 h23, Cancel 67 | 68 | Gui Show, w499 h471, Windows Live Installer - Sample GUI 69 | 70 | Gui Header: New, -Caption +Parent%hBody% 71 | Gui Header: Color, 0x008EBC 72 | Gui Header: Add, Picture, x24 y6 w28 h28 Icon131, shell32.dll 73 | Gui Font, s14 c0xF3F8FB, Ms Shell Dlg 2 74 | Gui Header: Add, Text, x54 y1 w394 h38 +0x200 BackgroundTrans, Windows Live 75 | Gui Font 76 | Gui Header: Show, x0 y0 w500 h38 77 | 78 | Gui Info: New, -Caption +Parent%hBody% 79 | Gui Info: Color, 0xFFFFE1 80 | Gui Info: Font,, Segoe UI 81 | Gui Info: Add, Picture, x4 y4 w16 h16 Icon222, shell32.dll 82 | Gui Info: Add, Text, x25 y0 w480 h23 +0x200, Installation may take a few minutes. Feel free to do other things while you wait. 83 | Gui Info: Font 84 | Gui Info: Show, x10 y196 w480 h23 85 | Return 86 | 87 | BodyEscape: 88 | BodyClose: 89 | ExitApp 90 | -------------------------------------------------------------------------------- /cmd/Adventure/Examples/C#/OrderBy.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | 5 | namespace ConsoleApp1 6 | { 7 | public class Program 8 | { 9 | public static void Main(string[] args) 10 | { 11 | // Create a delicious data source. 12 | string[] fruits = { "cherry", "apple", "blueberry" }; 13 | 14 | // Query for ascending sort. 15 | IEnumerable sortAscendingQuery = 16 | from fruit in fruits 17 | orderby fruit //"ascending" is default 18 | select fruit; 19 | 20 | // Query for descending sort. 21 | IEnumerable sortDescendingQuery = 22 | from w in fruits 23 | orderby w descending 24 | select w; 25 | 26 | // Execute the query. 27 | Console.WriteLine("Ascending:"); 28 | foreach (string s in sortAscendingQuery) 29 | { 30 | Console.WriteLine(s); 31 | } 32 | 33 | // Execute the query. 34 | Console.WriteLine(Environment.NewLine + "Descending:"); 35 | foreach (string s in sortDescendingQuery) 36 | { 37 | Console.WriteLine(s); 38 | } 39 | 40 | // Keep the console window open in debug mode. 41 | Console.WriteLine("Press any key to exit."); 42 | Console.ReadKey(); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /cmd/Adventure/Examples/C-C++/Dialogs/MessageBoxes.c: -------------------------------------------------------------------------------- 1 | #define UNICODE 2 | #define WIN32_LEAN_AND_MEAN 3 | #include 4 | #include 5 | #include 6 | 7 | #pragma comment(lib, "user32") 8 | #pragma comment(lib, "comctl32") 9 | 10 | #pragma comment(linker,"\"/manifestdependency:type='win32' \ 11 | name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \ 12 | processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 13 | 14 | typedef int (*MESSAGEBOXTIMEOUT)(HWND, LPCTSTR, LPCTSTR, UINT, WORD, DWORD); 15 | 16 | int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { 17 | HMODULE hMod, hLib; 18 | MSGBOXPARAMS lpmbp; 19 | MESSAGEBOXTIMEOUT MessageBoxTimeout; 20 | int nButtonPressed = 0; 21 | 22 | // MessageBox 23 | MessageBox(0, TEXT("A simple message box."), TEXT("MessageBox"), MB_OK | MB_ICONINFORMATION); 24 | 25 | // MessageBoxTimeout 26 | hMod = GetModuleHandle(TEXT("user32.dll")); 27 | if (hMod != NULL) { 28 | MessageBoxTimeout = (MESSAGEBOXTIMEOUT) GetProcAddress(hMod, "MessageBoxTimeoutW"); 29 | if (MessageBoxTimeout != NULL) { 30 | MessageBoxTimeout(0 31 | , TEXT("This message box will close automatically after 3 seconds.") 32 | , TEXT("MessageBoxTimeout") 33 | , MB_OK | MB_ICONWARNING, 0 34 | , 3000); 35 | } 36 | } 37 | 38 | // MessageBoxIndirect 39 | hLib = LoadLibraryEx(TEXT("imageres.dll"), 0, LOAD_LIBRARY_AS_DATAFILE); // Icon resource 40 | lpmbp.cbSize = sizeof (MSGBOXPARAMS); 41 | lpmbp.hwndOwner = NULL; 42 | lpmbp.hInstance = hLib; 43 | lpmbp.lpszText = TEXT("Message box with custom icon."); 44 | lpmbp.lpszCaption = TEXT("MessageBoxIndirect"); 45 | lpmbp.dwStyle = MB_USERICON; 46 | lpmbp.lpszIcon = MAKEINTRESOURCE(114); 47 | 48 | MessageBoxIndirect(&lpmbp); 49 | 50 | FreeLibrary(hLib); 51 | 52 | // TaskDialog 53 | if (TaskDialog(GetDesktopWindow(), NULL, TEXT("Task Dialog"), TEXT("Main Instruction"), TEXT("Content") 54 | , TDCBF_OK_BUTTON | TDCBF_CANCEL_BUTTON, MAKEINTRESOURCE(144), &nButtonPressed) == S_OK) { 55 | OutputDebugString(nButtonPressed == IDOK ? TEXT("OK button pressed.") : TEXT("Cancel pressed.")); 56 | } 57 | 58 | return 0; 59 | } 60 | -------------------------------------------------------------------------------- /cmd/Adventure/Examples/C-C++/Dialogs/Open File Dialog.c: -------------------------------------------------------------------------------- 1 | #define UNICODE 2 | #define WIN32_LEAN_AND_MEAN 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | #pragma comment(lib, "user32") 9 | #pragma comment(lib, "comdlg32") 10 | 11 | #pragma comment(linker,"\"/manifestdependency:type='win32' \ 12 | name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \ 13 | processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 14 | 15 | int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) 16 | { 17 | TCHAR file_buf[65535]; 18 | BOOL result; 19 | 20 | OPENFILENAME ofn = {0}; 21 | ofn.lStructSize = sizeof(OPENFILENAME); 22 | ofn.lpstrTitle = TEXT("Select file"); 23 | ofn.lpstrFilter = TEXT("All Files (*.*)\0*.*\0Text Documents (*.txt)\0*.txt\0"); 24 | ofn.lpstrFile = file_buf; 25 | ofn.nMaxFile = sizeof(file_buf) - 1; 26 | ofn.lpstrInitialDir = NULL; 27 | ofn.Flags = OFN_HIDEREADONLY | OFN_EXPLORER; 28 | result = GetOpenFileName(&ofn); 29 | 30 | if (result) { 31 | MessageBox(0, file_buf, TEXT("Selected file"), MB_OK | MB_ICONINFORMATION); 32 | } 33 | 34 | return 0; 35 | } 36 | -------------------------------------------------------------------------------- /cmd/Adventure/Examples/C-C++/Dialogs/Screen Resolution.c: -------------------------------------------------------------------------------- 1 | #define UNICODE 2 | #include 3 | #include 4 | #include 5 | 6 | #pragma comment(lib, "user32") 7 | 8 | #pragma comment(linker,"\"/manifestdependency:type='win32' \ 9 | name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \ 10 | processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 11 | 12 | int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { 13 | TCHAR pszDest[40]; 14 | size_t cchDest = 40; 15 | 16 | TCHAR* pszTxt = TEXT("Screen resolution: "); 17 | LPCTSTR pszFormat = TEXT("%s %d x %d.\n"); 18 | 19 | int cxScreen = GetSystemMetrics(SM_CXSCREEN); 20 | int cyScreen = GetSystemMetrics(SM_CYSCREEN); 21 | 22 | HRESULT hr = StringCchPrintf(pszDest, cchDest, pszFormat, pszTxt, cxScreen, cyScreen); 23 | 24 | MessageBox(NULL, (LPCTSTR)pszDest, TEXT("Information"), MB_ICONINFORMATION); 25 | 26 | return 0; 27 | } 28 | -------------------------------------------------------------------------------- /cmd/Adventure/Examples/C-C++/File IO/CurrentDirectory.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #define BUFSIZE MAX_PATH 5 | 6 | void _tmain(int argc, TCHAR **argv) 7 | { 8 | TCHAR Buffer[BUFSIZE]; 9 | DWORD dwRet; 10 | 11 | if (argc != 2) { 12 | _tprintf(TEXT("Usage: %s \n"), argv[0]); 13 | return; 14 | } 15 | 16 | dwRet = GetCurrentDirectory(BUFSIZE, Buffer); 17 | 18 | if (dwRet == 0) { 19 | printf("GetCurrentDirectory failed (%d)\n", GetLastError()); 20 | return; 21 | } 22 | 23 | if (dwRet > BUFSIZE) { 24 | printf("Buffer too small; need %d characters\n", dwRet); 25 | return; 26 | } 27 | 28 | if (!SetCurrentDirectory(argv[1])) { 29 | printf("SetCurrentDirectory failed (%d)\n", GetLastError()); 30 | return; 31 | } 32 | 33 | _tprintf(TEXT("Set current directory to %s\n"), argv[1]); 34 | 35 | if (!SetCurrentDirectory(Buffer)) { 36 | printf("SetCurrentDirectory failed (%d)\n", GetLastError()); 37 | return; 38 | } 39 | 40 | _tprintf(TEXT("Restored previous directory (%s)\n"), Buffer); 41 | } 42 | -------------------------------------------------------------------------------- /cmd/Adventure/Examples/C-C++/File IO/FileAppend.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | int __cdecl _tmain(int argc, TCHAR *argv[]) 6 | { 7 | HANDLE hFile; 8 | char DataBuffer[] = "This is some test data to write to the file.\n"; 9 | DWORD dwBytesToWrite = (DWORD)strlen(DataBuffer); 10 | DWORD dwBytesWritten; 11 | BOOL bError = FALSE; 12 | 13 | // Open the existing file, or if the file does not exist, 14 | // create a new file. 15 | hFile = CreateFile(TEXT("Log.txt"), // open Log.txt 16 | FILE_APPEND_DATA, // open for writing 17 | 0, // do not share 18 | NULL, // no security 19 | OPEN_ALWAYS, // open or create 20 | FILE_ATTRIBUTE_NORMAL, // normal file 21 | NULL); // no attr. template 22 | 23 | if (hFile == INVALID_HANDLE_VALUE) { 24 | printf("Could not open Log.txt.\n"); 25 | return 1; 26 | } 27 | 28 | bError = WriteFile(hFile, // open file handle 29 | DataBuffer, // start of data to write 30 | dwBytesToWrite, // number of bytes to write 31 | &dwBytesWritten, // number of bytes that were written 32 | NULL); // no overlapped structure 33 | 34 | if (bError == FALSE || dwBytesWritten != dwBytesToWrite) { 35 | printf("Error saving file.\n"); 36 | return 2; 37 | } 38 | 39 | CloseHandle(hFile); 40 | return 0; 41 | } 42 | -------------------------------------------------------------------------------- /cmd/Adventure/Examples/C-C++/File IO/ListFiles.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | #pragma comment(lib, "User32.lib") 7 | 8 | void DisplayErrorBox(LPTSTR lpszFunction); 9 | 10 | int _tmain(int argc, TCHAR *argv[]) 11 | { 12 | WIN32_FIND_DATA ffd; 13 | LARGE_INTEGER filesize; 14 | TCHAR szDir[MAX_PATH]; 15 | size_t length_of_arg; 16 | HANDLE hFind = INVALID_HANDLE_VALUE; 17 | DWORD dwError = 0; 18 | 19 | // If the directory is not specified as a command-line argument, 20 | // print usage. 21 | if (argc != 2) { 22 | _tprintf(TEXT("\nUsage: %s \n"), argv[0]); 23 | return (-1); 24 | } 25 | 26 | // Check that the input path plus 3 is not longer than MAX_PATH. 27 | // Three characters are for the "\*" plus NULL appended below. 28 | StringCchLength(argv[1], MAX_PATH, &length_of_arg); 29 | if (length_of_arg > (MAX_PATH - 3)) { 30 | _tprintf(TEXT("\nDirectory path is too long.\n")); 31 | return (-1); 32 | } 33 | 34 | _tprintf(TEXT("\nTarget directory is %s\n\n"), argv[1]); 35 | 36 | // Prepare string for use with FindFile functions. First, copy the 37 | // string to a buffer, then append '\*' to the directory name. 38 | StringCchCopy(szDir, MAX_PATH, argv[1]); 39 | StringCchCat(szDir, MAX_PATH, TEXT("\\*")); 40 | 41 | // Find the first file in the directory. 42 | hFind = FindFirstFile(szDir, &ffd); 43 | if (INVALID_HANDLE_VALUE == hFind) { 44 | DisplayErrorBox(TEXT("FindFirstFile")); 45 | return dwError; 46 | } 47 | 48 | // List all the files in the directory with some info about them. 49 | do { 50 | if (ffd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) { 51 | _tprintf(TEXT(" %s \n"), ffd.cFileName); 52 | 53 | } else { 54 | filesize.LowPart = ffd.nFileSizeLow; 55 | filesize.HighPart = ffd.nFileSizeHigh; 56 | _tprintf(TEXT(" %s %ld bytes\n"), ffd.cFileName, filesize.QuadPart); 57 | } 58 | } while (FindNextFile(hFind, &ffd) != 0); 59 | 60 | dwError = GetLastError(); 61 | if (dwError != ERROR_NO_MORE_FILES) { 62 | DisplayErrorBox(TEXT("FindFirstFile")); 63 | } 64 | 65 | FindClose(hFind); 66 | return dwError; 67 | } 68 | 69 | void DisplayErrorBox(LPTSTR lpszFunction) 70 | { 71 | // Retrieve the system error message for the last-error code 72 | LPVOID lpMsgBuf; 73 | LPVOID lpDisplayBuf; 74 | DWORD dw = GetLastError(); 75 | 76 | FormatMessage( 77 | FORMAT_MESSAGE_ALLOCATE_BUFFER | 78 | FORMAT_MESSAGE_FROM_SYSTEM | 79 | FORMAT_MESSAGE_IGNORE_INSERTS, 80 | NULL, 81 | dw, 82 | MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), 83 | (LPTSTR) &lpMsgBuf, 84 | 0, NULL); 85 | 86 | // Display the error message and clean up 87 | lpDisplayBuf = (LPVOID)LocalAlloc(LMEM_ZEROINIT, 88 | (lstrlen((LPCTSTR)lpMsgBuf) + lstrlen((LPCTSTR)lpszFunction) + 40) * sizeof(TCHAR)); 89 | 90 | StringCchPrintf((LPTSTR)lpDisplayBuf, 91 | LocalSize(lpDisplayBuf) / sizeof(TCHAR), 92 | TEXT("%s failed with error %d: %s"), 93 | lpszFunction, dw, lpMsgBuf); 94 | 95 | MessageBox(NULL, (LPCTSTR)lpDisplayBuf, TEXT("Error"), MB_OK); 96 | 97 | LocalFree(lpMsgBuf); 98 | LocalFree(lpDisplayBuf); 99 | } 100 | -------------------------------------------------------------------------------- /cmd/Adventure/Examples/C-C++/File IO/LogTime.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main() { 5 | FILE *pFile; 6 | time_t now; 7 | struct tm *ts; 8 | char buf[100]; 9 | 10 | // Get the current time 11 | now = time(NULL); 12 | ts = localtime(&now); 13 | 14 | // Format the string 15 | strftime(buf, sizeof(buf), "%A %Y-%m-%d %H:%M:%S\n", ts); 16 | 17 | // Open the file to append data 18 | pFile = fopen("LogTime.txt", "a"); 19 | 20 | if (pFile != NULL) { 21 | fputs(buf, pFile); 22 | fclose(pFile); 23 | } 24 | 25 | return 0; 26 | } 27 | -------------------------------------------------------------------------------- /cmd/Adventure/Examples/C-C++/File Mapping/CreateFileMapping.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | #define BUF_SIZE 256 7 | TCHAR szName[]=TEXT("\MyFileMappingObject"); 8 | TCHAR szMsg[]=TEXT("Message from first process."); 9 | 10 | int _tmain() 11 | { 12 | HANDLE hMapFile; 13 | LPCTSTR pBuf; 14 | 15 | hMapFile = CreateFileMapping( 16 | INVALID_HANDLE_VALUE, // use paging file 17 | NULL, // default security 18 | PAGE_READWRITE, // read/write access 19 | 0, // maximum object size (high-order DWORD) 20 | BUF_SIZE, // maximum object size (low-order DWORD) 21 | szName); // name of mapping object 22 | 23 | if (hMapFile == NULL) 24 | { 25 | _tprintf(TEXT("Could not create file mapping object (%d).\n"), 26 | GetLastError()); 27 | return 1; 28 | } 29 | pBuf = (LPTSTR) MapViewOfFile(hMapFile, // handle to map object 30 | FILE_MAP_ALL_ACCESS, // read/write permission 31 | 0, 32 | 0, 33 | BUF_SIZE); 34 | 35 | if (pBuf == NULL) 36 | { 37 | _tprintf(TEXT("Could not map view of file (%d).\n"), 38 | GetLastError()); 39 | 40 | CloseHandle(hMapFile); 41 | 42 | return 1; 43 | } 44 | 45 | 46 | CopyMemory((PVOID)pBuf, szMsg, (_tcslen(szMsg) * sizeof(TCHAR))); 47 | _getch(); 48 | 49 | UnmapViewOfFile(pBuf); 50 | 51 | CloseHandle(hMapFile); 52 | 53 | return 0; 54 | } 55 | -------------------------------------------------------------------------------- /cmd/Adventure/Examples/C-C++/File Mapping/Creating Named Shared Memory.txt: -------------------------------------------------------------------------------- 1 | https://docs.microsoft.com/en-us/windows/win32/memory/creating-named-shared-memory -------------------------------------------------------------------------------- /cmd/Adventure/Examples/C-C++/File Mapping/OpenFileMapping.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #pragma comment(lib, "user32.lib") 6 | 7 | #define BUF_SIZE 256 8 | TCHAR szName[]=TEXT("\MyFileMappingObject"); 9 | 10 | int _tmain() 11 | { 12 | HANDLE hMapFile; 13 | LPCTSTR pBuf; 14 | 15 | hMapFile = OpenFileMapping( 16 | FILE_MAP_ALL_ACCESS, // read/write access 17 | FALSE, // do not inherit the name 18 | szName); // name of mapping object 19 | 20 | if (hMapFile == NULL) 21 | { 22 | _tprintf(TEXT("Could not open file mapping object (%d).\n"), 23 | GetLastError()); 24 | return 1; 25 | } 26 | 27 | pBuf = (LPTSTR) MapViewOfFile(hMapFile, // handle to map object 28 | FILE_MAP_ALL_ACCESS, // read/write permission 29 | 0, 30 | 0, 31 | BUF_SIZE); 32 | 33 | if (pBuf == NULL) 34 | { 35 | _tprintf(TEXT("Could not map view of file (%d).\n"), 36 | GetLastError()); 37 | 38 | CloseHandle(hMapFile); 39 | 40 | return 1; 41 | } 42 | 43 | MessageBox(NULL, pBuf, TEXT("Process2"), MB_OK); 44 | 45 | UnmapViewOfFile(pBuf); 46 | 47 | CloseHandle(hMapFile); 48 | 49 | return 0; 50 | } 51 | -------------------------------------------------------------------------------- /cmd/Adventure/Examples/HTML/Images/Script.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Examples/HTML/Images/Script.ico -------------------------------------------------------------------------------- /cmd/Adventure/Examples/HTML/JavaScript Basics/Basics.htm: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | JavaScript Basics 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 55 | 56 | 57 | 58 | 59 | 60 | 61 |

JavaScript Basics

62 |

Open the web developer console to examine the output

63 | 64 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /cmd/Adventure/Examples/HTML/JavaScript Basics/Evaluator.htm: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | JavaScript Eval 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 55 | 56 | 74 | 75 | 76 | 77 | 78 |

JavaScript Eval

79 |

Enter JavaScript code and press the Execute button

80 | 81 |
103 | 104 | 105 | 106 | 107 | 108 | -------------------------------------------------------------------------------- /cmd/Adventure/Help/AutoHotkey.chm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Help/AutoHotkey.chm -------------------------------------------------------------------------------- /cmd/Adventure/Help/Credits.htm: -------------------------------------------------------------------------------- 1 |  2 | 3 | Adventure - Credits 4 | 5 | 6 | 7 | 34 | 35 | 36 | 37 |
38 | 39 | Developed by Alguimist (Gilberto Barbosa Babiretzki) 40 |
41 | 42 |

Acknowledgements

43 |

Adventure is not a "one man's war". To accomplish the alchemical work, pieces were gathered from a variety of sources, whose authors include:

44 |
    45 |
  • Aleksandar Lekov
  • 46 |
  • cocobelgica
  • 47 |
  • Drugwash
  • 48 |
  • Fanatic Guru
  • 49 |
  • fincs
  • 50 |
  • GeekDude
  • 51 |
  • gwarble
  • 52 |
  • jeeswg
  • 53 |
  • jethrow
  • 54 |
  • jNizM
  • 55 |
  • just me
  • 56 |
  • kczx3
  • 57 |
  • lexikos
  • 58 |
  • maestrith
  • 59 |
  • majkinetor
  • 60 |
  • MJs
  • 61 |
  • Neil Hodgson
  • 62 |
  • Rajat
  • 63 |
  • RaptorX
  • 64 |
  • Rorqual
  • 65 |
  • Sean
  • 66 |
  • Shengalts Aleksander
  • 67 |
  • SKAN
  • 68 |
  • Solar
  • 69 |
  • szujeq
  • 70 |
  • tmplinshi
  • 71 |
72 |

Thanks also to those who participate in the forum by reporting bugs, requesting features and providing feedback. Thanks to the AHK community.

73 |

Icons

74 |

Some icons by Yusuke Kamiyamane.

75 |

Main icon by Supratim Nayak.

76 |

Hosting

77 |

Project hosted on SourceForge.

78 | 79 | 80 | -------------------------------------------------------------------------------- /cmd/Adventure/Help/Images/Adventure.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Help/Images/Adventure.ico -------------------------------------------------------------------------------- /cmd/Adventure/Help/Images/Windows.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Help/Images/Windows.ico -------------------------------------------------------------------------------- /cmd/Adventure/Help/Keyboard.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Help/Keyboard.exe -------------------------------------------------------------------------------- /cmd/Adventure/Help/License.txt: -------------------------------------------------------------------------------- 1 | No portion of Adventure or any code derived from it can be used in any software that is sold/licensed commercially, except when otherwise noted. -------------------------------------------------------------------------------- /cmd/Adventure/Icons/8x8.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Icons/8x8.bmp -------------------------------------------------------------------------------- /cmd/Adventure/Icons/A_Variables.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Icons/A_Variables.ico -------------------------------------------------------------------------------- /cmd/Adventure/Icons/Adventure.icl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Icons/Adventure.icl -------------------------------------------------------------------------------- /cmd/Adventure/Icons/Adventure.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Icons/Adventure.ico -------------------------------------------------------------------------------- /cmd/Adventure/Icons/AhkDirectives.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Icons/AhkDirectives.ico -------------------------------------------------------------------------------- /cmd/Adventure/Icons/Auto-GUI.icl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Icons/Auto-GUI.icl -------------------------------------------------------------------------------- /cmd/Adventure/Icons/AutoTaskMan.icl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Icons/AutoTaskMan.icl -------------------------------------------------------------------------------- /cmd/Adventure/Icons/Breakpoint.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char * x[] = { 3 | "15 15 64 1", 4 | " c None", 5 | ". c #860809", 6 | "+ c #740D13", 7 | "@ c #940E0B", 8 | "# c #7F1A20", 9 | "$ c #A21414", 10 | "% c #7F252B", 11 | "& c #9F2825", 12 | "* c #B22725", 13 | "= c #8E3138", 14 | "- c #B82D29", 15 | "; c #B5332C", 16 | "> c #BE3D36", 17 | ", c #934E54", 18 | "' c #C6433B", 19 | ") c #C34941", 20 | "! c #CE4B42", 21 | "~ c #A75558", 22 | "{ c #BF514C", 23 | "] c #D04D49", 24 | "^ c #985D61", 25 | "/ c #CD5249", 26 | "( c #A76264", 27 | "_ c #D85B52", 28 | ": c #A46A6E", 29 | "< c #DA5D59", 30 | "[ c #DA645C", 31 | "} c #C26C6B", 32 | "| c #D8695E", 33 | "1 c #AC7577", 34 | "2 c #E06961", 35 | "3 c #B77676", 36 | "4 c #DE6E62", 37 | "5 c #E2726C", 38 | "6 c #CD7C78", 39 | "7 c #E0786E", 40 | "8 c #C97F7B", 41 | "9 c #E47B71", 42 | "0 c #E67E79", 43 | "a c #E58174", 44 | "b c #C68C8E", 45 | "c c #D48985", 46 | "d c #E7857D", 47 | "e c #DD8A82", 48 | "f c #E88C82", 49 | "g c #EA8F8A", 50 | "h c #EB968E", 51 | "i c #D99D99", 52 | "j c #EF9A92", 53 | "k c #EFA096", 54 | "l c #DDA6A0", 55 | "m c #D9A7A6", 56 | "n c #F0A39E", 57 | "o c #F1ABA3", 58 | "p c #F3B3A9", 59 | "q c #F6B7B3", 60 | "r c #D8CED5", 61 | "s c #DFDAD8", 62 | "t c #E6E0DF", 63 | "u c #EFF2EE", 64 | "v c #F1F6F9", 65 | "w c #F7FDFF", 66 | "x c #F2FFFF", 67 | "y c #FEFFFC", 68 | " mc66m ", 69 | " lehhf0|{b ", 70 | " ihnokjgd4)3 ", 71 | " lhopponhd7[>3 ", 72 | " ekopqonhd92/& ", 73 | "mdkoppokhd92/*1", 74 | "8fjnoonjgd5[/-=", 75 | "}0ghkkjgd95[]-#", 76 | "}5dffgfd952_'*%", 77 | "b[79da0952_]>$:", 78 | " {[455522_]'*. ", 79 | " 3'<[[<<_!>;@^ ", 80 | " ~;!]]!'>-@, ", 81 | " (&*--*$., ", 82 | " :%+%^ "}; 83 | -------------------------------------------------------------------------------- /cmd/Adventure/Icons/BugBlue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Icons/BugBlue.png -------------------------------------------------------------------------------- /cmd/Adventure/Icons/BugRed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Icons/BugRed.png -------------------------------------------------------------------------------- /cmd/Adventure/Icons/COM Inspector.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Icons/COM Inspector.ico -------------------------------------------------------------------------------- /cmd/Adventure/Icons/Constantine.icl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Icons/Constantine.icl -------------------------------------------------------------------------------- /cmd/Adventure/Icons/Constantine.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Icons/Constantine.ico -------------------------------------------------------------------------------- /cmd/Adventure/Icons/DragMove.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Icons/DragMove.cur -------------------------------------------------------------------------------- /cmd/Adventure/Icons/Error.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char * x[] = { 3 | "16 16 65 1", 4 | " c None", 5 | ". c #752724", 6 | "+ c #762825", 7 | "@ c #7D2827", 8 | "# c #812B2A", 9 | "$ c #882B2D", 10 | "% c #892C2E", 11 | "& c #8A2D2F", 12 | "* c #932D2E", 13 | "= c #8C2F30", 14 | "- c #942E2F", 15 | "; c #8F302D", 16 | "> c #952F2F", 17 | ", c #9A3333", 18 | "' c #9D3635", 19 | ") c #A33538", 20 | "! c #A83835", 21 | "~ c #A93A37", 22 | "{ c #B03939", 23 | "] c #B23A3A", 24 | "^ c #B33B3B", 25 | "/ c #B43C3C", 26 | "( c #BB3B3F", 27 | "_ c #B53D3D", 28 | ": c #BC3C40", 29 | "< c #BD3D41", 30 | "[ c #C03F43", 31 | "} c #C14143", 32 | "| c #BF4644", 33 | "1 c #C04745", 34 | "2 c #C14846", 35 | "3 c #C24947", 36 | "4 c #C34A48", 37 | "5 c #C44B4E", 38 | "6 c #C54C4F", 39 | "7 c #C25150", 40 | "8 c #C45251", 41 | "9 c #C55352", 42 | "0 c #C65452", 43 | "a c #C75553", 44 | "b c #C85654", 45 | "c c #C85D5D", 46 | "d c #C95E5E", 47 | "e c #CB5F5F", 48 | "f c #CC6060", 49 | "g c #CE6262", 50 | "h c #CA6768", 51 | "i c #CC6869", 52 | "j c #CD696A", 53 | "k c #CE6A6B", 54 | "l c #CF6B6D", 55 | "m c #CD6F6E", 56 | "n c #D07170", 57 | "o c #D17271", 58 | "p c #D0797A", 59 | "q c #D27B7C", 60 | "r c #D37C7D", 61 | "s c #D38280", 62 | "t c #D58482", 63 | "u c #D88F90", 64 | "v c #E29F9D", 65 | "w c #E4A8AA", 66 | "x c #E6B1B0", 67 | "y c #E8B3B2", 68 | "z c #FFFCFA", 69 | " zzzzzzzzzzzzzz ", 70 | "zxpkdb9674|}/)sz", 71 | "zpvuqokjgec91{%z", 72 | "zkutnjfyz861}^;z", 73 | "zfroic9zzz__/{-z", 74 | "zamkdb6|zzz{/]>z", 75 | "z9igc94|:zzz^]>z", 76 | "z2dzzzzzzzzzz^-z", 77 | "z|azzzzzzzzzz/-z", 78 | "z(7aa0865zzz}/;z", 79 | "z^189977zzz3|/&z", 80 | "z!<2655zzz75}{%z", 81 | "z'^:}}|wz321:!#z", 82 | "z*)~{{^/___^~,.z", 83 | "zq@#$$%%=&&$#+nz", 84 | " zzzzzzzzzzzzzz "}; 85 | -------------------------------------------------------------------------------- /cmd/Adventure/Icons/ErrorView.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Icons/ErrorView.ico -------------------------------------------------------------------------------- /cmd/Adventure/Icons/Expressive.icl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Icons/Expressive.icl -------------------------------------------------------------------------------- /cmd/Adventure/Icons/Find in Files.icl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Icons/Find in Files.icl -------------------------------------------------------------------------------- /cmd/Adventure/Icons/Handpoint1.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char * x[] = { 3 | "16 16 65 1", 4 | " c None", 5 | ". c #813F00", 6 | "+ c #854200", 7 | "@ c #894603", 8 | "# c #8C4700", 9 | "$ c #8D4800", 10 | "% c #944900", 11 | "& c #984B03", 12 | "* c #994C04", 13 | "= c #A05200", 14 | "- c #A75205", 15 | "; c #AC5600", 16 | "> c #B05902", 17 | ", c #B25B04", 18 | "' c #A95F18", 19 | ") c #B65E00", 20 | "! c #BF5F02", 21 | "~ c #C16105", 22 | "{ c #AF7033", 23 | "] c #C26D1A", 24 | "^ c #C87220", 25 | "/ c #CA7418", 26 | "( c #B47A3A", 27 | "_ c #CC894B", 28 | ": c #CA965F", 29 | "< c #D39E66", 30 | "[ c #D29E6C", 31 | "} c #D39F6D", 32 | "| c #D6A068", 33 | "1 c #D5A06E", 34 | "2 c #D6A16F", 35 | "3 c #D7A270", 36 | "4 c #D3A571", 37 | "5 c #D5A672", 38 | "6 c #DAA673", 39 | "7 c #DBA774", 40 | "8 c #D7A974", 41 | "9 c #DDA875", 42 | "0 c #D9AB76", 43 | "a c #DBAD78", 44 | "b c #E1AC79", 45 | "c c #E5AD6E", 46 | "d c #DEAF7A", 47 | "e c #E5AF7C", 48 | "f c #E1B27D", 49 | "g c #E3B47F", 50 | "h c #E5B580", 51 | "i c #E6B681", 52 | "j c #E8B883", 53 | "k c #EABB85", 54 | "l c #EEBE88", 55 | "m c #EFBF89", 56 | "n c #F0C08B", 57 | "o c #F1C18C", 58 | "p c #F4C38E", 59 | "q c #F1C790", 60 | "r c #F7C691", 61 | "s c #F2C891", 62 | "t c #F4CC9A", 63 | "u c #F8CF9D", 64 | "v c #F9D09E", 65 | "w c #FAD19F", 66 | "x c #FBD2A0", 67 | "y c #FFD6A3", 68 | "z c #FDDBA6", 69 | " ", 70 | " ~~ ", 71 | " /yz! ", 72 | " ^wv^ ", 73 | " ]qi'=>))))) ", 74 | " >]nootxxxxxxs>", 75 | " >cojhdiun***** ", 76 | " ;ohd81atttn; ", 77 | " -nfa5}0r|%%% ", 78 | " =kd04}8ppp_ ", 79 | " & c #3B5DC1", 17 | ", c #FAFAFA", 18 | "' c #395BBE", 19 | ") c #F9F9F9", 20 | "! c #F3F3F3", 21 | "~ c #5F79C3", 22 | "{ c #2D4FB3", 23 | "] c #F6F6F6", 24 | "^ c #2E50B4", 25 | "/ c #F0F0F0", 26 | "( c #EBEBEB", 27 | "_ c #E0E0E0", 28 | ": c #4F68B4", 29 | "< c #2446AB", 30 | "[ c #CECECE", 31 | "} c #D1D1D2", 32 | "| c #DDDDDE", 33 | "1 c #2648AC", 34 | "2 c #F4F4F4", 35 | "3 c #EEEEEE", 36 | "4 c #2244AD", 37 | "5 c #D0D0D2", 38 | "6 c #D6D6D7", 39 | "7 c #2244AB", 40 | "8 c #E5E5E7", 41 | "9 c #2648B7", 42 | "0 c #D4D4D8", 43 | "a c #D8D8DB", 44 | "b c #2345AF", 45 | "c c #EAEAED", 46 | "d c #DADAE1", 47 | "e c #EDEDF1", 48 | "f c #637CD5", 49 | "g c #2E50C5", 50 | "h c #E3E3E9", 51 | "i c #D9D9E0", 52 | "j c #DBDBE1", 53 | "k c #2749B8", 54 | "l c #E4E4EB", 55 | "m c #DFDFE7", 56 | "n c #617BDB", 57 | "o c #3759D6", 58 | "p c #E7E7EE", 59 | "q c #2D4FC5", 60 | "r c #E7E7F1", 61 | "s c #E4E4EF", 62 | "t c #3F61E5", 63 | "u c #EBEBF4", 64 | "v c #3456D2", 65 | "w c #D3D7F3", 66 | "x c #E8E8F7", 67 | "y c #F4F4FC", 68 | "z c #D1D5F2", 69 | "A c #3C5EDF", 70 | "B c #768DE9", 71 | "C c #D6DAF9", 72 | "D c #ECECFC", 73 | "E c #758CE9", 74 | "F c #4163E9", 75 | " ", 76 | " ............ ", 77 | " +@#$$$$$$$$#@+ ", 78 | " %&**********=% ", 79 | " -*;;;;>>;;;;,- ", 80 | " ')!!!!~{{!!!]' ", 81 | " ^]///(_:<<[}|^ ", 82 | " 12344444444561 ", 83 | " 7!8999999990a7 ", 84 | " bcdeeeefgghijb ", 85 | " klmmmmnoopmmmk ", 86 | " qrssssttussssq ", 87 | " vwxxxxyyxxxxzv ", 88 | " ABCDDDDDDDDCEA ", 89 | " FFFFFFFFFFFF ", 90 | " "}; 91 | -------------------------------------------------------------------------------- /cmd/Adventure/Icons/Handpoint3.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char * x[] = { 3 | "16 16 90 1", 4 | " c None", 5 | ". c #0330BA", 6 | "+ c #032FB8", 7 | "@ c #335BD2", 8 | "# c #6E91F1", 9 | "$ c #7698F6", 10 | "% c #7698F5", 11 | "& c #7597F5", 12 | "* c #7496F5", 13 | "= c #6B8EF0", 14 | "- c #3159D1", 15 | "; c #032DB5", 16 | "> c #6C8FF0", 17 | ", c #5F81E7", 18 | "' c #5072D8", 19 | ") c #587AE0", 20 | "! c #6588EB", 21 | "~ c #032CB2", 22 | "{ c #6E90EF", 23 | "] c #5779DF", 24 | "^ c #4A6CD2", 25 | "/ c #FFFFFF", 26 | "( c #6587E8", 27 | "_ c #032AAF", 28 | ": c #688AE8", 29 | "< c #4E70D6", 30 | "[ c #496BD1", 31 | "} c #C8D1EA", 32 | "| c #5C7EE0", 33 | "1 c #0227AB", 34 | "2 c #6082E2", 35 | "3 c #4769CF", 36 | "4 c #4264CA", 37 | "5 c #2F51B8", 38 | "6 c #BFC7E1", 39 | "7 c #E7E7E7", 40 | "8 c #E1E1E1", 41 | "9 c #2446AD", 42 | "0 c #274AB0", 43 | "a c #3C5FC2", 44 | "b c #0225A7", 45 | "c c #5B7DDD", 46 | "d c #4466CC", 47 | "e c #F8F8F8", 48 | "f c #D5D5D5", 49 | "g c #D7D7D7", 50 | "h c #DCDCDC", 51 | "i c #E0E0E0", 52 | "j c #E4E4E4", 53 | "k c #E8E8E8", 54 | "l c #264AB4", 55 | "m c #3255BD", 56 | "n c #0223A3", 57 | "o c #5779DA", 58 | "p c #3B5FC8", 59 | "q c #D4D4D4", 60 | "r c #D3D3D3", 61 | "s c #ECECEC", 62 | "t c #2A50BE", 63 | "u c #3156C3", 64 | "v c #02209F", 65 | "w c #4B6FD8", 66 | "x c #3059CB", 67 | "y c #294FBC", 68 | "z c #B4BDD6", 69 | "A c #2F58CB", 70 | "B c #325BCC", 71 | "C c #021E9B", 72 | "D c #426CDE", 73 | "E c #3560D8", 74 | "F c #325CD2", 75 | "G c #B9C3E1", 76 | "H c #2C53C3", 77 | "I c #021B96", 78 | "J c #426EE8", 79 | "K c #3A67E5", 80 | "L c #345FD7", 81 | "M c #2F57C9", 82 | "N c #021790", 83 | "O c #3C69E7", 84 | "P c #3E6FF1", 85 | "Q c #315ACF", 86 | "R c #3865E6", 87 | "S c #010E80", 88 | "T c #1A33AB", 89 | "U c #3C69EC", 90 | "V c #4274FA", 91 | "W c #3B69EC", 92 | "X c #1832AB", 93 | "Y c #000572", 94 | " ", 95 | " ............ ", 96 | " +@#$$$$%&&*=-+ ", 97 | " ;>,,,,'),,,,!; ", 98 | " ~{]]]^//]]]](~ ", 99 | " _:<<<[}//<<<|_ ", 100 | " 123334567890a1 ", 101 | " bcde8fghijklmb ", 102 | " nopqrghijkstun ", 103 | " vwxyyyyzksyABv ", 104 | " CDEEEFGksHEEEC ", 105 | " IJKKKLksMKKKKI ", 106 | " NOPPPPQQPPPPRN ", 107 | " STUVVVVVVVVWXS ", 108 | " YYYYYYYYYYYY ", 109 | " "}; 110 | -------------------------------------------------------------------------------- /cmd/Adventure/Icons/Handpoint4.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char * x[] = { 3 | "16 16 82 1", 4 | " c None", 5 | ". c #F7F7F7", 6 | "+ c #FCFCFC", 7 | "@ c #EFEFEF", 8 | "# c #D8D8D8", 9 | "$ c #E9F5E9", 10 | "% c #3AA638", 11 | "& c #3DA73B", 12 | "* c #F4FAF4", 13 | "= c #EBEBEB", 14 | "- c #9ED39D", 15 | "; c #038D00", 16 | "> c #249C21", 17 | ", c #F1F9F1", 18 | "' c #E3E3E3", 19 | ") c #C8C8C8", 20 | "! c #DEF0DE", 21 | "~ c #0E920B", 22 | "{ c #279D24", 23 | "] c #EAF6EA", 24 | "^ c #DEDEDE", 25 | "/ c #F2F2F2", 26 | "( c #F8F8F8", 27 | "_ c #F4F4F4", 28 | ": c #E8E8E8", 29 | "< c #FDFDFD", 30 | "[ c #199716", 31 | "} c #2C9F29", 32 | "| c #ECF7EC", 33 | "1 c #DDDDDD", 34 | "2 c #FFFFFF", 35 | "3 c #4EB752", 36 | "4 c #5CBD60", 37 | "5 c #61BF65", 38 | "6 c #73C676", 39 | "7 c #82CD85", 40 | "8 c #28A82D", 41 | "9 c #039909", 42 | "0 c #2CA931", 43 | "a c #E3F4E4", 44 | "b c #E6E6E6", 45 | "c c #02AB16", 46 | "d c #19B32B", 47 | "e c #FBFBFB", 48 | "f c #01BB22", 49 | "g c #19C137", 50 | "h c #FAFAFA", 51 | "i c #50D96D", 52 | "j c #61DD7B", 53 | "k c #65DE7E", 54 | "l c #76E18C", 55 | "m c #83E498", 56 | "n c #25D049", 57 | "o c #01C82B", 58 | "p c #2ED250", 59 | "q c #EBFBEE", 60 | "r c #D6D6D6", 61 | "s c #F1F1F1", 62 | "t c #E1E1E1", 63 | "u c #D3D3D3", 64 | "v c #F1FDF4", 65 | "w c #17D745", 66 | "x c #00D333", 67 | "y c #2ADA55", 68 | "z c #F0FCF3", 69 | "A c #BEBEBE", 70 | "B c #E1FBE8", 71 | "C c #17DE4B", 72 | "D c #00DB39", 73 | "E c #2AE15A", 74 | "F c #EBFCEF", 75 | "G c #9CF1B2", 76 | "H c #25E056", 77 | "I c #EEFDF2", 78 | "J c #BFBFBF", 79 | "K c #C1C1C1", 80 | "L c #E6FBEC", 81 | "M c #3CE368", 82 | "N c #3EE469", 83 | "O c #ECFCF0", 84 | "P c #CACACA", 85 | "Q c #C5C5C5", 86 | " ", 87 | " .++@ ", 88 | " #$%&*= ", 89 | " .-;;>,' ", 90 | " )!~;;{]^ ", 91 | " /+(_:<[;;}|1 ", 92 | " +23456789990ab ", 93 | " 2cccccccccccde ", 94 | " 2fffffffffffgh ", 95 | " .2ijklmnooopqr ", 96 | " #sbtuvwxxyzA ", 97 | " BCDDEFA ", 98 | " 'GDDHIJ ", 99 | " KLMNOP ", 100 | " :._Q ", 101 | " "}; 102 | -------------------------------------------------------------------------------- /cmd/Adventure/Icons/Keyboard.icl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Icons/Keyboard.icl -------------------------------------------------------------------------------- /cmd/Adventure/Icons/Keyboard.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Icons/Keyboard.ico -------------------------------------------------------------------------------- /cmd/Adventure/Icons/MagicBox.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Icons/MagicBox.ico -------------------------------------------------------------------------------- /cmd/Adventure/Icons/Search.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Icons/Search.ico -------------------------------------------------------------------------------- /cmd/Adventure/Icons/SidePane.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Icons/SidePane.bmp -------------------------------------------------------------------------------- /cmd/Adventure/Icons/Sort Panel.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Icons/Sort Panel.ico -------------------------------------------------------------------------------- /cmd/Adventure/Icons/Structor.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Icons/Structor.ico -------------------------------------------------------------------------------- /cmd/Adventure/Icons/Verifier.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Icons/Verifier.ico -------------------------------------------------------------------------------- /cmd/Adventure/Lib/AutoSize.ahk: -------------------------------------------------------------------------------- 1 | ; Original: http://ahkscript.org/boards/viewtopic.php?t=1079 2 | AutoSize(DimSize, cList*) { 3 | Static cInfo := {} 4 | Local 5 | 6 | If (DimSize = "reset") { 7 | Return cInfo := {} 8 | } 9 | 10 | For i, ctrl in cList { 11 | ctrlID := A_Gui . ":" . ctrl 12 | If (cInfo[ctrlID].x = "") { 13 | GuiControlGet i, %A_Gui%: Pos, %ctrl% 14 | MMD := InStr(DimSize, "*") ? "MoveDraw" : "Move" 15 | fx := fy := fw := fh := 0 16 | For i, dim in (a := StrSplit(RegExReplace(DimSize, "i)[^xywh]"))) { 17 | If (!RegExMatch(DimSize, "i)" . dim . "\s*\K[\d.-]+", f%dim%)) { 18 | f%dim% := 1 19 | } 20 | } 21 | 22 | If (InStr(DimSize, "t")) { 23 | GuiControlGet hWnd, %A_Gui%: hWnd, %ctrl% 24 | hWndParent := DllCall("GetParent", "Ptr", hWnd, "Ptr") 25 | VarSetCapacity(RECT, 16, 0) 26 | DllCall("GetWindowRect", "Ptr", hWndParent, "Ptr", &RECT) 27 | DllCall("MapWindowPoints", "Ptr", 0, "Ptr" 28 | , DllCall("GetParent", "Ptr", hWndParent, "Ptr"), "Ptr", &RECT, "UInt", 1) 29 | ix -= (NumGet(RECT, 0, "Int") * 96) // A_ScreenDPI 30 | iy -= (NumGet(RECT, 4, "Int") * 96) // A_ScreenDPI 31 | } 32 | 33 | cInfo[ctrlID] := {x: ix, fx: fx, y: iy, fy: fy, w: iw, fw: fw, h: ih, fh: fh, gw: A_GuiWidth, gh: A_GuiHeight, a: a, m: MMD} 34 | 35 | } Else If (cInfo[ctrlID].a.1) { 36 | dgx := dgw := A_GuiWidth - cInfo[ctrlID].gw 37 | dgy := dgh := A_GuiHeight - cInfo[ctrlID].gh 38 | 39 | Options := "" 40 | For i, dim in cInfo[ctrlID]["a"] { 41 | Options .= dim . (dg%dim% * cInfo[ctrlID]["f" . dim] + cInfo[ctrlID][dim]) . A_Space 42 | } 43 | 44 | GuiControl, % A_Gui ":" cInfo[ctrlID].m, % ctrl, % Options 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /cmd/Adventure/Lib/AutoXYWH.ahk: -------------------------------------------------------------------------------- 1 | ; ================================================================================= 2 | ; Function: AutoXYWH 3 | ; Move and resize controls automatically when the window is resized. 4 | ; 5 | ; Parameters: 6 | ; DimSize - Can be one or more of x/y/w/h, optionally followed by a fraction. 7 | ; The presence of an asterisk in this parameter indicates that the 8 | ; controls are to be moved/resized with 'MoveDraw' instead of 'Move'. 9 | ; This is recommended for GroupBoxes. 10 | ; 11 | ; cList - Variadic list of ControlIDs. 12 | ; ControlID can be a control HWND, associated variable name, ClassNN 13 | ; or displayed text. The latter (displayed text) may not be reliable. 14 | ; Examples: 15 | ; AutoXYWH("xy", "Btn1", "Btn2") 16 | ; AutoXYWH("w0.5 h 0.75", hEdit, "displayed text", "vLabel", "Button1") 17 | ; AutoXYWH("*w0.5 h 0.75", hGroupbox1, "GrbChoices") 18 | ; --------------------------------------------------------------------------------- 19 | ; Version: 2015-5-29 / Added 'reset' option (by tmplinshi) 20 | ; 2014-7-03 / toralf 21 | ; 2014-1-2 / tmplinshi 22 | ; Mininum AHK version: 1.1.13.01. 23 | ; Forum topic: https://www.autohotkey.com/boards/viewtopic.php?t=1079 24 | ; ================================================================================= 25 | 26 | AutoXYWH(DimSize, cList*) { 27 | Static cInfo := {} 28 | 29 | If (DimSize = "reset") { 30 | Return cInfo := {} 31 | } 32 | 33 | For i, ctrl in cList { 34 | ctrlID := A_Gui ":" ctrl 35 | If (cInfo[ctrlID].x = "") { 36 | GuiControlGet i, %A_Gui%: Pos, %ctrl% 37 | MMD := InStr(DimSize, "*") ? "MoveDraw" : "Move" 38 | fx := fy := fw := fh := 0 39 | For i, dim in (a := StrSplit(RegExReplace(DimSize, "i)[^xywh]"))) { 40 | If (!RegExMatch(DimSize, "i)" . dim . "\s*\K[\d.-]+", f%dim%)) { 41 | f%dim% := 1 42 | } 43 | } 44 | cInfo[ctrlID] := {x: ix, fx: fx, y: iy, fy: fy, w: iw, fw: fw, h: ih, fh: fh, gw: A_GuiWidth, gh: A_GuiHeight, a: a, m: MMD} 45 | } Else If (cInfo[ctrlID].a.1) { 46 | dgx := dgw := A_GuiWidth - cInfo[ctrlID].gw, dgy := dgh := A_GuiHeight - cInfo[ctrlID].gh 47 | Options := "" 48 | For i, dim in cInfo[ctrlID]["a"] { 49 | Options .= dim . (dg%dim% * cInfo[ctrlID]["f" . dim] + cInfo[ctrlID][dim]) . A_Space 50 | } 51 | GuiControl, % A_Gui ":" cInfo[ctrlID].m, % ctrl, % Options 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /cmd/Adventure/Lib/ControlColor.ahk: -------------------------------------------------------------------------------- 1 | ; http://www.autohotkey.com/board/topic/104539-controlcol-set-background-and-text-color-gui-controls/ 2 | 3 | ControlColor(Control, Window, bc := "", tc := "", Redraw := True) { 4 | Local a := {} 5 | a["c"] := Control 6 | a["g"] := Window 7 | a["bc"] := (bc == "") ? "" : (((bc & 255) << 16) + (((bc >> 8) & 255) << 8) + (bc >> 16)) 8 | a["tc"] := (tc == "") ? "" : (((tc & 255) << 16) + (((tc >> 8) & 255) << 8) + (tc >> 16)) 9 | 10 | CC_WindowProc("Set", a, "", "") 11 | 12 | If (Redraw) { 13 | WinSet Redraw,, ahk_id %Control% 14 | } 15 | } 16 | 17 | CC_WindowProc(hWnd, uMsg, wParam, lParam) { 18 | Local tc, bc, a 19 | Static Win := {} 20 | ; Critical 21 | 22 | If uMsg Between 0x132 And 0x138 ; WM_CTLCOLOR(MSGBOX|EDIT|LISTBOX|BTN|DLG|SCROLLBAR|STATIC) 23 | If (Win[hWnd].HasKey(lParam)) { 24 | If (tc := Win[hWnd, lParam, "tc"]) { 25 | DllCall("gdi32.dll\SetTextColor", "Ptr", wParam, "UInt", tc) 26 | } 27 | 28 | If (bc := Win[hWnd, lParam, "bc"]) { 29 | DllCall("gdi32.dll\SetBkColor", "Ptr", wParam, "UInt", bc) 30 | } 31 | 32 | Return Win[hWnd, lParam, "Brush"] ; Return the HBRUSH to notify the OS that we altered the HDC. 33 | } 34 | 35 | If (hWnd == "Set") { 36 | a := uMsg 37 | Win[a.g, a.c] := a 38 | 39 | If ((Win[a.g, a.c, "tc"] == "") && (Win[a.g, a.c, "bc"] == "")) { 40 | Win[a.g].Remove(a.c, "") 41 | } 42 | 43 | If (!Win[a.g, "WindowProcOld"]) { 44 | Win[a.g,"WindowProcOld"] := DllCall("SetWindowLong" . (A_PtrSize == 8 ? "Ptr" : "") 45 | , "Ptr", a.g, "Int", -4, "Ptr", RegisterCallback("CC_WindowProc", "", 4), "UPtr") 46 | } 47 | 48 | If (Win[a.g, a.c, "bc"] != "") { 49 | Win[a.g, a.c, "Brush"] := DllCall("gdi32.dll\CreateSolidBrush", "UInt", a.bc, "UPtr") 50 | } 51 | 52 | Return 53 | } 54 | 55 | Return DllCall("CallWindowProc", "Ptr", Win[hWnd, "WindowProcOld"], "Ptr", hWnd, "UInt", uMsg, "Ptr", wParam, "Ptr", lParam, "Ptr") 56 | } 57 | -------------------------------------------------------------------------------- /cmd/Adventure/Lib/CreateGradient.ahk: -------------------------------------------------------------------------------- 1 | ; https://www.autohotkey.com/boards/viewtopic.php?f=6&t=91899 2 | 3 | CreateGradient(W, H, V, aColors) { 4 | Local 5 | 6 | C := aColors.Length() 7 | 8 | xOFF := (X := V ? W : 0) ? 0 : Ceil(W / (C - 1)) 9 | yOFF := (Y := V ? 0 : H) ? 0 : Ceil(H / (C - 1)) 10 | 11 | VarSetCapacity(VERT, C * 16, 0) 12 | VarSetCapacity(MESH, C * 8, 0) 13 | 14 | Loop % (C, pVert := &VERT, pMesh := &MESH) { 15 | X := V ? (X == 0 ? W : X := 0) : X 16 | Y := !V ? (Y == 0 ? H : Y := 0) : Y 17 | Color := Format("{:06X}", aColors[A_Index] & 0xFFFFFF) 18 | Color := Format("0x{5:}{6:}00{3:}{4:}00{1:}{2:}00", StrSplit(Color)*) 19 | pVert := NumPut(Color, NumPut(Y, NumPut(X, pVert+0, "Int"), "Int"), "Int64") 20 | pMesh := NumPut(A_Index, NumPut(A_Index - 1, pMesh+0, "Int"), "Int") 21 | V ? (Y += yOFF) : (X += xOFF) 22 | } 23 | 24 | hBM := DllCall("Gdi32.dll\CreateBitmap", "Int", 1, "Int", 1, "Int", 0x1, "Int", 32, "Ptr*", 0, "Ptr") 25 | hBM := DllCall("User32.dll\CopyImage", "Ptr", hBM, "Int", 0x0, "Int", W, "Int", H, "Int", 0x8, "Ptr") 26 | mDC := DllCall("Gdi32.dll\CreateCompatibleDC", "Ptr", 0, "Ptr") 27 | DllCall("Gdi32.dll\SaveDC", "Ptr", mDC) 28 | DllCall("Gdi32.dll\SelectObject", "Ptr", mDC, "Ptr", hBM) 29 | DllCall("Msimg32.dll\GradientFill", "Ptr", mDC, "Ptr", &VERT, "Int", C, "Ptr", &MESH, "Int", C - 1, "Int", !!V) 30 | DllCall("Gdi32.dll\RestoreDC", "Ptr", mDC, "Int", -1) 31 | DllCall("Gdi32.dll\DeleteDC", "Ptr", mDC) 32 | 33 | Return hBM 34 | } 35 | -------------------------------------------------------------------------------- /cmd/Adventure/Lib/ExecScript.ahk: -------------------------------------------------------------------------------- 1 | ExecScript(Script, Params := "", AhkPath := "") { 2 | Local Name, Pipe, Call, Shell, Exec 3 | 4 | Name := "AHK_CQT_" . A_TickCount 5 | Pipe := [] 6 | 7 | Loop 2 { 8 | Pipe[A_Index] := DllCall("CreateNamedPipe" 9 | , "Str", "\\.\pipe\" . Name 10 | , "UInt", 2, "UInt", 0 11 | , "UInt", 255, "UInt", 0 12 | , "UInt", 0, "UPtr", 0 13 | , "UPtr", 0, "UPtr") 14 | } 15 | 16 | If (!FileExist(AhkPath)) { 17 | AhkPath := A_AhkPath 18 | } 19 | 20 | Call = "%AhkPath%" /CP65001 "\\.\pipe\%Name%" 21 | Shell := ComObjCreate("WScript.Shell") 22 | Exec := Shell.Exec(Call . " " . Params) 23 | DllCall("ConnectNamedPipe", "UPtr", Pipe[1], "UPtr", 0) 24 | DllCall("CloseHandle", "UPtr", Pipe[1]) 25 | DllCall("ConnectNamedPipe", "UPtr", Pipe[2], "UPtr", 0) 26 | FileOpen(Pipe[2], "h", "UTF-8").Write(Script) 27 | DllCall("CloseHandle", "UPtr", Pipe[2]) 28 | 29 | Return Exec 30 | } 31 | -------------------------------------------------------------------------------- /cmd/Adventure/Lib/GuiButtonIcon.ahk: -------------------------------------------------------------------------------- 1 | ; GuiButtonIcon 2 | ; Function to assign an icon to a Gui Button 3 | ; By Fanatic Guru 4 | ; Version 2.0 (20140531) 5 | ;------------------------------------------------ 6 | ; 7 | ; Signature: 8 | ; GuiButtonIcon(Handle, File, Index, Options) 9 | ; 10 | ; Parameters: 11 | ; 1) {Handle} Handle of the button 12 | ; 2) {File} Resource file containing the icon 13 | ; 3) {Index} Index of icon within the file 14 | ; 4) {Options} Single letter flag followed by a number with multiple options delimited by a space 15 | ; W = Width of the icon (default: 16) 16 | ; H = Height of the icon (default: 16) 17 | ; S = Size of the icon, value applied to both width and height 18 | ; L = Left margin 19 | ; T = Top margin 20 | ; R = Right margin 21 | ; B = Botton margin 22 | ; A = Alignment (0 = left, 1 = right, 2 = top, 3 = bottom, 4 = center; default: 4) 23 | ; 24 | ; Return value: true if the icon was succesfully added to the image list 25 | ; 26 | ; Example: 27 | ; Gui, Add, Button, w70 h38 hWndhBtn, Save 28 | ; GuiButtonIcon(hBtn, "shell32.dll", 259, "s30 a1 r2") 29 | 30 | GuiButtonIcon(Handle, File, Index := 1, Options := "") { 31 | Local W, H, S, L, T, R, B, A, IL 32 | 33 | RegExMatch(Options, "i)w\K\d+", W), (W="") ? W := 16 : 34 | RegExMatch(Options, "i)h\K\d+", H), (H="") ? H := 16 : 35 | RegExMatch(Options, "i)s\K\d+", S), S ? W := H := S : 36 | RegExMatch(Options, "i)l\K\d+", L), (L="") ? L := 0 : 37 | RegExMatch(Options, "i)t\K\d+", T), (T="") ? T := 0 : 38 | RegExMatch(Options, "i)r\K\d+", R), (R="") ? R := 0 : 39 | RegExMatch(Options, "i)b\K\d+", B), (B="") ? B := 0 : 40 | RegExMatch(Options, "i)a\K\d+", A), (A="") ? A := 4 : 41 | 42 | VarSetCapacity(button_il, 20 + A_PtrSize, 0) 43 | IL := DllCall("ImageList_Create", "UInt", W, "UInt", H, "UInt", 0x21, "UInt", 1, "UInt", 1) 44 | NumPut(IL, button_il, 0, "Ptr") 45 | NumPut(L, button_il, 0 + A_PtrSize, "UInt") ; Left margin 46 | NumPut(T, button_il, 4 + A_PtrSize, "UInt") ; Top margin 47 | NumPut(R, button_il, 8 + A_PtrSize, "UInt") ; Right margin 48 | NumPut(B, button_il, 12 + A_PtrSize, "UInt") ; Bottom margin 49 | NumPut(A, button_il, 16 + A_PtrSize, "UInt") ; Alignment 50 | SendMessage 0x1602, 0, &button_il,, AHK_ID %Handle% ; BCM_SETIMAGELIST 51 | Return IL_Add(IL, File, Index) 52 | } 53 | -------------------------------------------------------------------------------- /cmd/Adventure/Lib/LV_GroupView.ahk: -------------------------------------------------------------------------------- 1 | LV_InsertGroup(hLV, GroupID, Header, Index := -1) { 2 | Local LVGROUP 3 | Static GroupIdOff := (A_PtrSize == 8) ? 36 : 24 4 | NumPut(VarSetCapacity(LVGROUP, 56, 0), LVGROUP, 0) 5 | NumPut(0x15, LVGROUP, 4, "UInt") ; mask: LVGF_HEADER|LVGF_STATE|LVGF_GROUPID 6 | NumPut(A_IsUnicode ? &Header : UTF16(Header, @), LVGROUP, 8, "Ptr") ; pszHeader 7 | NumPut(GroupID, LVGROUP, GroupIdOff, "Int") ; iGroupId 8 | NumPut(0x8, LVGROUP, GroupIdOff + 8, "Int") ; state: LVGS_COLLAPSIBLE 9 | SendMessage 0x1091, %Index%, % &LVGROUP,, ahk_id %hLV% ; LVM_INSERTGROUP 10 | Return ErrorLevel 11 | } 12 | 13 | LV_SetGroup(hLV, Row, GroupID) { 14 | Local LVITEM 15 | VarSetCapacity(LVITEM, 58, 0) 16 | NumPut(0x100, LVITEM, 0, "UInt") ; mask: LVIF_GROUPID 17 | NumPut(Row - 1, LVITEM, 4, "Int") ; iItem 18 | NumPut(GroupID, LVITEM, (A_PtrSize == 8) ? 52 : 40, "Int") 19 | SendMessage 0x1006, 0, &LVITEM,, ahk_id %HLV% ; LVM_SETITEMA 20 | Return ErrorLevel 21 | } 22 | 23 | LV_GetGroupId(hLV, Row) { 24 | Local LVITEM 25 | VarSetCapacity(LVITEM, A_PtrSize == 8 ? 88 : 60, 0) 26 | NumPut(0x100, LVITEM, 0, "UInt") ; mask: LVIF_GROUPID 27 | NumPut(Row - 1, LVITEM, 4, "Int") 28 | SendMessage 0x1005, 0, &LVITEM,, ahk_id %hLV% ; LVM_GETITEMA 29 | Return NumGet(LVITEM, A_PtrSize == 8 ? 52 : 40, "Int") ; iGroupId 30 | } 31 | 32 | LV_EnableGroupView(hLV, bEnable := True) { 33 | SendMessage 0x109D, %bEnable%, 0,, ahk_id %hLV% ; LVM_ENABLEGROUPVIEW 34 | } 35 | 36 | UTF16(String, ByRef Var) { 37 | VarSetCapacity(Var, StrPut(String, "UTF-16") * 2, 0) 38 | StrPut(String, &Var, "UTF-16") 39 | Return &Var 40 | } 41 | -------------------------------------------------------------------------------- /cmd/Adventure/Lib/ResourceID.ahk: -------------------------------------------------------------------------------- 1 | ; https://autohotkey.com/board/topic/27668-how-to-get-the-icon-group-number/ 2 | 3 | ResourceIdOfIcon(Filename, IconIndex) { ; 0-based index 4 | Local hMod, Loaded, EnumProc, Param 5 | 6 | hMod := DllCall("GetModuleHandle", "Str", Filename, "Ptr") 7 | ; If the DLL isn't already loaded, load it as a data file. 8 | Loaded := !hMod 9 | && hMod := DllCall("LoadLibraryEx", "Str", Filename, "UInt", 0, "UInt", 0x2, "Ptr") 10 | 11 | If (!hMod) { 12 | Return 13 | } 14 | 15 | EnumProc := RegisterCallback("ResourceIdOfIcon_EnumIconResources", "F") 16 | 17 | VarSetCapacity(Param, 16, 0) 18 | NumPut(IconIndex, Param, 0) 19 | ; Enumerate the icon group resources (RT_GROUP_ICON = 14). 20 | DllCall("kernel32.dll\EnumResourceNames", "Ptr", hMod, "UInt", 14, "Ptr", EnumProc, "Ptr", &Param) 21 | DllCall("GlobalFree", "Ptr", EnumProc) 22 | 23 | If (Loaded) { 24 | DllCall("FreeLibrary", "Ptr", hMod) 25 | } 26 | 27 | Return NumGet(Param, 0) ? NumGet(Param, A_PtrSize) : "" 28 | } 29 | 30 | ResourceIdOfIcon_EnumIconResources(hModule, lpszType, lpszName, lParam) { 31 | Local Index := NumGet(lParam + A_PtrSize) 32 | 33 | If (Index == NumGet(lParam + 0)) { 34 | NumPut(lpszName, lParam + A_PtrSize) 35 | NumPut(1, lParam + 0) 36 | Return False ; Break 37 | } 38 | 39 | NumPut(Index + 1, lParam + A_PtrSize) 40 | Return True 41 | } 42 | -------------------------------------------------------------------------------- /cmd/Adventure/Lib/RunGetStdout.ahk: -------------------------------------------------------------------------------- 1 | RunGetStdOut(sCmd, sEncoding := "CP0", sDir := "", ByRef nExitCode := 0, Callback := "") { 2 | DllCall("CreatePipe", "Ptr*", hStdOutRd, "Ptr*", hStdOutWr, "Ptr", 0, "UInt", 0) 3 | DllCall("SetHandleInformation", "Ptr", hStdOutWr, "UInt", 1, "UInt", 1) 4 | 5 | ; STARTUPINFO 6 | NumPut(VarSetCapacity(si, A_PtrSize == 4 ? 68 : 104, 0), si, 0, "UInt") 7 | NumPut(0x100, si, A_PtrSize == 4 ? 44 : 60, "UInt") ; dwFlags: STARTF_USESTDHANDLES 8 | NumPut(hStdOutWr, si, A_PtrSize == 4 ? 60 : 88, "Ptr" ) ; hStdOutput 9 | NumPut(hStdOutWr, si, A_PtrSize == 4 ? 64 : 96, "Ptr" ) ; hStdError 10 | 11 | ; PROCESS_INFORMATION 12 | VarSetCapacity(pi, A_PtrSize == 4 ? 16 : 24, 0) 13 | ; CREATE_NO_WINDOW = 0x08000000 14 | If (!DllCall("CreateProcess", "Ptr", 0, "Ptr", &sCmd, "Ptr", 0, "Ptr", 0, "Int", True 15 | , "UInt", 0x08000000, "Ptr", 0, "Ptr", sDir ? &sDir : 0, "Ptr", &si, "Ptr", &pi)) { 16 | DllCall("CloseHandle", "Ptr", hStdOutWr) 17 | DllCall("CloseHandle", "Ptr", hStdOutRd) 18 | Return "" 19 | } 20 | 21 | DllCall("CloseHandle", "Ptr", hStdOutWr) ; The write pipe must be closed before reading stdout. 22 | 23 | sOutput := "" 24 | While (1) { 25 | ; Before reading, we check if the pipe has been written to, so we avoid freezings. 26 | If (!DllCall("PeekNamedPipe", "Ptr", hStdOutRd, "Ptr", 0, "UInt", 0, "Ptr", 0, "UInt*", nTot, "Ptr", 0)) { 27 | Break 28 | } 29 | 30 | If (!nTot) { ; If the pipe buffer is empty, sleep and continue checking. 31 | Sleep 100 32 | Continue 33 | } 34 | 35 | ; Pipe buffer is not empty, so we can read it. 36 | VarSetCapacity(sTemp, nTot + 1) 37 | DllCall("ReadFile", "Ptr", hStdOutRd, "Ptr", &sTemp, "UInt", nTot, "Ptr*", nSize, "Ptr", 0) 38 | sOutput .= sStdOut := StrGet(&sTemp, nSize, sEncoding) 39 | If (Callback != "") { 40 | %Callback%(sStdOut) 41 | } 42 | } 43 | 44 | DllCall("GetExitCodeProcess", "Ptr", NumGet(pi, 0), "UInt*", nExitCode) 45 | DllCall("CloseHandle", "Ptr", NumGet(pi, 0)) ; hProcess 46 | DllCall("CloseHandle", "Ptr", NumGet(pi, A_PtrSize)) ; hThread 47 | DllCall("CloseHandle", "Ptr", hStdOutRd) 48 | Return sOutput 49 | } 50 | -------------------------------------------------------------------------------- /cmd/Adventure/SciLexer32.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/SciLexer32.dll -------------------------------------------------------------------------------- /cmd/Adventure/SciLexer64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/SciLexer64.dll -------------------------------------------------------------------------------- /cmd/Adventure/ScreenToGif/Logs/22_01_15.txt: -------------------------------------------------------------------------------- 1 | ► Title - 2 | Improved Encoding 3 | ▬ Message - 4 | The process cannot access the file 'F:\gif\动画5.gif' because it is being used by another process. 5 | ○ Type - 6 | System.IO.IOException 7 | ♦ [Version] Date/Hour - 8 | [2.34.1] 01/15/2022 12:56:31 9 | ▲ Source - 10 | mscorlib 11 | ▼ TargetSite - 12 | Void WinIOError(Int32, System.String) 13 | ♠ StackTrace - 14 | at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 15 | at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) 16 | at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) 17 | at ScreenToGif.Util.EncodingManager.d__27.MoveNext() 18 | 19 | ---------------------------------- 20 | 21 | -------------------------------------------------------------------------------- /cmd/Adventure/Settings/AHK-Tools.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /cmd/Adventure/Settings/Adventure.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Settings/Adventure.ini -------------------------------------------------------------------------------- /cmd/Adventure/Settings/AutoTaskMan.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Settings/AutoTaskMan.ini -------------------------------------------------------------------------------- /cmd/Adventure/Settings/Constantine.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Settings/Constantine.ini -------------------------------------------------------------------------------- /cmd/Adventure/Settings/FileHistory.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /cmd/Adventure/Settings/FileHistory.xml.bak: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /cmd/Adventure/Settings/Structor.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Settings/Structor.ini -------------------------------------------------------------------------------- /cmd/Adventure/Settings/Templates.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Settings/Templates.ini -------------------------------------------------------------------------------- /cmd/Adventure/Settings/Tools.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /cmd/Adventure/Source/Scintilla-3.7.6.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sxzxs/cherry-snippet/8e6b7c000a932380bb44eecb98fe4782f40003e1/cmd/Adventure/Source/Scintilla-3.7.6.zip -------------------------------------------------------------------------------- /cmd/Adventure/Source/Scintilla.txt: -------------------------------------------------------------------------------- 1 | Scintilla 64-bit was compiled with MinGW-w64-dgn. 2 | URL: https://sourceforge.net/projects/mingw-w64-dgn/ 3 | Original filename: mingw-w64-bin-x86_64-20180726.7z. 4 | 5 | The 32-bit version was compiled with MinGW-w64. 6 | URL: https://sourceforge.net/projects/mingw-w64/ 7 | Original filename: i686-8.1.0-release-win32-sjlj-rt_v6-rev0.7z. 8 | 9 | In order to compile Scintilla, open a command prompt in the scintilla\win32 directory and set the PATH environment variable to the location of the compiler toolset. Then, run make.exe (64-bit) or mingw32-make.exe (32-bit). Resulting files (Scintilla.dll and SciLexer.dll) are output in the scintilla\bin directory. 10 | 11 | A batch file may facilitate this procedure: save a file called Build.bat (encoded as UTF-8 without BOM) in the scintilla\win32 directory with the following instructions: 12 | 13 | @ECHO OFF 14 | PATH = C:\MinGW-w64-dgn\bin\ 15 | make.exe 16 | PAUSE 17 | -------------------------------------------------------------------------------- /cmd/Adventure/Templates/AutoHotkey Script.ahk: -------------------------------------------------------------------------------- 1 | #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. 2 | ; #Warn ; Enable warnings to assist with detecting common errors. 3 | SendMode Input ; Recommended for new scripts due to its superior speed and reliability. 4 | SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. 5 | -------------------------------------------------------------------------------- /cmd/Adventure/Templates/AutoIt Basic GUI.au3: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | Local $hGUI = GUICreate("Title", 800, 400) 4 | GUISetState(@SW_SHOW, $hGUI) 5 | 6 | Local $iMsg = 0 7 | While 1 8 | $iMsg = GUIGetMsg() 9 | Switch $iMsg 10 | Case $GUI_EVENT_CLOSE 11 | ExitLoop 12 | EndSwitch 13 | WEnd 14 | 15 | GUIDelete($hGUI) 16 | -------------------------------------------------------------------------------- /cmd/Adventure/Templates/Bash Shell Script.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "Hello, world!"; 4 | -------------------------------------------------------------------------------- /cmd/Adventure/Templates/Batch File.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | 3 | PAUSE > NUL -------------------------------------------------------------------------------- /cmd/Adventure/Templates/C Console Application.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main() { 5 | printf("Hi!\n"); 6 | getch(); 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /cmd/Adventure/Templates/C MessageBox.c: -------------------------------------------------------------------------------- 1 | #define UNICODE 2 | #define WIN32_LEAN_AND_MEAN 3 | #include 4 | #include 5 | 6 | #pragma comment(lib, "user32") 7 | 8 | #pragma comment(linker,"\"/manifestdependency:type='win32' \ 9 | name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \ 10 | processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 11 | 12 | int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { 13 | 14 | MessageBox(0, TEXT("Message"), TEXT("Title"), MB_OK | MB_ICONINFORMATION); 15 | 16 | return 0; 17 | } 18 | -------------------------------------------------------------------------------- /cmd/Adventure/Templates/C MsgBoxPrintf.c: -------------------------------------------------------------------------------- 1 | #define UNICODE 2 | #include 3 | #include 4 | 5 | #pragma comment(lib, "user32") 6 | 7 | #pragma comment(linker,"\"/manifestdependency:type='win32' \ 8 | name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \ 9 | processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 10 | 11 | int CDECL MsgBoxPrintf(wchar_t *szCaption, wchar_t *szFormat, ...) 12 | { 13 | wchar_t szBuffer[1024]; 14 | va_list pArgList; 15 | 16 | va_start(pArgList, szFormat); 17 | vswprintf(szBuffer, sizeof(szBuffer) / sizeof(wchar_t), szFormat, pArgList); 18 | va_end(pArgList); 19 | 20 | return MessageBoxW(NULL, szBuffer, szCaption, 0); 21 | } 22 | 23 | int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) 24 | { 25 | MsgBoxPrintf(L"Title", L"%d", 1); 26 | return 0; 27 | } 28 | -------------------------------------------------------------------------------- /cmd/Adventure/Templates/C Win32 GUI.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #pragma comment(lib, "user32") 4 | 5 | #pragma comment(linker,"\"/manifestdependency:type='win32' \ 6 | name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \ 7 | processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 8 | 9 | LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); 10 | 11 | int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { 12 | static TCHAR szClassName[] = TEXT("WindowClass"); 13 | HWND hWnd; 14 | MSG msg; 15 | WNDCLASSEX wc; 16 | 17 | wc.hInstance = hInstance; 18 | wc.lpszClassName = szClassName; 19 | wc.lpfnWndProc = WndProc; 20 | wc.style = CS_DBLCLKS; 21 | wc.cbSize = sizeof(WNDCLASSEX); 22 | wc.hIcon = LoadIcon(NULL, IDI_APPLICATION); 23 | wc.hIconSm = LoadIcon(NULL, IDI_APPLICATION); 24 | wc.hCursor = LoadCursor(NULL, IDC_ARROW); 25 | wc.lpszMenuName = NULL; 26 | wc.cbClsExtra = 0; 27 | wc.cbWndExtra = 0; 28 | wc.hbrBackground = (HBRUSH) COLOR_WINDOW; 29 | 30 | if (!RegisterClassEx (&wc)) { 31 | return 0; 32 | } 33 | 34 | hWnd = CreateWindowEx ( 35 | 0, 36 | szClassName, 37 | "Title", 38 | WS_OVERLAPPEDWINDOW, 39 | CW_USEDEFAULT, 40 | CW_USEDEFAULT, 41 | 600, 42 | 420, 43 | HWND_DESKTOP, 44 | NULL, 45 | hInstance, 46 | NULL 47 | ); 48 | 49 | ShowWindow(hWnd, nCmdShow); 50 | 51 | while (GetMessage(&msg, NULL, 0, 0)) { 52 | TranslateMessage(&msg); 53 | DispatchMessage(&msg); 54 | } 55 | 56 | return msg.wParam; 57 | } 58 | 59 | LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { 60 | switch (message) { 61 | 62 | case WM_KEYDOWN: 63 | switch (wParam) { 64 | case VK_ESCAPE: 65 | PostQuitMessage(0); 66 | break; 67 | } 68 | 69 | case WM_DESTROY: 70 | PostQuitMessage(0); 71 | break; 72 | 73 | default: 74 | return DefWindowProc(hWnd, message, wParam, lParam); 75 | } 76 | 77 | return 0; 78 | } 79 | -------------------------------------------------------------------------------- /cmd/Adventure/Templates/C# Console Application.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ConsoleApp1 8 | { 9 | class Program 10 | { 11 | static void Main(string[] args) 12 | { 13 | Console.WriteLine("Hello, world!"); 14 | Console.ReadLine(); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /cmd/Adventure/Templates/C# WinForms Application.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.ComponentModel; 3 | using System.Drawing; 4 | using System.Windows.Forms; 5 | 6 | namespace SampleApp 7 | { 8 | public class MainForm : Form 9 | { 10 | private Button btnHello; 11 | 12 | // The form's constructor: this initializes the form and its controls. 13 | public MainForm() 14 | { 15 | // Set the form's caption, which will appear in the title bar. 16 | this.Text = "WinForms GUI"; 17 | this.Size = new Size(800, 600); 18 | 19 | // Create a button control and set its properties. 20 | btnHello = new Button(); 21 | btnHello.Name = "btnHello"; 22 | btnHello.Location = new Point(12, 12); 23 | btnHello.Size = new Size(84, 24); 24 | btnHello.Text = "Hello!"; 25 | 26 | // Wire up an event handler to the button's "Click" event 27 | // (see the code in the btnHello_Click function below). 28 | btnHello.Click += new EventHandler(btnHello_Click); 29 | 30 | // Add the button to the form's control collection, 31 | // so that it will appear on the form. 32 | this.Controls.Add(btnHello); 33 | } 34 | 35 | // When the button is clicked, display a message. 36 | private void btnHello_Click(object sender, EventArgs e) 37 | { 38 | MessageBox.Show("Hello, World!", "Message"); 39 | } 40 | 41 | // This is the main entry point for the application. 42 | // All C# applications have one and only one of these methods. 43 | [STAThread] 44 | static void Main() 45 | { 46 | Application.EnableVisualStyles(); 47 | Application.Run(new MainForm()); 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /cmd/Adventure/Templates/C++ Console Application.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | std::cout << "Hello, world!\n"; 5 | return 0; 6 | } 7 | -------------------------------------------------------------------------------- /cmd/Adventure/Templates/FreeBASIC Win32 GUI.bas: -------------------------------------------------------------------------------- 1 | ' FreeBASIC Win32 GUI 2 | 3 | #include once "windows.bi" 4 | '#include once "win/commctrl.bi" 5 | 6 | Dim Shared hInstance As HINSTANCE 7 | hInstance = GetModuleHandle(NULL) 8 | 9 | 'Dim iccx As INITCOMMONCONTROLSEX 10 | 'iccx.dwSize = Len(iccx) 11 | 'iccx.dwICC = ICC_DATE_CLASSES 12 | 'InitCommonControlsEx(@iccx) 13 | 14 | ' Window procedure handler 15 | Function WndProc(ByVal hWnd As HWND, _ 16 | ByVal uMsg As UINT, _ 17 | ByVal wParam As WPARAM, _ 18 | ByVal lParam As LPARAM) As Integer 19 | 20 | Function = 0 21 | 22 | Select Case (uMsg) 23 | Case WM_CREATE 24 | 25 | Case WM_KEYDOWN 26 | If (LoByte(wParam) = VK_ESCAPE) Then 27 | PostMessage(hWnd, WM_CLOSE, 0, 0) 28 | End If 29 | 30 | Case WM_DESTROY 31 | PostQuitMessage(0) 32 | Exit Function 33 | End Select 34 | 35 | Function = DefWindowProc(hWnd, uMsg, wParam, lParam) 36 | 37 | End Function 38 | 39 | ' Program entry 40 | Dim wcls As WNDCLASSEX 41 | Dim hWnd As HWND 42 | Dim wMsg As MSG 43 | 44 | Dim appName As String 45 | appName = "FB_Win32GUI" 46 | 47 | With wcls 48 | .hInstance = hInstance 49 | .lpszClassName = StrPtr(appName) 50 | .lpfnWndProc = @WndProc 51 | .style = CS_HREDRAW or CS_VREDRAW or CS_DBLCLKS 52 | .cbSize = SizeOf(WNDCLASSEX) 53 | .hIcon = LoadIcon(NULL, IDI_APPLICATION) 54 | .hIconSm = LoadIcon(NULL, IDI_APPLICATION) 55 | .hCursor = LoadCursor(NULL, IDC_ARROW) 56 | .lpszMenuName = NULL 57 | .cbClsExtra = 0 58 | .cbWndExtra = 0 59 | .hbrBackground = Cast(HBRUSH, 5) 60 | End With 61 | 62 | If (RegisterClassEx(@wcls) = FALSE) Then 63 | MessageBox(NULL, "Failed to register window class!", appName, MB_ICONERROR) 64 | End 1 65 | End If 66 | 67 | hWnd = CreateWindowEx(0, appName, "Win32 GUI", _ 68 | WS_OVERLAPPEDWINDOW or WS_VISIBLE or WS_CLIPCHILDREN, _ 69 | CW_USEDEFAULT, CW_USEDEFAULT, 680, 480, _ 70 | NULL, NULL, hInstance, NULL) 71 | 72 | ' Messages loop 73 | Do Until (GetMessage(@wMsg, NULL, 0, 0) = FALSE) 74 | TranslateMessage(@wMsg) 75 | DispatchMessage(@wMsg) 76 | Loop 77 | 78 | End 0 79 | -------------------------------------------------------------------------------- /cmd/Adventure/Templates/HTML5 Template.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /cmd/Adventure/Templates/Java Console Application.java: -------------------------------------------------------------------------------- 1 | class HelloWorld 2 | { 3 | public static void main(String args[]) 4 | { 5 | System.out.println("Hello, world!"); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /cmd/Adventure/Templates/PHP Script.php: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cmd/Adventure/Templates/Pascal Console Application.pp: -------------------------------------------------------------------------------- 1 | program HelloWorld; 2 | 3 | begin 4 | writeln('Hello, world!'); 5 | end. 6 | -------------------------------------------------------------------------------- /cmd/Adventure/Templates/Pascal Win32 GUI.pp: -------------------------------------------------------------------------------- 1 | {$APPTYPE GUI} 2 | {$MODE DELPHI} 3 | program Win32GUI; 4 | 5 | uses 6 | Windows; 7 | 8 | const 9 | AppName = 'Win32GUI'; 10 | 11 | function WindowProc(Window: HWnd; AMessage: UINT; WParam : WPARAM; 12 | LParam: LPARAM): LRESULT; stdcall; export; 13 | 14 | begin 15 | WindowProc := 0; 16 | 17 | case AMessage of 18 | wm_Destroy: 19 | begin 20 | PostQuitMessage(0); 21 | Exit; 22 | end; 23 | end; 24 | 25 | WindowProc := DefWindowProc(Window, AMessage, WParam, LParam); 26 | end; 27 | 28 | { Register the Window Class } 29 | function WinRegister: Boolean; 30 | var 31 | WindowClass: WndClass; 32 | begin 33 | WindowClass.Style := cs_hRedraw or cs_vRedraw; 34 | WindowClass.lpfnWndProc := WndProc(@WindowProc); 35 | WindowClass.cbClsExtra := 0; 36 | WindowClass.cbWndExtra := 0; 37 | WindowClass.hInstance := system.MainInstance; 38 | WindowClass.hIcon := LoadIcon(0, idi_Application); 39 | WindowClass.hCursor := LoadCursor(0, idc_Arrow); 40 | WindowClass.hbrBackground := GetStockObject(WHITE_BRUSH); 41 | WindowClass.lpszMenuName := nil; 42 | WindowClass.lpszClassName := AppName; 43 | 44 | Result := RegisterClass(WindowClass) <> 0; 45 | end; 46 | 47 | { Create the Window Class } 48 | function WinCreate: HWnd; 49 | var 50 | hWindow: HWnd; 51 | begin 52 | hWindow := CreateWindow(AppName, 'Win32 GUI', 53 | ws_OverlappedWindow, cw_UseDefault, cw_UseDefault, 54 | cw_UseDefault, cw_UseDefault, 0, 0, system.MainInstance, nil); 55 | 56 | if hWindow <> 0 then begin 57 | ShowWindow(hWindow, CmdShow); 58 | ShowWindow(hWindow, SW_SHOW); 59 | UpdateWindow(hWindow); 60 | end; 61 | 62 | Result := hWindow; 63 | end; 64 | 65 | 66 | var 67 | AMessage: Msg; 68 | hWindow: HWnd; 69 | 70 | begin 71 | if not WinRegister then begin 72 | MessageBox(0, 'Register failed', nil, mb_Ok); 73 | Exit; 74 | end; 75 | 76 | hWindow := WinCreate; 77 | if longint(hWindow) = 0 then begin 78 | MessageBox(0, 'WinCreate failed', nil, mb_Ok); 79 | Exit; 80 | end; 81 | 82 | while GetMessage(@AMessage, 0, 0, 0) do begin 83 | TranslateMessage(AMessage); 84 | DispatchMessage(AMessage); 85 | end; 86 | 87 | Halt(AMessage.wParam); 88 | end. 89 | -------------------------------------------------------------------------------- /cmd/Adventure/Templates/Python Script.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | -------------------------------------------------------------------------------- /cmd/Adventure/Templates/VB.NET WinForms Application.vb: -------------------------------------------------------------------------------- 1 | Imports System.ComponentModel 2 | Imports System.Drawing 3 | Imports System.Windows.Forms 4 | 5 | Namespace SampleApp 6 | Public Class MainForm : Inherits Form 7 | Private btnHello As Button 8 | 9 | ' The form's constructor: this initializes the form and its controls. 10 | Public Sub New() 11 | ' Set the form's caption, which will appear in the title bar. 12 | Me.Text = "WinForms GUI" 13 | Me.Size = New Size(800, 600) 14 | 15 | ' Create a button control and set its properties. 16 | btnHello = New Button() 17 | btnHello.Name = "btnHello" 18 | btnHello.Location = New Point(12, 12) 19 | btnHello.Size = New Size(84, 24) 20 | btnHello.Text = "Hello!" 21 | 22 | ' Wire up an event handler to the button's "Click" event 23 | ' (see the code in the btnHello_Click function below). 24 | AddHandler btnHello.Click, New EventHandler(AddressOf btnHello_Click) 25 | 26 | ' Add the button to the form's control collection, 27 | ' so that it will appear on the form. 28 | Me.Controls.Add(btnHello) 29 | End Sub 30 | 31 | ' When the button is clicked, display a message. 32 | Private Sub btnHello_Click(sender As Object, e As EventArgs) 33 | MessageBox.Show("Hello, World!", "Message") 34 | End Sub 35 | 36 | ' This is the main entry point for the application. 37 | ' All VB.NET applications have one and only one of these methods. 38 | _ 39 | Public Shared Sub Main() 40 | Application.EnableVisualStyles() 41 | Application.Run(New MainForm()) 42 | End Sub 43 | End Class 44 | End Namespace 45 | -------------------------------------------------------------------------------- /cmd/Adventure/Templates/VBScript.vbs: -------------------------------------------------------------------------------- 1 | Option Explicit 2 | 3 | WScript.Echo "Hello!" 4 | -------------------------------------------------------------------------------- /cmd/Adventure/Templates/XML Document.xml: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cmd/Adventure/Templates/XSL Transformation File.xslt: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /cmd/Adventure/Themes/Specifics/AutoIt.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 |