From 935f953e823cb366914d056f191f0d90bc9fbc6d Mon Sep 17 00:00:00 2001 From: Mark Wiemer Date: Sun, 26 Jun 2022 16:31:53 -0700 Subject: [PATCH 1/9] Fixup Development.md --- docs/Development.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/Development.md b/docs/Development.md index e79cccef..f88cbecf 100644 --- a/docs/Development.md +++ b/docs/Development.md @@ -32,7 +32,7 @@ The tests should run automatically, and you should see passing output in the Deb 1. Bump the version in `package.json`. The message of the commit should be e.g. `v2.8.2`. 1. Push the changes. 1. Merge the PR. The body of the commit message should be the changelog entry. -1. Checkout `main` +1. `git checkout main` 1. Package the new version using `vsce package`. 1. Install the new version: 1. Select the newly-created `.vsix` file. @@ -48,10 +48,9 @@ The tests should run automatically, and you should see passing output in the Deb ### Publishing 1. Tag the release - 1. Delete the release branch in local 1. `git checkout main` - 1. `git tag v..` - 1. `git push origin v..` + 1. e.g. `git tag v2.8.2` + 1. `git push origin v2.8.2` 1. [Create a new release for this tag](https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/tags) 1. Release title: Same as in [Changelog.md](../Changelog.md) 1. Description: Same as in changelog From ebdce9a82b5ff7298c56d68793bb184cc553758c Mon Sep 17 00:00:00 2001 From: Mark Wiemer Date: Sun, 26 Jun 2022 16:33:43 -0700 Subject: [PATCH 2/9] Sort package.json Using https://www.npmjs.com/package/sort-package-json 1.57.0 --- package.json | 240 +++++++++++++++++++++++++-------------------------- 1 file changed, 120 insertions(+), 120 deletions(-) diff --git a/package.json b/package.json index 260a2755..8e90d455 100644 --- a/package.json +++ b/package.json @@ -1,47 +1,102 @@ { "name": "vscode-autohotkey-plus-plus", "displayName": "AutoHotkey Plus Plus", - "description": "AutoHotkey IntelliSense, debug, and language support for VS Code, forked from AutoHotkey Plus by cweijan", "version": "2.8.2", - "publisher": "mark-wiemer", - "engines": { - "vscode": "^1.30.0" - }, - "activationEvents": [ - "onLanguage:ahk", - "onCommand:ahk++.run", - "onDebug" - ], - "main": "./out/extension", + "description": "AutoHotkey IntelliSense, debug, and language support for VS Code, forked from AutoHotkey Plus by cweijan", "categories": [ "Programming Languages", "Snippets" ], - "license": "MIT", - "icon": "icon.png", + "keywords": [ + "vscode", + "autohotkey", + "ahk" + ], + "homepage": "https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/blob/main/README.md", "bugs": { "url": "https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/issues" }, - "homepage": "https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/blob/main/README.md", "repository": { "type": "git", "url": "https://github.com/mark-wiemer/vscode-autohotkey-plus-plus.git" }, - "galleryBanner": { - "color": "#00769D", - "theme": "dark" + "license": "MIT", + "publisher": "mark-wiemer", + "main": "./out/extension", + "scripts": { + "compile": "tsc -p ./", + "vscode:prepublish": "npm run compile", + "watch": "tsc -watch -p ./" }, - "keywords": [ - "vscode", - "autohotkey", - "ahk" - ], "contributes": { "breakpoints": [ { "language": "ahk" } ], + "commands": [ + { + "command": "ahk++.compile", + "title": "Compile AHK Script", + "category": "AHK++", + "icon": "./image/build.svg" + }, + { + "command": "ahk++.debug", + "title": "Debug AHK Script", + "category": "AHK++", + "icon": { + "light": "./image/run.png", + "dark": "./image/run-dark.png" + } + }, + { + "command": "ahk++.openHelp", + "title": "Open AutoHotkey Help", + "category": "AHK++" + }, + { + "command": "ahk++.run", + "title": "Run AHK Script", + "category": "AHK++" + }, + { + "command": "ahk++.runSelection", + "title": "Run Selection", + "category": "AHK++" + } + ], + "configuration": { + "type": "object", + "title": "AutoHotkey Plus Plus", + "properties": { + "ahk++.compilePath": { + "type": "string", + "default": "C:/Program Files/AutoHotkey/Compiler/Ahk2Exe.exe", + "description": "Path to the AHK compiler." + }, + "ahk++.enableIntellisense": { + "type": "boolean", + "default": true, + "description": "Enable IntelliSense (Preview). Changes take effect after reload." + }, + "ahk++.executePath": { + "type": "string", + "default": "C:/Program Files/AutoHotkey/AutoHotkeyU64.exe", + "description": "Path to the AHK runner." + }, + "ahk++.helpPath": { + "type": "string", + "default": "C:/Program Files/AutoHotkey/AutoHotkey.chm", + "description": "Path to the AHK Help document." + }, + "ahk++.showDebugButton": { + "type": "boolean", + "default": true, + "description": "Show the Debug button in the editor title menu" + } + } + }, "debuggers": [ { "type": "ahk", @@ -117,21 +172,6 @@ ] } ], - "languages": [ - { - "id": "ahk", - "aliases": [ - "AutoHotkey", - "autohotkey", - "ahk" - ], - "extensions": [ - ".ahk", - ".ext" - ], - "configuration": "./ahk.configuration.json" - } - ], "grammars": [ { "language": "ahk", @@ -139,36 +179,46 @@ "path": "./syntaxes/ahk.tmLanguage.json" } ], - "commands": [ + "keybindings": [ { "command": "ahk++.compile", - "title": "Compile AHK Script", - "category": "AHK++", - "icon": "./image/build.svg" + "key": "ctrl+shift+f9", + "when": "editorLangId == ahk" }, { "command": "ahk++.debug", - "title": "Debug AHK Script", - "category": "AHK++", - "icon": { - "light": "./image/run.png", - "dark": "./image/run-dark.png" - } + "key": "f9", + "when": "editorLangId == ahk" }, { "command": "ahk++.openHelp", - "title": "Open AutoHotkey Help", - "category": "AHK++" + "key": "ctrl+f1", + "when": "editorLangId == ahk" }, { "command": "ahk++.run", - "title": "Run AHK Script", - "category": "AHK++" + "key": "ctrl+f9", + "when": "editorLangId == ahk" }, { "command": "ahk++.runSelection", - "title": "Run Selection", - "category": "AHK++" + "key": "ctrl+f8", + "when": "editorLangId == ahk" + } + ], + "languages": [ + { + "id": "ahk", + "aliases": [ + "AutoHotkey", + "autohotkey", + "ahk" + ], + "extensions": [ + ".ahk", + ".ext" + ], + "configuration": "./ahk.configuration.json" } ], "menus": { @@ -197,79 +247,21 @@ } ] }, - "keybindings": [ - { - "command": "ahk++.compile", - "key": "ctrl+shift+f9", - "when": "editorLangId == ahk" - }, - { - "command": "ahk++.debug", - "key": "f9", - "when": "editorLangId == ahk" - }, - { - "command": "ahk++.openHelp", - "key": "ctrl+f1", - "when": "editorLangId == ahk" - }, - { - "command": "ahk++.run", - "key": "ctrl+f9", - "when": "editorLangId == ahk" - }, - { - "command": "ahk++.runSelection", - "key": "ctrl+f8", - "when": "editorLangId == ahk" - } - ], "snippets": [ { "language": "ahk", "path": "./snippets/ahk.json" } - ], - "configuration": { - "type": "object", - "title": "AutoHotkey Plus Plus", - "properties": { - "ahk++.compilePath": { - "type": "string", - "default": "C:/Program Files/AutoHotkey/Compiler/Ahk2Exe.exe", - "description": "Path to the AHK compiler." - }, - "ahk++.enableIntellisense": { - "type": "boolean", - "default": true, - "description": "Enable IntelliSense (Preview). Changes take effect after reload." - }, - "ahk++.executePath": { - "type": "string", - "default": "C:/Program Files/AutoHotkey/AutoHotkeyU64.exe", - "description": "Path to the AHK runner." - }, - "ahk++.helpPath": { - "type": "string", - "default": "C:/Program Files/AutoHotkey/AutoHotkey.chm", - "description": "Path to the AHK Help document." - }, - "ahk++.showDebugButton": { - "type": "boolean", - "default": true, - "description": "Show the Debug button in the editor title menu" - } - } - } - }, - "scripts": { - "vscode:prepublish": "npm run compile", - "compile": "tsc -p ./", - "watch": "tsc -watch -p ./" + ] }, + "activationEvents": [ + "onLanguage:ahk", + "onCommand:ahk++.run", + "onDebug" + ], "dependencies": { - "get-port": "^5.1.1", "@vscode/debugadapter": "^1.44.0", + "get-port": "^5.1.1", "xml2js": "^0.4.23" }, "devDependencies": { @@ -278,11 +270,19 @@ "@types/mocha": "^9.1.1", "@types/node": "^14.14.31", "@types/vscode": "^1.30.0", + "@vscode/test-electron": "^1.6.1", "fs-extra": "^9.1.0", "glob": "^7.1.6", "mocha": "^10.0.0", "source-map-support": "^0.5.19", - "typescript": "^3.4.3", - "@vscode/test-electron": "^1.6.1" + "typescript": "^3.4.3" + }, + "engines": { + "vscode": "^1.30.0" + }, + "icon": "icon.png", + "galleryBanner": { + "color": "#00769D", + "theme": "dark" } } From fdf7601308c76743cffaeaa66513cb7dabb2ea2c Mon Sep 17 00:00:00 2001 From: Mark Wiemer Date: Sun, 26 Jun 2022 16:58:16 -0700 Subject: [PATCH 3/9] Add prettierrc From mark-wiemer/vscode-helloworld --- .prettierrc | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 00000000..561ceba6 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,7 @@ +singleQuote: true +tabWidth: 4 +trailingComma: all +overrides: + - files: ["*.yml", "*.yaml", ".prettierrc"] + options: + tabWidth: 2 From 846643e896d1c2eb16ddbf4f53c472e915d901ef Mon Sep 17 00:00:00 2001 From: Mark Wiemer Date: Sun, 26 Jun 2022 17:39:20 -0700 Subject: [PATCH 4/9] Teardown format tests correctly Previously tests were modifying the `in` sample files, which needed to be manually reverted. Now tests do not change any of the files they touch. --- src/test/suite/format/format.test.ts | 30 +++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/src/test/suite/format/format.test.ts b/src/test/suite/format/format.test.ts index ddb1a142..859e8b73 100644 --- a/src/test/suite/format/format.test.ts +++ b/src/test/suite/format/format.test.ts @@ -55,18 +55,23 @@ const filesParentPath = path.join( suite('Formatter', () => { formatTests.forEach((formatTest) => { test(`Format ${formatTest.filenameRoot}`, async () => { + // Arrange const inFilename = formatTest.filenameRoot + inFilenameSuffix; const outFilename = formatTest.filenameRoot + outFilenameSuffix; const outFileString = fs .readFileSync(path.join(filesParentPath, outFilename)) .toString(); - const unformattedSampleFile = await vscode.workspace.openTextDocument( - path.join(filesParentPath, inFilename), - ); + const unformattedSampleFile = + await vscode.workspace.openTextDocument( + path.join(filesParentPath, inFilename), + ); + const originalText = unformattedSampleFile.getText(); const textEditor = await vscode.window.showTextDocument( unformattedSampleFile, ); const formatter = new FormatProvider(); + + // Act const edits = formatter.provideDocumentFormattingEdits( unformattedSampleFile, { @@ -75,12 +80,31 @@ suite('Formatter', () => { }, null, ); + // editing the file also saves the file, so we'll need to teardown await textEditor.edit((editBuilder) => { edits.forEach((edit) => editBuilder.replace(edit.range, edit.newText), ); }); + + // Assert assert.strictEqual(textEditor.document.getText(), outFileString); + + // Teardown - revert the file to its original state + const lastLineIndex = unformattedSampleFile.lineCount - 1; + const lastLineLength = + unformattedSampleFile.lineAt(lastLineIndex).text.length; + const fullDocumentRange = unformattedSampleFile.validateRange( + new vscode.Range( + new vscode.Position(0, 0), + new vscode.Position(lastLineIndex + 1, lastLineLength + 1), // + 1 to ensure full coverage + ), + ); + + // editing the file also saves the file + await textEditor.edit((editBuilder) => + editBuilder.replace(fullDocumentRange, originalText), + ); }); }); }); From 46fa6db1436b55aa6874f5ec84a7ef9a10363c0b Mon Sep 17 00:00:00 2001 From: Mark Wiemer Date: Sun, 26 Jun 2022 17:43:16 -0700 Subject: [PATCH 5/9] Convert grammar to YAML, run tests via CLI --- .gitignore | 6 +- .prettierignore | 13 + .vscode/launch.json | 1 + Contributing.md | 24 + package-lock.json | 223 +- package.json | 18 +- src/test/runTest.ts | 28 + .../suite/grammar/samples/ahk-explorer.ahk | 3522 ++ .../grammar/samples/ahk-explorer.ahk.snap | 27939 ++++++++++++++++ syntaxes/ahk.tmLanguage.json | 315 - syntaxes/ahk.tmLanguage.yaml | 187 + 11 files changed, 31955 insertions(+), 321 deletions(-) create mode 100644 .prettierignore create mode 100644 Contributing.md create mode 100644 src/test/runTest.ts create mode 100644 src/test/suite/grammar/samples/ahk-explorer.ahk create mode 100644 src/test/suite/grammar/samples/ahk-explorer.ahk.snap delete mode 100644 syntaxes/ahk.tmLanguage.json create mode 100644 syntaxes/ahk.tmLanguage.yaml diff --git a/.gitignore b/.gitignore index 36c78f05..bd15a514 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,13 @@ +# Contents of this file are also in `.prettierignore` + # Folders .idea/ .@vscode/test-electron/ +.vscode-test/ node_modules out # Files .vscode/settings.json -*.vsix \ No newline at end of file +*.vsix +syntaxes/*.json \ No newline at end of file diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..7eff9461 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,13 @@ +# From `.gitignore` + +# Folders +.idea/ +.@vscode/test-electron/ +.vscode-test/ +node_modules +out + +# Files +.vscode/settings.json +*.vsix +syntaxes/*.json \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index 6111057e..791035c7 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -17,6 +17,7 @@ "request": "launch", "runtimeExecutable": "${execPath}", "args": [ + "--disable-extensions", "--extensionDevelopmentPath=${workspaceFolder}", "--extensionTestsPath=${workspaceFolder}/out/test/suite/index" ], diff --git a/Contributing.md b/Contributing.md new file mode 100644 index 00000000..cbf8a46f --- /dev/null +++ b/Contributing.md @@ -0,0 +1,24 @@ +# Contributing + +I welcome any issues or PRs :) + +## Running locally + +1. Clone the repo +1. Install the relevant dependencies + - VS Code Insiders (needed to run the tests from CLI, see [using Insiders version for extension development](https://code.visualstudio.com/api/working-with-extensions/testing-extension#using-insiders-version-for-extension-development)) + - Node 16 with npm 8 +1. `npm i` + +## Validate the build + +1. `npm run test` +1. Go to `Run and Debug` viewlet (`Ctrl+Shift+D`) and click "Run Extension" + +## Automated checks + +All checks are found in `package.json`. + + - Test + - Pretest (compile): tsc, js-yaml + - Automated tests: Mocha diff --git a/package-lock.json b/package-lock.json index 78317a13..a52247c0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "vscode-autohotkey-plus-plus", - "version": "2.8.1", + "version": "2.8.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "vscode-autohotkey-plus-plus", - "version": "2.8.1", + "version": "2.8.2", "license": "MIT", "dependencies": { "@vscode/debugadapter": "^1.44.0", @@ -22,9 +22,11 @@ "@vscode/test-electron": "^1.6.1", "fs-extra": "^9.1.0", "glob": "^7.1.6", + "js-yaml": "^4.1.0", "mocha": "^10.0.0", "source-map-support": "^0.5.19", - "typescript": "^3.4.3" + "typescript": "^3.4.3", + "vscode-tmgrammar-test": "^0.1.1" }, "engines": { "vscode": "^1.30.0" @@ -395,6 +397,15 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, + "node_modules/commander": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.3.0.tgz", + "integrity": "sha512-hv95iU5uXPbK83mjrJKuZyFM/LBAoCV/XhVGkS5Je6tl7sxr6A0ITMw5WoRV46/UaJ46Nllm3Xt7IaJhXTIkzw==", + "dev": true, + "engines": { + "node": "^12.20.0 || >=14" + } + }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -1304,6 +1315,116 @@ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "dev": true }, + "node_modules/vscode-oniguruma": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/vscode-oniguruma/-/vscode-oniguruma-1.6.2.tgz", + "integrity": "sha512-KH8+KKov5eS/9WhofZR8M8dMHWN2gTxjMsG4jd04YhpbPR91fUj7rYQ2/XjeHCJWbg7X++ApRIU9NUwM2vTvLA==", + "dev": true + }, + "node_modules/vscode-textmate": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/vscode-textmate/-/vscode-textmate-7.0.1.tgz", + "integrity": "sha512-zQ5U/nuXAAMsh691FtV0wPz89nSkHbs+IQV8FDk+wew9BlSDhf4UmWGlWJfTR2Ti6xZv87Tj5fENzKf6Qk7aLw==", + "dev": true + }, + "node_modules/vscode-tmgrammar-test": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/vscode-tmgrammar-test/-/vscode-tmgrammar-test-0.1.1.tgz", + "integrity": "sha512-0WvD3U+E0KV95bNT7v5g7PQ85JfAjh9MuXOy1dgwZskkCsA8ASiSy60iv30JOZrM6dBjJZooGUAybRAIB+Song==", + "dev": true, + "dependencies": { + "chalk": "^2.4.2", + "commander": "^9.2.0", + "diff": "^4.0.2", + "glob": "^7.1.6", + "vscode-oniguruma": "^1.5.1", + "vscode-textmate": "^7.0.1" + }, + "bin": { + "vscode-tmgrammar-snap": "dist/snapshot.js", + "vscode-tmgrammar-test": "dist/unit.js" + } + }, + "node_modules/vscode-tmgrammar-test/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/vscode-tmgrammar-test/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/vscode-tmgrammar-test/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/vscode-tmgrammar-test/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/vscode-tmgrammar-test/node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/vscode-tmgrammar-test/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/vscode-tmgrammar-test/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/vscode-tmgrammar-test/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/workerpool": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz", @@ -1705,6 +1826,12 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, + "commander": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.3.0.tgz", + "integrity": "sha512-hv95iU5uXPbK83mjrJKuZyFM/LBAoCV/XhVGkS5Je6tl7sxr6A0ITMw5WoRV46/UaJ46Nllm3Xt7IaJhXTIkzw==", + "dev": true + }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -2386,6 +2513,96 @@ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "dev": true }, + "vscode-oniguruma": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/vscode-oniguruma/-/vscode-oniguruma-1.6.2.tgz", + "integrity": "sha512-KH8+KKov5eS/9WhofZR8M8dMHWN2gTxjMsG4jd04YhpbPR91fUj7rYQ2/XjeHCJWbg7X++ApRIU9NUwM2vTvLA==", + "dev": true + }, + "vscode-textmate": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/vscode-textmate/-/vscode-textmate-7.0.1.tgz", + "integrity": "sha512-zQ5U/nuXAAMsh691FtV0wPz89nSkHbs+IQV8FDk+wew9BlSDhf4UmWGlWJfTR2Ti6xZv87Tj5fENzKf6Qk7aLw==", + "dev": true + }, + "vscode-tmgrammar-test": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/vscode-tmgrammar-test/-/vscode-tmgrammar-test-0.1.1.tgz", + "integrity": "sha512-0WvD3U+E0KV95bNT7v5g7PQ85JfAjh9MuXOy1dgwZskkCsA8ASiSy60iv30JOZrM6dBjJZooGUAybRAIB+Song==", + "dev": true, + "requires": { + "chalk": "^2.4.2", + "commander": "^9.2.0", + "diff": "^4.0.2", + "glob": "^7.1.6", + "vscode-oniguruma": "^1.5.1", + "vscode-textmate": "^7.0.1" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, "workerpool": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz", diff --git a/package.json b/package.json index 8e90d455..7e902461 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,13 @@ "publisher": "mark-wiemer", "main": "./out/extension", "scripts": { - "compile": "tsc -p ./", + "compile": "npm run compile_ts && npm run compile_grammar", + "compile_grammar": "js-yaml syntaxes/ahk.tmLanguage.yaml > syntaxes/ahk.tmLanguage.json", + "compile_ts": "tsc -p ./", + "pretest": "npm run compile", + "test": "npm run test_unit && npm run test_grammar", + "test_grammar": "vscode-tmgrammar-snap src/test/suite/grammar/samples/*.ahk", + "test_unit": "node ./out/test/runTest.js", "vscode:prepublish": "npm run compile", "watch": "tsc -watch -p ./" }, @@ -273,9 +279,11 @@ "@vscode/test-electron": "^1.6.1", "fs-extra": "^9.1.0", "glob": "^7.1.6", + "js-yaml": "^4.1.0", "mocha": "^10.0.0", "source-map-support": "^0.5.19", - "typescript": "^3.4.3" + "typescript": "^3.4.3", + "vscode-tmgrammar-test": "^0.1.1" }, "engines": { "vscode": "^1.30.0" @@ -284,5 +292,11 @@ "galleryBanner": { "color": "#00769D", "theme": "dark" + }, + "__metadata": { + "id": "cf96e3c7-3b07-4403-acc9-2b6299ba7877", + "publisherDisplayName": "Mark Wiemer", + "publisherId": "5d0c3a99-7c1e-41ac-a4b0-401d0091adcf", + "isPreReleaseVersion": false } } diff --git a/src/test/runTest.ts b/src/test/runTest.ts new file mode 100644 index 00000000..b621746f --- /dev/null +++ b/src/test/runTest.ts @@ -0,0 +1,28 @@ +import * as path from 'path'; + +import { runTests } from '@vscode/test-electron'; + +async function main() { + try { + /** + * The folder containing the Extension Manifest package.json + * Passed to `--extensionDevelopmentPath` + */ + const extensionDevelopmentPath = path.resolve(__dirname, '../../'); + + /** The path to test runners. Passed to --extensionTestsPath */ + const extensionTestsPath = path.resolve(__dirname, './suite/index'); + + // Download VS Code, unzip it and run the integration test + await runTests({ + launchArgs: ['--disable-extensions'], + extensionDevelopmentPath, + extensionTestsPath, + }); + } catch (err) { + console.error('Failed to run tests'); + process.exit(1); + } +} + +main(); diff --git a/src/test/suite/grammar/samples/ahk-explorer.ahk b/src/test/suite/grammar/samples/ahk-explorer.ahk new file mode 100644 index 00000000..d5194add --- /dev/null +++ b/src/test/suite/grammar/samples/ahk-explorer.ahk @@ -0,0 +1,3522 @@ +; From https://github.com/FuPeiJiang/ahk_explorer/blob/tests/ahk_explorer.ahk +; Copyright 2021 FuPeiJiang, used with permission +; https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/pull/32#issuecomment-770233225 + +#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. +#SingleInstance, force +SendMode Input ; Recommended for new scripts due to its superior speed and reliability. +SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. +SetBatchLines, -1 +#KeyHistory 0 +ListLines Off + +SetWinDelay, -1 +SetControlDelay, -1 + +#MaxThreads, 20 +#MaxThreadsPerHotkey, 4 +SetTitleMatchMode, 2 + +currentDirSearch= +;%appdata%\ahk_explorer_settings +FileRead, favoriteFolders, %A_AppData%\ahk_explorer_settings\favoriteFolders.txt +favoriteFolders:=StrSplit(favoriteFolders,"`n","`r") +loadSettings() +;gsettings + +FOLDERID_Downloads := "{374DE290-123F-4565-9164-39C4925E467B}" +RegRead, v, HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders, % FOLDERID_Downloads +VarSetCapacity(downloads, (261 + !A_IsUnicode) << !!A_IsUnicode) +DllCall("ExpandEnvironmentStrings", Str, v, Str, downloads, UInt, 260) +EcurrentDir1:=downloads +; EcurrentDir1=C:\Users\Public\AHK\notes\tests +; EcurrentDir1=C:\Users\Public\AHK\notes\tests\File Watcher +; EcurrentDir2=C:\Users\Public\AHK +; EcurrentDir1=C:\Users\Public\AHK\notes\tests\New Folder +EcurrentDir2=C:\Users\Public\AHK\notes\tests\New Folder 3 +whichSide:=1 + +lastDir1:="C:" + +for n, param in A_Args ; For each parameter: +{ +fileExist:=fileExist(param) +if (fileExist) { +if (InStr(fileExist, "D")) { +EcurrentDir%whichSide%:=param + +} else { +SplitPath, param, OutFileName, OutDir +EcurrentDir%whichSide%:=OutDir +toFocus:=OutFileName +;select file +} +} +else { +p("the folder or file you are trying to open doesn't exist`nyou were trying to open:`n" param) +} +break +} +;vars +watching1:=["control"] +watching2:=["control"] +maxRows:=50 +rememberIconNumber:=0 +lastInputSearchCurrentDir:=false +dirHistory1:=[] +dirHistory2:=[] +undoHistory1:=[] +undoHistory2:=[] +global DROPEFFECT_NONE := 0 +global DROPEFFECT_COPY := 1 +global DROPEFFECT_MOVE := 2 +global DROPEFFECT_LINK := 4 +calculatefileSizes:=1 +calculateDates:=1 +doIcons:=1 +global dropEffectFormat := DllCall("RegisterClipboardFormat", "Str", CFSTR_PREFERREDDROPEFFECT := "Preferred DropEffect", "UInt") + +Gui, main:New, +hwndthisHwnd +thisUniqueWintitle:="ahk_id " thisHwnd +Gui, main:Default +Gui,Font, s10, Segoe UI + +Gui, +LastFound +hw_gui := WinExist() + +Gui, Margin, 0, 0 + +folderListViewWidth:=250 +favoritesListViewWidth:=130 + +listViewWidth:=500 +favoritesLenght:=favoriteFolders.Length() + +Gui, Add, Button, w%favoritesListViewWidth% ggsettings y212,settings +Gui, Add, ListView, r%favoritesLenght% w%favoritesListViewWidth% x0 y+0 nosort vfavoritesListView ggfavoritesListView AltSubmit ,Favorites + +Gui, Add, ListView, r10 w%folderListViewWidth% y0 x+0 vfolderListView1_1 gfolderlistViewEvents1_1 AltSubmit ,Name +Gui, Add, ListView, r10 w%folderListViewWidth% x+0 y0 vfolderlistView2_1 gfolderlistViewEvents2_1 AltSubmit ,Name + +Gui, Add, Edit, hwndEdithwnd1 r1 w%listViewWidth% y+0 x+-500 vvcurrentDirEdit1 gcurrentDirEdit1Changed, %EcurrentDir1% + +Gui, Add, ListView, NoSort HwndListviewHwnd1 Count5000 r25 -WantF2 w%listViewWidth% -ReadOnly vvlistView1 glistViewEvents1 AltSubmit ,type|Name|Date|sortableDate|Size|sortableSize + +Gui, Add, ListView, r10 w%folderListViewWidth% y0 x+0 vfolderListView1_2 gfolderlistViewEvents1_2 AltSubmit ,Name +Gui, Add, ListView, r10 w%folderListViewWidth% x+0 y0 vfolderlistView2_2 gfolderlistViewEvents2_2 AltSubmit ,Name +Gui, Add, Edit, hwndEdithwnd2 r1 w%listViewWidth% y+0 x+-500 vvcurrentDirEdit2 gcurrentDirEdit2Changed, %EcurrentDir2% +Gui, Add, ListView, NoSort HwndListviewHwnd2 Count5000 r25 -WantF2 w%listViewWidth% -ReadOnly vvlistView2 glistViewEvents2 AltSubmit ,type|Name|Date|sortableDate|Size|sortableSize + +OnMessage(0x4A, "WM_COPYDATA_READ") + +OnMessage(0x111, "HandleMessage" ) +loop 2 { +Gui, ListView, vlistView%A_Index% +LV_Colors.OnMessage() +LV_Colors.Attach(ListviewHwnd%A_Index%, 1, 0) + +LV_ModifyCol(1,20) +LV_ModifyCol(2,300) +LV_ModifyCol(3,"50 Right") +LV_ModifyCol(5,"80 Right") + +LV_ModifyCol(2, "Logical") +LV_ModifyCol(6,"Integer") + +LV_ModifyCol(4,0) ; hides 3rd row +LV_ModifyCol(6,0) ; hides 3rd row +focused=flistView +ImageListID%A_Index% := IL_Create(50) +LV_SetImageList(ImageListID%A_Index%) ;desactivated this to test +} + +Gui, Show,,ahk_explorer +Gui, ListView, favoritesListView +favoriteFoldersNames:=[] +for k, v in favoriteFolders { +SplitPath, v, OutFileName +favoriteFoldersNames.Push(OutFileName) +LV_Add(, OutFileName) +} + +renderCurrentDir() +run, "lib\FolderWatcher2.ahk",,,PID_FolderWatcher2 + +IServiceProvider := ComObjCreate("{C2F03A33-21F5-47FA-B4BB-156362A2F239}", "{6D5140C1-7436-11CE-8034-00AA006009FA}") +IVirtualDesktopManagerInternal := ComObjQuery(IServiceProvider, "{C5E0CDCA-7B6E-41B2-9FC4-D93975CC467B}", "{F31574D6-B682-4CDC-BD56-1827860ABEC6}") +MoveViewToDesktop := vtable(IVirtualDesktopManagerInternal, 4) ; void MoveViewToDesktop(object pView, IVirtualDesktop desktop); +GetCurrentDesktop := vtable(IVirtualDesktopManagerInternal, 6) ; IVirtualDesktop GetCurrentDesktop(); +ImmersiveShell := ComObjCreate("{C2F03A33-21F5-47FA-B4BB-156362A2F239}", "{00000000-0000-0000-C000-000000000046}") + +if !(IApplicationViewCollection := ComObjQuery(ImmersiveShell,"{1841C6D7-4F9D-42C0-AF41-8747538F10E5}","{1841C6D7-4F9D-42C0-AF41-8747538F10E5}" ) ) ; 1607-1809 +{ +MsgBox IApplicationViewCollection interface not supported. +} +GetViewForHwnd := vtable(IApplicationViewCollection, 6) ; (IntPtr hwnd, out IApplicationView view); + +return + +; f3:: +Process, Close, %PID_getFolderSizes% +Exitapp +return + +;labels +gsaveSettings: +gui, settingsGui:Default +gui, submit +FileRecycle, %A_AppData%\ahk_explorer_settings\settings.txt +FileAppend, %vsettings%, *%A_AppData%\ahk_explorer_settings\settings.txt +loadSettings() +return + +gsettings: +Gui, settingsGui:Default +FileRead, settingsTxt, %A_AppData%\ahk_explorer_settings\settings.txt +if (!settingsGuiCreated) +{ +settingsGuiCreated:=true +editSize:=[1000, 200] +textSize:=[190, editSize[2]] +editPos:=[textSize[1]+30, 50] +textPos:=[10, ZTrim(editPos[2]+1.5) ] +guiSize:=[editSize[1]+textSize[1]+20, editPos[2]+editSize[2]+10] +guiPos:=[A_ScreenWidth/2-guiSize[1]/2,A_ScreenHeight/2-guiSize[2]/2] +Gui,Font,s12 w500 q5, Consolas + +Gui, add, button, ggsaveSettings,Save Settings +Gui,add,Text, % "x" textPos[1] " y" textPos[2] " w" textSize[1] " h" textSize[2], peazipPath`nvscodePath`nBGColorOfSelectedPane`nAhk2ExePath`nspekPath +Gui,add,Edit, % "x" editPos[1] " y" editPos[2] " w" editSize[1] " h" editSize[2] " vvsettings -wrap",%settingsTxt% +} else { +Guicontrol, text, vsettings,%settingsTxt% +} +Gui,show, % "x" guiPos[1] " y" guiPos[2] " w" guiSize[1] " h" guiSize[2] ,set_settings_GUI +return + +gChangeDrive: +index:=SubStr(A_GuiControl, 0) +EcurrentDir%whichSide%:=drives[index] ":" +renderCurrentDir() +return +multiRenameGuiGuiClose: +Gui, Destroy +return +gmultiRenameApply: +multiRenameNames:=getMultiRenameNames() +multiRenameNamesBak:=multiRenameNames.Clone() +namesToMultiRenameBak:=namesToMultiRename.Clone() + +for k, v in multiRenameNamesBak { +toRenamePath := multiRenameDir "\" namesToMultiRenameBak[k] +renamedPath := multiRenameDir "\" v + +renamedPathExists:=fileExist(renamedPath) +if (renamedPathExists) { +p("name already taken", renamedPathExists) +break +} +toRenameExists:=fileExist(toRenamePath) +if (toRenameExists) { +if (InStr(toRenameExists, "D")) { +FileMoveDir, %toRenamePath%, %renamedPath% +} else { +FileMove, %toRenamePath%, %renamedPath% +} +if ErrorLevel { +p("file", toRenamePath "could not be renamed to", renamedPath) +break +} +namesToMultiRename.RemoveAt(1) +multiRenameNames.RemoveAt(1) +} else { +p("file to rename:", toRenamePath, "doesn't exist anymore") +break +} +} +multiRenamelength:=namesToMultiRename.Length() +if (multiRenamelength) { +Guicontrol, text, vmultiRenameTargets, % "|" array_ToVerticleBarString(namesToMultiRename) +Guicontrol, text, vmultiRenamePreview, % "|" array_ToVerticleBarString(multiRenameNames) +} else { +Gui, Destroy +setWhichSideFromDir(multiRenameDir) +renderCurrentDir() ;refresh +} +return +gmultiRenamePreview: +Guicontrol, text, vmultiRenamePreview, % "|" array_ToVerticleBarString(getMultiRenameNames()) +return +RemoveToolTip: +ToolTip +return +TypingInRenameSimple: +Gui,Submit,NoHide + +Size:=10 +Gui,Fake:Font,s%Size%,Segoe UI +Gui,Fake:Add,Text, -Wrap vDummy,% RenamingSimple +GuiControlGet,Pos,Fake:Pos,Dummy +Gui,Fake:Destroy + +if (posw+ 2 * Size>renameTextWidthLimit) { +renameTextWidthLimit:=(posw+ 2 * Size) + (8 * Size) +width:=renameTextWidthLimit +GuiControl Move,RenamingSimple, W%width% +Guiwidth:=width+2 +Gui, Show, W%Guiwidth% +} +if (!firstRename) { +firstRename:=true +SplitPath, TextBeingRenamed,, , , OutNameNoExt +SendMessage,0xB1, 0, 0, , ahk_id %RenameHwnd% +fileExist:=fileExist(EcurrentDir%whichSide% "\" TextBeingRenamed) +if (InStr(fileExist, "D")) +SendMessage, 0xB1,0,% StrLen(TextBeingRenamed),, ahk_id %RenameHwnd% ;select all +else +SendMessage, 0xB1,0,% StrLen(OutNameNoExt),, ahk_id %RenameHwnd% +} else { +ControlGet, Outvar ,CurrentCol,, Edit1 +Outvar -=1 +Postmessage,0xB1, 0, 0, Edit1 ;move caret to front to pan +Postmessage,0xB1,%Outvar%,%Outvar%, Edit1 ;move caret back to end + +} +return +;renameLabel +grenameFileLabel: +fromButton:=true +renameFileLabel: +if (canRename) { +gui, renameSimple:Default +gui, submit +gui, main:Default +noRenameError:=true + +if not(TextBeingRenamed==RenamingSimple) { ;Case Sensitive +if (stuffByName[RenamingSimple].Count()) { +noRenameError:=false +p("file with same name") +} else { +SourcePath:=EcurrentDir%whichSide% "\" TextBeingRenamed +fileExist:=FileExist(SourcePath) +if (fileExist) { +DestPath:=EcurrentDir%whichSide% "\" RenamingSimple + +if (TextBeingRenamed=RenamingSimple) { ;only different capitalization +randomPath:=generateRandomUniqueName(SourcePath,isDir) + +if (isDir) { +FileMoveDir, %SourcePath%, %randomPath% +} else { +FileMove, %SourcePath%, %randomPath% +} +if ErrorLevel { +noRenameError:=false +p("file could not be renamed:illegal name or file in use") +} +SoundPlay, *-1 + +SourcePath:=randomPath +} + +if (InStr(fileExist, "D")) { +FileMoveDir, %SourcePath%, %DestPath% +} else { +; p("FileMove") +FileMove, %SourcePath%, %DestPath% +} +if ErrorLevel { +noRenameError:=false +p("file could not be renamed:illegal name or file in use") +} +SoundPlay, *-1 +} +} +} +if (noRenameError) +{ +canRename:=false +gui, renameSimple:Default +gui, destroy + +gui, main:Default +if (fromButton) { +ControlFocus,, % "ahk_id " ListviewHwnd%whichSide% +} +} else { +gui, main:Default + +gui, show + +gui, renameSimple:Default +gui, show,,renamingWinTitle +} +fromButton:=false +} +return + +mainGuiClose: +if GetKeyState("Shift") { +Process, Close, %PID_getFolderSizes% +Process, Close, %PID_FolderWatcher2% +Exitapp +} else { +Process, Close, %PID_getFolderSizes% +windowHidden:=true +Gui, main:Default +Gui, hide +} +return + +couldNotCreateFolder() +{ +global +Gui, createFolder:Default +creatingNewFolder:=true +dontSearch:=true +ControlSetText,, %createFolderName%, ahk_id %folderCreationHwnd% +SendMessage, 0xB1, 0, -1,, % "ahk_id " folderCreationHwnd +gui, createFolder: show,, create_folder +dontSearch:=false +} +;new folder +;create folder +createLabel: +gui, createFolder: submit +toCreate:=EcurrentDir%whichSide% "\" createFolderName +if (!fileExist(toCreate)) { +FileCreateDir, %toCreate% +if (ErrorLevel) { +SoundPlay, *16 +p("Could not create Folder, illegal name or idk") +couldNotCreateFolder() +} else { +Gui, main:Default +SoundPlay, *-1 +} +} else { +SoundPlay, *16 +p("folder already exists") +couldNotCreateFolder() +} +return + +createAndOpenLabel: +gui, createFolder: submit +toCreate:=EcurrentDir%whichSide% "\" createFolderName +if (!fileExist(toCreate)) { +FileCreateDir, %toCreate% +if (ErrorLevel) { +SoundPlay, *16 +p("Could not create Folder, illegal name or idk") +couldNotCreateFolder() +} else { +EcurrentDir%whichSide%:=toCreate +Gui, main:Default +renderCurrentDir() +SoundPlay, *-1 +} +} else { +SoundPlay, *16 +p("folder already exists") +couldNotCreateFolder() +} +return + +gfavoritesListView: +if (A_GuiEvent = "DoubleClick") { +Gui, ListView, favoritesListView +doubleClickedFolderOrFile(favoriteFolders[A_EventInfo]) +} else if (A_GuiEvent="ColClick") { +path=%A_AppData%\ahk_explorer_settings\favoriteFolders.txt +toRun:= """" vscodePath """ """ path """" +run, %toRun% +} +return + +folderlistViewEvents1_1: +folderlistViewEvents2_1: +folderlistViewEvents1_2: +folderlistViewEvents2_2: +whichSide:=SubStr(A_GuiControl, 0) +num:=SubStr(A_GuiControl, 15, 1) +whichParent:=(num=1) ? 2 : 1 +Gui, Show,NA,% EcurrentDir%whichSide% " - ahk_explorer" + +if (A_GuiEvent="ColClick") +{ +EcurrentDir%whichSide%:=parent%whichParent%Dir%whichSide% +renderCurrentDir() +} else if (A_GuiEvent = "DoubleClick") { +EcurrentDir%whichSide%:=parent%whichParent%DirDirs%whichSide%[A_EventInfo] +renderCurrentDir() +} +return +currentDirEdit1Changed: +currentDirEdit2Changed: +SetTimer, currentDirEdit1ChangedTimer, -0 +return +currentDirEdit1ChangedTimer: +Gui, main:Default +gui, submit, nohide +if (focused="searchCurrentDirEdit") +{ +if (vcurrentDirEdit%whichSide%!=lastEditText) +lastEditText:=vcurrentDirEdit%whichSide% +if (!submittingGui) { +searchString%whichSide%:=vcurrentDirEdit%whichSide% +searchInCurrentDir() +} else { +p(6456) +queueSubmitGui:=true +} +} +return +listViewEvents1: +listViewEvents2: +; whichSide:=SubStr(A_GuiControl, 0) +if (A_GuiEvent=="D") { +selectedPaths:=getSelectedPaths() + +if (GetKeyState("Alt")) { +FileToClipboard(selectedPaths, "cut") +} else { +FileToClipboard(selectedPaths) +} + +Cursors := [] +Cursors[1] := DllCall("LoadCursor", "Ptr", 0, "Ptr", 32515, "UPtr") ; DROPEFFECT_COPY = IDC_CROSS +Cursors[2] := DllCall("LoadCursor", "Ptr", 0, "Ptr", 32516, "UPtr") ; DROPEFFECT_MOVE = IDC_UPARROW +Cursors[3] := DllCall("LoadCursor", "Ptr", 0, "Ptr", 32648, "UPtr") ; Copy or Move = IDC_NO +DoDragDrop(Cursors) +} +else if (A_GuiEvent=="F") { +whichSide:=SubStr(A_GuiControl, 0) +Gui, Show,NA,% EcurrentDir%whichSide% " - ahk_explorer" + +If (ICELV%whichSide%["Changed"]) { +Msg := "" +p(ICELV%whichSide%.Changed["Txt"]) +ICELV%whichSide%.Remove("Changed") +} +} +else if (A_GuiEvent=="e") { +whichSide:=SubStr(A_GuiControl, 0) +focused:="flistView" +LV_GetText(OutputVar,A_EventInfo,2) + +for k, v in stuffByName +{ +if (v=renaming) { +SourcePath:=filePaths[k] +DestPath:=EcurrentDir%whichSide% "\" OutputVar +stuffByName[k]:=OutputVar +filePaths[k]:=DestPath +fileExist:=FileExist(SourcePath) +if (fileExist) { +if (InStr(fileExist, "D")) { +FileMoveDir, %SourcePath%, %DestPath% +} else { +FileMove, %SourcePath%, %DestPath% +} +} +} +} +} else if (A_GuiEvent=="E") { +focused:="renaming" +LV_GetText(OutputVar,A_EventInfo,2) +renaming:=OutputVar +SplitPath, OutputVar, , , OutExtension, OutNameNoExt +if (OutNameNoExt) { +Postmessage,0xB1, 0, % StrLen(OutNameNoExt), Edit2 +} else { +Postmessage,0xB1, 1, % StrLen(OutExtension)+1, Edit2 +} +} else if (A_GuiEvent = "DoubleClick") +{ +if (!canRename) +doubleClickedNormal(A_EventInfo) +} +else if (A_GuiEvent=="K") ;key pressed +{ +if (!dontSearch) { +whichSide:=SubStr(A_GuiControl, 0) +ControlFocus,, % "ahk_id " ListviewHwnd%whichSide% +Gui, ListView, vlistView%whichSide% + +key := GetKeyName(Format("vk{:x}", A_EventInfo)) +if (key="Backspace") +{ +} +else if (key="f2") { +canRename:=true +; focused:="renaming" +firstRename:=false +fromButton:=false +renameTextWidthLimit:=200 + +row:=LV_GetNext("") +LV_GetText(TextBeingRenamed, row, 2) +ICELV%whichSide%.EditCell(row, 2) +sleep, 25 +WinGetPos, xpos, ypos,,,% ahk_explorer ahk_class AutoHotkeyGUI +if (whichSide=1) +xpos+=161 +else +xpos+=161+listViewWidth + +ypos+=A_CaretY - 5 +Gui, renameSimple:Default +Gui,Font, s10, Segoe UI +Gui, Margin , 0,0,0,0 +gui, add, edit,y2 r1 w%renameTextWidthLimit% -wrap gTypingInRenameSimple vRenamingSimple hwndRenameHwnd, %TextBeingRenamed% +Gui, Add, Button, Hidden Default ggrenameFileLabel + +gui, show, X%xpos% Y%ypos% h0,renamingWinTitle +WinSet, Style, -0xC00000,a ; remove the titlebar and border(s) + +gosub, TypingInRenameSimple + +return +sleep, 500 + +LV_GetText(OutputVar,A_EventInfo,2) +SplitPath, OutputVar, , , OutExtension, OutNameNoExt +if (OutNameNoExt) { +Postmessage,0xB1, 0, % StrLen(OutNameNoExt), Edit2 +} else { +Postmessage,0xB1, 1, % StrLen(OutExtension)+1, Edit2 +} +} +else if (key="Lwin") { + +} +else if (key="NumpadRight") { + +} +else if (key="NumpadLeft") { + +} +else if (key="NumpadUp") { + +} +else if (key="NumpadDown") { + +} +else if (key="Alt") { + +} +else if (key="Control") { + +} +else if (key="Shift") { + +} else if (key="F1") { +send, {f1} +} else if (key="F3") { +send, {f3} +} else if (key="F4") { +; send, {f4} +} +else if (key="\") { +} +else if (key="NumpadEnd") { +} +else if (key="Numpad0") { +} +else if (key="NumpadHome") { +} +else if (key="NumpadPgDn") { +} +else if (key="NumpadPgUp") { +} +else if (key="]") { +} +else if (key="NumpadDel") { + +selectedNames:=getSelectedNames() + +for k, v in getSelectedNames() { +finalStr:="""" A_AhkPath """ ""lib\fileRecycle_one.ahk"" """ EcurrentDir%whichSide% "\" v """" +run, %finalStr% +} + +return +} else { +if (focused!="searchCurrentDirEdit") +{ +ShiftIsDown := GetKeyState("Shift") +CtrlIsDown := GetKeyState("Ctrl") + +if (CtrlIsDown and !ShiftIsDown) { +if (key="c") { +selectedPaths:=getSelectedPaths() +FileToClipboard(selectedPaths) +SoundPlay, *-1 +} +else if (key="x") { +selectedPaths:=getSelectedPaths() +FileToClipboard(selectedPaths, "cut") +SoundPlay, *-1 +} else if (key="v") +{ +pasteFile() + +} else if (key="a") { +loop % LV_GetCount() +{ +LV_Modify(A_Index, "+Select") ; select +} +} else if (key="h") { + +} +return +} else if (ShiftIsDown and !CtrlIsDown) { +if (key="F10") { +selectedNames:=getSelectedNames() +ShellContextMenu(EcurrentDir%whichSide%,selectedNames) +} +} else if (CtrlIsDown and ShiftIsDown) { +if (key="x") { +for k, v in getSelectedNames() ;extract using 7zip, 7-zip +{ +SplitPath, v,,,, OutNameNoExt +runwait, % "lib\7z x """ EcurrentDir%whichSide% "\" v """ -o""" EcurrentDir%whichSide% "\" OutNameNoExt """ -spe",,Hide +; runwait, """" peazipPath """ -ext2folder """ EcurrentDir%whichSide% "\" v """" +} +soundplay, *-1 +EcurrentDir%whichSide%:=EcurrentDir%whichSide% "\" OutNameNoExt +renderCurrentDir() +return +} else if (key="d") { +files:=array_ToSpacedString(getSelectedPaths()) +runwait, "%peazipPath%" -add2archive %files% +soundplay, *-1 +renderCurrentDir() ;refresh +return +} else if (key="v") { +if (DllCall("IsClipboardFormatAvailable", "UInt", CF_HDROP := 15)) { ; file being copied +if (DllCall("IsClipboardFormatAvailable", "UInt", dropEffectFormat)) { +if (DllCall("OpenClipboard", "Ptr", A_ScriptHwnd)) { +if (data := DllCall("GetClipboardData", "UInt", dropEffectFormat, "Ptr")) { +if (effect := DllCall("GlobalLock", "Ptr", data, "UInt*")) { +if (effect & DROPEFFECT_COPY) { +files:=StrSplit(clipboard, "`n","`r") +for k, v in files { +fileExist:=FileExist(v) +if (fileExist) { +SplitPath, v , OutFileName +dest:=EcurrentDir%whichSide% +Run, TeraCopy.exe Copy "%v%" "%dest%" +} +} +; renderCurrentDir() +SoundPlay, *-1 +} +; action:="copy" +else if (effect & DROPEFFECT_MOVE) { +p("no move") +} +; action:="move" +DllCall("GlobalUnlock", "Ptr", data) +} +} +DllCall("CloseClipboard") +} +} +} +return + +} +} +if (CtrlIsDown or ShiftIsDown) +return + +focused=searchCurrentDirEdit +GuiControl, Focus, vcurrentDirEdit%whichSide% +GuiControl, Text, vcurrentDirEdit%whichSide%,% searchString%whichSide% key +SendMessage, 0xB1, -2, -1,, % "ahk_id " Edithwnd%whichSide% +} +} +} +} +else if (A_GuiEvent="RightClick") { +selectedNames:=getSelectedNames() +ShellContextMenu(EcurrentDir%whichSide%,selectedNames) +} +else if (A_GuiEvent="ColClick") +{ +whichSide:=SubStr(A_GuiControl, 0) + +columnsToSort:=[1,2,4,6] +if (A_EventInfo=1) { +if (!foldersFirst) +{ +foldersFirst:=true +sortColumn(1, "SortDesc") +} else { +foldersFirst:=false +sortColumn(1, "Sort") +} +} else if (A_EventInfo=2) { +if (!A_ZSort%whichSide%) +{ +A_ZSort%whichSide%:=true +sortColumn(2, "Sort") +} else { +A_ZSort%whichSide%:=false +sortColumn(2, "SortDesc") +} +} else if (A_EventInfo=3) { +if (!oldNew%whichSide%) +{ +whichsort%whichSide%:="oldNew" +oldNew%whichSide%:=true +renderFunctionsToSort(sortedByDate%whichSide%, true) +} else { +whichsort%whichSide%:="newOld" +oldNew%whichSide%:=false +renderFunctionsToSort(sortedByDate%whichSide%) +} +} else if (A_EventInfo=5) { +if (canSortBySize%whichSide%) { +if (!bigSmall%whichSide%) +{ +whichsort%whichSide%:="bigSmall" +bigSmall%whichSide%:=true +renderFunctionsToSort(sortedBySize%whichSide%) +} else { +whichsort%whichSide%:="smallBig" +bigSmall%whichSide%:=false +renderFunctionsToSort(sortedBySize%whichSide%, true) +} +} +} +} + +return +;includes +#include +#include +;Classes +; ====================================================================================================================== +; Namespace: LV_Colors +; Function: Helper object and functions for ListView row and cell coloring +; Testted with: AHK 1.1.15.04 (A32/U32/U64) +; Tested on: Win 8.1 (x64) +; Changelog: +; 0.5.00.00/2014-08-13/just me - changed 'static mode' handling +; 0.4.01.00/2013-12-30/just me - minor bug fix +; 0.4.00.00/2013-12-30/just me - added static mode +; 0.3.00.00/2013-06-15/just me - added "Critical, 100" to avoid drawing issues +; 0.2.00.00/2013-01-12/just me - bugfixes and minor changes +; 0.1.00.00/2012-10-27/just me - initial release +; ====================================================================================================================== +; CLASS LV_Colors +; +; The class provides seven public methods to register / unregister coloring for ListView controls, to set individual +; colors for rows and/or cells, to prevent/allow sorting and rezising dynamically, and to register / unregister the +; included message handler function for WM_NOTIFY -> NM_CUSTOMDRAW messages. +; +; If you want to use the included message handler you must call LV_Colors.OnMessage() once. +; Otherwise you should integrate the code within LV_Colors_WM_NOTIFY into your own notification handler. +; Without notification handling coloring won't work. +; ====================================================================================================================== +Class LV_Colors { +; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +; PRIVATE PROPERTIES ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +Static MessageHandler := "LV_Colors_WM_NOTIFY" +Static WM_NOTIFY := 0x4E +Static SubclassProc := RegisterCallback("LV_Colors_SubclassProc") +; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +; PUBLIC PROPERTIES ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +; Static Critical := 0 +Static Critical := 100 +; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +; META FUNCTIONS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +__New(P*) { +Return False ; There is no reason to instantiate this class! +} +; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +; PRIVATE METHODS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +On_NM_CUSTOMDRAW(H, L) { +Static CDDS_PREPAINT := 0x00000001 +Static CDDS_ITEMPREPAINT := 0x00010001 +Static CDDS_SUBITEMPREPAINT := 0x00030001 +Static CDRF_DODEFAULT := 0x00000000 +Static CDRF_NEWFONT := 0x00000002 +Static CDRF_NOTIFYITEMDRAW := 0x00000020 +Static CDRF_NOTIFYSUBITEMDRAW := 0x00000020 +Static CLRDEFAULT := 0xFF000000 +; Size off NMHDR structure +Static NMHDRSize := (2 * A_PtrSize) + 4 + (A_PtrSize - 4) +; Offset of dwItemSpec (NMCUSTOMDRAW) +Static ItemSpecP := NMHDRSize + (5 * 4) + A_PtrSize + (A_PtrSize - 4) +; Size of NMCUSTOMDRAW structure +Static NCDSize := NMHDRSize + (6 * 4) + (3 * A_PtrSize) + (2 * (A_PtrSize - 4)) +; Offset of clrText (NMLVCUSTOMDRAW) +Static ClrTxP := NCDSize +; Offset of clrTextBk (NMLVCUSTOMDRAW) +Static ClrTxBkP := ClrTxP + 4 +; Offset of iSubItem (NMLVCUSTOMDRAW) +Static SubItemP := ClrTxBkP + 4 +; Offset of clrFace (NMLVCUSTOMDRAW) +Static ClrBkP := SubItemP + 8 +DrawStage := NumGet(L + NMHDRSize, 0, "UInt") +, Row := NumGet(L + ItemSpecP, 0, "UPtr") + 1 +, Col := NumGet(L + SubItemP, 0, "Int") + 1 +If This[H].IsStatic +Row := This.MapIndexToID(H, Row) +; SubItemPrepaint ------------------------------------------------------------------------------------------------ +If (DrawStage = CDDS_SUBITEMPREPAINT) { +NumPut(This[H].CurTX, L + ClrTxP, 0, "UInt"), NumPut(This[H].CurTB, L + ClrTxBkP, 0, "UInt") +, NumPut(This[H].CurBK, L + ClrBkP, 0, "UInt") +ClrTx := This[H].Cells[Row][Col].T, ClrBk := This[H].Cells[Row][Col].B +If (ClrTx <> "") +NumPut(ClrTX, L + ClrTxP, 0, "UInt") +If (ClrBk <> "") +NumPut(ClrBk, L + ClrTxBkP, 0, "UInt"), NumPut(ClrBk, L + ClrBkP, 0, "UInt") +If (Col > This[H].Cells[Row].MaxIndex()) && !This[H].HasKey(Row) +Return CDRF_DODEFAULT +Return CDRF_NOTIFYSUBITEMDRAW +} +; ItemPrepaint --------------------------------------------------------------------------------------------------- +If (DrawStage = CDDS_ITEMPREPAINT) { +This[H].CurTX := This[H].TX, This[H].CurTB := This[H].TB, This[H].CurBK := This[H].BK +ClrTx := ClrBk := "" +If This[H].Rows.HasKey(Row) +ClrTx := This[H].Rows[Row].T, ClrBk := This[H].Rows[Row].B +If (ClrTx <> "") +NumPut(ClrTx, L + ClrTxP, 0, "UInt"), This[H].CurTX := ClrTx +If (ClrBk <> "") +NumPut(ClrBk, L + ClrTxBkP, 0, "UInt") , NumPut(ClrBk, L + ClrBkP, 0, "UInt") +, This[H].CurTB := ClrBk, This[H].CurBk := ClrBk +If This[H].Cells.HasKey(Row) +Return CDRF_NOTIFYSUBITEMDRAW +Return CDRF_DODEFAULT +} +; Prepaint ------------------------------------------------------------------------------------------------------- +If (DrawStage = CDDS_PREPAINT) { +Return CDRF_NOTIFYITEMDRAW +} +; Others --------------------------------------------------------------------------------------------------------- +Return CDRF_DODEFAULT +} +; ------------------------------------------------------------------------------------------------------------------- +MapIndexToID(HWND, Row) { +; LVM_MAPINDEXTOID = 0x10B4 -> http://msdn.microsoft.com/en-us/library/bb761139(v=vs.85).aspx +SendMessage, 0x10B4, % (Row - 1), 0, , % "ahk_id " . HWND +Return ErrorLevel +} +; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +; PUBLIC METHODS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +; =================================================================================================================== +; Attach() Register ListView control for coloring +; Parameters: HWND - ListView's HWND. +; Optional ------------------------------------------------------------------------------------------ +; StaticMode - Static color assignment, i.e. the colors will be assigned permanently to a row +; rather than to a row number. +; Values: True / False +; Default: False +; NoSort - Prevent sorting by click on a header item. +; Values: True / False +; Default: True +; NoSizing - Prevent resizing of columns. +; Values: True / False +; Default: True +; Return Values: True on success, otherwise false. +; =================================================================================================================== +Attach(HWND, StaticMode := False, NoSort := True, NoSizing := True) { +Static LVM_GETBKCOLOR := 0x1000 +Static LVM_GETHEADER := 0x101F +Static LVM_GETTEXTBKCOLOR := 0x1025 +Static LVM_GETTEXTCOLOR := 0x1023 +Static LVM_SETEXTENDEDLISTVIEWSTYLE := 0x1036 +Static LVS_EX_DOUBLEBUFFER := 0x00010000 +If !DllCall("User32.dll\IsWindow", "Ptr", HWND, "UInt") +Return False +If This.HasKey(HWND) +Return False +; Set LVS_EX_DOUBLEBUFFER style to avoid drawing issues, if it isn't set as yet. +SendMessage, % LVM_SETEXTENDEDLISTVIEWSTYLE, % LVS_EX_DOUBLEBUFFER, % LVS_EX_DOUBLEBUFFER, , % "ahk_id " . HWND +If (ErrorLevel = "FAIL") +Return False +; Get the default colors +SendMessage, % LVM_GETBKCOLOR, 0, 0, , % "ahk_id " . HWND +BkClr := ErrorLevel +SendMessage, % LVM_GETTEXTBKCOLOR, 0, 0, , % "ahk_id " . HWND +TBClr := ErrorLevel +SendMessage, % LVM_GETTEXTCOLOR, 0, 0, , % "ahk_id " . HWND +TxClr := ErrorLevel +; Get the header control +SendMessage, % LVM_GETHEADER, 0, 0, , % "ahk_id " . HWND +Header := ErrorLevel +; Store the values in a new object +This[HWND] := {BK: BkClr, TB: TBClr, TX: TxClr, Header: Header, IsStatic: !!StaticMode} +If (NoSort) +This.NoSort(HWND) +If (NoSizing) +This.NoSizing(HWND) +Return True +} +; =================================================================================================================== +; Detach() Unregister ListView control +; Parameters: HWND - ListView's HWND +; Return Value: Always True +; =================================================================================================================== +Detach(HWND) { +; Remove the subclass, if any +Static LVM_GETITEMCOUNT := 0x1004 +If (This[HWND].SC) +DllCall("Comctl32.dll\RemoveWindowSubclass", "Ptr", HWND, "Ptr", This.SubclassProc, "Ptr", HWND) +This.Remove(HWND, "") +WinSet, Redraw, , % "ahk_id " . HWND +Return True +} +; =================================================================================================================== +; Row() Set background and/or text color for the specified row +; Parameters: HWND - ListView's HWND +; Row - Row number +; Optional ------------------------------------------------------------------------------------------ +; BkColor - Background color as RGB color integer (e.g. 0xFF0000 = red) +; Default: Empty -> default background color +; TxColor - Text color as RGB color integer (e.g. 0xFF0000 = red) +; Default: Empty -> default text color +; Return Value: True on success, otherwise false. +; =================================================================================================================== +Row(HWND, Row, BkColor := "", TxColor := "") { +If !This.HasKey(HWND) +Return False +If This[HWND].IsStatic +Row := This.MapIndexToID(HWND, Row) +If (BkColor = "") && (TxColor = "") { +This[HWND].Rows.Remove(Row, "") +Return True +} +BkBGR := TxBGR := "" +If BkColor Is Integer +BkBGR := ((BkColor & 0xFF0000) >> 16) | (BkColor & 0x00FF00) | ((BkColor & 0x0000FF) << 16) +If TxColor Is Integer +TxBGR := ((TxColor & 0xFF0000) >> 16) | (TxColor & 0x00FF00) | ((TxColor & 0x0000FF) << 16) +If (BkBGR = "") && (TxBGR = "") +Return False +If !This[HWND].HasKey("Rows") +This[HWND].Rows := {} +If !This[HWND].Rows.HasKey(Row) +This[HWND].Rows[Row] := {} +If (BkBGR <> "") +This[HWND].Rows[Row].Insert("B", BkBGR) +If (TxBGR <> "") +This[HWND].Rows[Row].Insert("T", TxBGR) +Return True +} +; =================================================================================================================== +; Cell() Set background and/or text color for the specified cell +; Parameters: HWND - ListView's HWND +; Row - Row number +; Col - Column number +; Optional ------------------------------------------------------------------------------------------ +; BkColor - Background color as RGB color integer (e.g. 0xFF0000 = red) +; Default: Empty -> default background color +; TxColor - Text color as RGB color integer (e.g. 0xFF0000 = red) +; Default: Empty -> default text color +; Return Value: True on success, otherwise false. +; =================================================================================================================== +Cell(HWND, Row, Col, BkColor := "", TxColor := "") { +If !This.HasKey(HWND) +Return False +If This[HWND].IsStatic +Row := This.MapIndexToID(HWND, Row) +If (BkColor = "") && (TxColor = "") { +This[HWND].Cells.Remove(Row, "") +Return True +} +BkBGR := TxBGR := "" +If BkColor Is Integer +BkBGR := ((BkColor & 0xFF0000) >> 16) | (BkColor & 0x00FF00) | ((BkColor & 0x0000FF) << 16) +If TxColor Is Integer +TxBGR := ((TxColor & 0xFF0000) >> 16) | (TxColor & 0x00FF00) | ((TxColor & 0x0000FF) << 16) +If (BkBGR = "") && (TxBGR = "") +Return False +If !This[HWND].HasKey("Cells") +This[HWND].Cells := {} +If !This[HWND].Cells.HasKey(Row) +This[HWND].Cells[Row] := {} +This[HWND].Cells[Row, Col] := {} +If (BkBGR <> "") +This[HWND].Cells[Row, Col].Insert("B", BkBGR) +If (TxBGR <> "") +This[HWND].Cells[Row, Col].Insert("T", TxBGR) +Return True +} +; =================================================================================================================== +; NoSort() Prevent / allow sorting by click on a header item dynamically. +; Parameters: HWND - ListView's HWND +; Optional ------------------------------------------------------------------------------------------ +; Apply - True / False +; Default: True +; Return Value: True on success, otherwise false. +; =================================================================================================================== +NoSort(HWND, Apply := True) { +Static HDM_GETITEMCOUNT := 0x1200 +If !This.HasKey(HWND) +Return False +If (Apply) +This[HWND].NS := True +Else +This[HWND].Remove("NS") +Return True +} +; =================================================================================================================== +; NoSizing() Prevent / allow resizing of columns dynamically. +; Parameters: HWND - ListView's HWND +; Optional ------------------------------------------------------------------------------------------ +; Apply - True / False +; Default: True +; Return Value: True on success, otherwise false. +; =================================================================================================================== +NoSizing(HWND, Apply := True) { +Static OSVersion := DllCall("Kernel32.dll\GetVersion", "UChar") +Static HDS_NOSIZING := 0x0800 +If !This.HasKey(HWND) +Return False +HHEADER := This[HWND].Header +If (Apply) { +If (OSVersion < 6) { +If !(This[HWND].SC) { +DllCall("Comctl32.dll\SetWindowSubclass", "Ptr", HWND, "Ptr", This.SubclassProc, "Ptr", HWND, "Ptr", 0) +This[HWND].SC := True +} Else { +Return True +} +} Else { +Control, Style, +%HDS_NOSIZING%, , ahk_id %HHEADER% +} +} Else { +If (OSVersion < 6) { +If (This[HWND].SC) { +DllCall("Comctl32.dll\RemoveWindowSubclass", "Ptr", HWND, "Ptr", This.SubclassProc, "Ptr", HWND) +This[HWND].Remove("SC") +} Else { +Return True +} +} Else { +Control, Style, -%HDS_NOSIZING%, , ahk_id %HHEADER% +} +} +Return True +} +; =================================================================================================================== +; OnMessage() Register / unregister LV_Colors message handler for WM_NOTIFY -> NM_CUSTOMDRAW messages +; Parameters: Apply - True / False +; Default: True +; Return Value: Always True +; =================================================================================================================== +OnMessage(Apply := True) { +If (Apply) +OnMessage(This.WM_NOTIFY, This.MessageHandler) +Else If (This.MessageHandler = OnMessage(This.WM_NOTIFY)) +OnMessage(This.WM_NOTIFY, "") +Return True +} +} +; ====================================================================================================================== +; PRIVATE FUNCTION LV_Colors_WM_NOTIFY() - message handler for WM_NOTIFY -> NM_CUSTOMDRAW notifications +; ====================================================================================================================== +LV_Colors_WM_NOTIFY(W, L) { +Static NM_CUSTOMDRAW := -12 +Static LVN_COLUMNCLICK := -108 +Critical, % LV_Colors.Critical +If LV_Colors.HasKey(H := NumGet(L + 0, 0, "UPtr")) { +M := NumGet(L + (A_PtrSize * 2), 0, "Int") +; NM_CUSTOMDRAW -------------------------------------------------------------------------------------------------- +If (M = NM_CUSTOMDRAW) +Return LV_Colors.On_NM_CUSTOMDRAW(H, L) +; LVN_COLUMNCLICK ------------------------------------------------------------------------------------------------ +If (LV_Colors[H].NS && (M = LVN_COLUMNCLICK)) +Return 0 +} +} +; ====================================================================================================================== +; PRIVATE FUNCTION LV_Colors_SubclassProc() - subclass for WM_NOTIFY -> HDN_BEGINTRACK notifications (Win XP) +; ====================================================================================================================== +LV_Colors_SubclassProc(H, M, W, L, S, R) { +Static HDN_BEGINTRACKA := -306 +Static HDN_BEGINTRACKW := -326 +Static WM_NOTIFY := 0x4E +Critical, % LV_Colors.Critical +If (M = WM_NOTIFY) { +; HDN_BEGINTRACK ------------------------------------------------------------------------------------------------- +C := NumGet(L + (A_PtrSize * 2), 0, "Int") +If (C = HDN_BEGINTRACKA) || (C = HDN_BEGINTRACKW) { +Return True +} +} +Return DllCall("Comctl32.dll\DefSubclassProc", "Ptr", H, "UInt", M, "Ptr", W, "Ptr", L, "UInt") +} +; ====================================================================================================================== +;start of functions start + +URItoPath(vPathUrl) +{ +vChars := 300 ;300 is an arbitrary number +VarSetCapacity(vPath, vChars*2) +DllCall("shlwapi\PathCreateFromUrl" (A_IsUnicode?"W":"A"), "Str",vPathUrl, "Str",vPath, "UInt*",vChars, "UInt",0) +return vPath +} + +decodeStrAs(source,encoding) +{ +;example: "é" -> "é" +sourceSize := VarSetCapacity(target,StrLen(source),0) +Loop % sourceSize +NumPut(NumGet(&source, A_Index*2-1-1, "UChar"), &target, A_Index-1, "UChar") +return StrGet(&target, encoding) +} + +sortArrByKey(ar, byref key,byref reverse:=false) { +str= +for k,v in ar { +str.=v[key] "+" k "|" +} +length:=ar.Length() +firstValue:=ar[1][key] +if firstValue is number +{ +sortType := "N" +} +Sort, str, % "D|" sortType (reverse ? "R" : "") +finalAr:=[] +finalAr.SetCapacity(length) +barPos:=1 +; if (reverse) { +loop %length% { +plusPos:=InStr(str, "+",, barPos) +barPos:=InStr(str, "|",, plusPos) + +num:=SubStr(str, plusPos + 1, barPos - plusPos - 1) +finalAr.Insert(1,ar[num]) +} +;} else { +; loop %length% { +; plusPos:=InStr(str, "+",, barPos) +; barPos:=InStr(str, "|",, plusPos) +; +; num:=SubStr(str, plusPos + 1, barPos - plusPos - 1) +; finalAr.Push(ar[num]) +; } +; } + +return finalAr +} + +hashFiles(algorithm) +{ +global EcurrentDir1, EcurrentDir2, whichSide +finalStr= +for notUsed, name in getSelectedNames() { +finalStr.=getHash(algorithm, EcurrentDir%whichSide% "\" name) "`n" +} +if (finalStr) { +StringTrimRight, finalStr, finalStr, 1 ;remove the last "`n" from the end +clipboard:=finalStr +cMsgbox(finalStr) +} else { +p("couldn't get hash") +} +} + +getHash(algorithm, Apath) +{ +FileGetAttrib, fileAttrib, %Apath% +if (InStr(fileAttrib, "D")) { +return "can't hash Directory" +} else { +cmdOutput:=RunCmd("certutil -hashfile """ Apath """ " algorithm) +return StrSplit(cmdOutput, "`n", "`r")[2] +} +} + +generateRandomUniqueName(Apath, byref isDir:="") +{ +inputFileExist:=fileExist(Apath) +if (inputFileExist) { +if (InStr(inputFileExist, "D")) +isDir:=true +SplitPath, Apath, OutFileName, OutDir, OutExtension, OutNameNoExt, OutDrive +loop { +if (isDir) { +tryPath:=OutDir "\" OutNameNoExt "_" randomName(6) +} else { +tryPath:=OutDir "\" OutNameNoExt "_" randomName(6) "." OutExtension +} +if (!FileExist(tryPath)) { +return tryPath +} +} +} else { +p("input path does not exist") +} + +} +randomName(length) +{ +chars:=[".", "_", "-", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] + +charsLength:=chars.Length() + +loop % length +{ +Random, randInt , 1, charsLength +strng.=chars[randInt] +} +return strng +} + +loadSettings() +{ +global +FileRead, settingsTxt, %A_AppData%\ahk_explorer_settings\settings.txt +settingsArr:=StrSplit(settingsTxt, "`n", "`r") +peazipPath:=settingsArr[1] +vscodePath:=settingsArr[2] +BGColorOfSelectedPane:=settingsArr[3] +Ahk2ExePath:=settingsArr[4] +spekPath:=settingsArr[5] +} + +removeFromSizes(byref name, byref whichSide) +{ +for k, obj in sortedSizes%whichSide% { +if (obj["name"]=name) { +sortedSizes%whichSide%.Remove(k) +break +} +} +} +addToSizes(byref name, byref size, byref whichSide) +{ +sortedSizes%whichSide%.Push({size:size,name:name}) +sortedSizes%whichSide%:=sortArrByKey(sortedSizes%whichSide%,"size") +; sortedSizes%whichSide%:=sortArrByKey(sortedSizes%whichSide%,"size",true) + +sortedBySize%whichSide%:=[] +for k, v in sortedSizes%whichSide% { +sortedBySize%whichSide%.Push(v["name"]) +} +} +sortSizes() +{ +global + +sortedSizes%whichSide%:=[] +for name, obj in stuffByName%whichSide% { +sortedSizes%whichSide%.Push({size:obj["size"],name:name}) +} + +sortedSizes%whichSide%:=sortArrByKey(sortedSizes%whichSide%,"size") +; sortedSizes%whichSide%:=sortArrByKey(sortedSizes%whichSide%,"size",true) +sortedBySize%whichSide%:=[] +for k, v in sortedSizes%whichSide% { +sortedBySize%whichSide%.Push(v["name"]) +} + +} + +bothSameDir(whichSide) +{ +global +otherSide:=(whichSide=1) ? 2 : 1 +if (EcurrentDir%whichSide%=EcurrentDir%otherSide%) +return otherSide +return false +} + +revealFileInExplorer(folderPath, files) +{ +COM_CoUninitialize() +COM_CoInitialize() +DllCall("shell32\SHParseDisplayName", "Wstr", folderPath, "Uint", 0, "Ptr*", pidl, "Uint", 0, "Uint", 0) +DllCall("shell32\SHBindToObject","Ptr",0,"Ptr",pidl,"Ptr",0,"Ptr",GUID4String(IID_IShellFolder,"{000214E6-0000-0000-C000-000000000046}"),"Ptr*",pIShellFolder) +length:=files.Length() +VarSetCapacity(apidl, length * A_PtrSize, 0) +for k, v in files { +;IShellFolder:ParseDisplayName +DllCall(VTable(pIShellFolder,3),"Ptr", pIShellFolder,"Ptr",win_hwnd,"Ptr",0,"Wstr",v,"Uint*",0,"Ptr*",tmpPIDL,"Uint*",0) +NumPut(tmpPIDL, apidl, (k - 1)*A_PtrSize, "Ptr") +} +DllCall("shell32\SHOpenFolderAndSelectItems", "Ptr", pidl, "UINT", length, "Ptr", &apidl, "Uint", 0) +COM_CoUninitialize() +} +COM_CoInitialize() +{ +Return DllCall("ole32\CoInitialize", "Uint", 0) +} +COM_CoUninitialize() +{ +DllCall("ole32\CoUninitialize") +} +send_stringToFolderWatcher(whichFolderWatcher, num, stringToSend:="") +{ +stringToSend .= "|" num +VarSetCapacity(message, size := StrPut(stringToSend, "UTF-16")*2, 0) +StrPut(stringToSend, &message, "UTF-16") +VarSetCapacity(COPYDATASTRUCT, A_PtrSize*3) +NumPut(size, COPYDATASTRUCT, A_PtrSize, "UInt") +NumPut(&message, COPYDATASTRUCT, A_PtrSize*2) +DetectHiddenWindows, On +SetTitleMatchMode, 2 +SendMessage, WM_COPYDATA := 0x4A,, ©DATASTRUCT,, FolderWatcher%whichFolderWatcher%.ahk ahk_class AutoHotkey +} +startWatchFolder(byref whichSide, byref AcurrentDir) +{ +if (whichSide=1) { +If !WatchFolder(AcurrentDir, "Watch1", 0, 3) { ;files and folders +MsgBox, 0, Error, Call of WatchFolder() failed! +Return +} +} else { +send_stringToFolderWatcher(whichSide, 1, AcurrentDir) ;1 for watch 2 for stop +} +} +stopWatchFolder(byref whichSide, byref dirToStopWatching) +{ +if (whichSide=1) { +WatchFolder(dirToStopWatching, "**DEL") +} else { +send_stringToFolderWatcher(whichSide, 2, dirToStopWatching) ;1 for watch 2 for stop +} +} +Watch1(Folder, Changes) { +For Each, Change In Changes { +WatchN(1,Change.Action, Change.OldName, Change.Name) +} +} +WatchN(whichSide,Byref Action,Byref OldName,Byref Name) +{ +global EcurrentDir1,EcurrentDir2,vlistView1,vlistView2 +otherSide:=bothSameDir(whichSide) +GuiControl, -Redraw, vlistView%whichSide% +if (otherSide) +GuiControl, -Redraw, vlistView%otherSide% + +if (Action=1) { +fileAdded(whichSide, Name) +} else if (Action=2) { +fileDeleted(whichSide, Name) +if (otherSide) { +fileDeleted(otherSide, Name) +} +} else if (Action=4) { +SplitPath, % Name, OutFileNameNew, OutDirNew +SplitPath, % OldName, OutFileNameOld, OutDirOld +if (OutDirNew=EcurrentDir%whichSide%) { ;renamed +fileRenamed(whichSide, OutFileNameOld, OutFileNameNew) +if (otherSide) { +fileRenamed(otherSide, OutFileNameOld, OutFileNameNew) +} +} else if (OutDirOld=EcurrentDir%otherSide%) { ;moved from other Side +fileAdded(whichSide, Name) +fileDeleted(otherSide, OldName) +} else { ;moved + +fileAdded(whichSide, Name) +if (otherSide) { +fileAdded(otherSide, Name) +} +} +} +GuiControl, +Redraw, vlistView%whichSide% +if (otherSide) +GuiControl, +Redraw, vlistView%otherSide% + +} +fileRenamed(whichSide, Byref renameFrom,Byref renameInto) +{ +global +Gui, main:Default +Gui, ListView, vlistView%whichSide% +clipboard:=EcurrentDir%whichSide% "\" renameInto +FileGetSize, outputSize, % EcurrentDir%whichSide% "\" renameInto +obj:=stuffByName%whichSide%[renameFrom] +stuffByName%whichSide%[renameInto]:=stuffByName%whichSide%[renameFrom] +stuffByName%whichSide%.Delete(renameFrom) +stuffByName%whichSide%[renameInto]["size"]:=outputSize + +;rename in sortedByDate +for k, v in sortedByDate%whichSide% { +if (v=renameFrom) { +sortedByDate%whichSide%[k]:=renameInto +break +} +} + +removeFromSizes(renameFrom, whichSide) +addToSizes(renameInto,outputSize, whichSide) + +rowNums:=LV_GetCount() +loop % rowNums { +LV_GetText(OutputVar,A_Index,2) +if (OutputVar=renameFrom) { +calculateStuff(,outputSize,OutputVar,A_Index) + +LV_Modify(A_Index,, ,renameInto,,,formattedBytes,bytes) + +justOneIcon(renameInto,A_Index,whichSide) + +break +} +} +} +fileAdded(whichSide, Byref path) { +global +Gui, main:Default +Gui, ListView, vlistView%whichSide% +SplitPath, path, OutFileName +sortWithAr%whichSide%:=[] +FileGetSize, outputSize, %path% +FileGetAttrib, OutputAttri , %path% + +stuffByName%whichSide%[OutFileName]:={date:A_Now,attri:OutputAttri,size:outputSize} + +sortedByDate%whichSide%.InsertAt(1,OutFileName) + +addToSizes(OutFileName,outputSize,whichSide) + +whereToAddFile(whichSide, OutFileName, A_Now,outputSize) + +if (bothSameDir(whichSide)) { +stuffByName%otherSide%[OutFileName]:=stuffByName%whichSide%[OutFileName] +sortedBySize%otherSide%:=sortedBySize%whichSide%.Clone() +sortedByDate%otherSide%:=sortedByDate%whichSide%.Clone() +whereToAddFile(otherSide, OutFileName, A_Now,outputSize) +} + +} +fileDeleted(Byref whichSide, Byref path) +{ +global +Gui, main:Default +Gui, ListView, vlistView%whichSide% +SplitPath, path, OutFileName +GuiControl, -Redraw, vlistView%whichSide% + +rowNums:=LV_GetCount() +loop % rowNums { +LV_GetText(OutputVar,A_Index,2) +if (OutputVar=OutFileName) { + +LV_Delete(A_Index) +if !LV_GetNext(1) { +if (A_Index=rowNums and A_Index>1) { +LV_Modify(A_Index-1, "+Select +Focus Vis") ; select +} +else +LV_Modify(A_Index, "+Select +Focus Vis") ; select +} +; GuiControl, +Redraw, vlistView%whichSide% +obj:=stuffByName%whichSide%[OutFileName] + +;remove name from sortedByDate +for k, v in sortedByDate%whichSide% { +if (v=OutFileName) { +sortedByDate%whichSide%.Remove(k) +break +} +} + +removeFromSizes(OutFileName,whichSide) + +stuffByName%whichSide%.Delete(OutFileName) + +break +} +} +} + +whereToAddFile(byref whichSide, byref OutFileName,byref date,byref size) { +global +Gui, main:Default +Gui, ListView, vlistView%whichSide% +insertNum:=0 + +if (whichsort%whichSide%="newOld") { +if (focused="searchCurrentDirEdit" or focused="listViewInSearch") { +if (SubStr(searchString%whichSide%, 1, 1)!=".") { +counter:=0 +objectToSort:=[] +for k,v in sortedByDate%whichSide% { +if (counter>maxRows) +break +SplitPath, v,,,, OutNameNoExt + +pos:=InStr(OutNameNoExt, searchString%whichSide%) +if (pos) { +counter++ +objectToSort.Push({name:v,pos:pos}) +} +} +objectToSort:=ObjectSort(objectToSort,"pos") + +for k,v in objectToSort { +name:=v["name"] +if (name=OutFileName) { +insertNum:=k +} +} +} else { +searchFoldersOnly:=(searchString%whichSide%=".") ? true : false +if (searchFoldersOnly) { +counter:=0 +for k,v in sortedByDate%whichSide% { +if (v=OutFileName) { +if (counter>maxRows) +break +SplitPath, v,,, OutExtension +if (!OutExtension) { +insertNum:=k +} +} +} +} else { +searchStringBak%whichSide%:=SubStr(searchString%whichSide%, 2) +counter:=0 +objectToSort:=[] +for k,v in sortedByDate%whichSide% { +if (counter>maxRows) +break +SplitPath, v,,, OutExtension +pos:=InStr(OutExtension, searchStringBak%whichSide%) +if (pos) { +counter++ +objectToSort.Push({name:v,pos:pos}) +} +} +objectToSort:=ObjectSort(objectToSort,"pos") +for k,v in objectToSort { +name:=v["name"] +if (name=OutFileName) { +insertNum:=k +} +} +} + +} +} else { +insertNum:=1 +} +} else if (whichsort%whichSide%="oldNew") { +rowNums:=LV_GetCount() +insertNum:=rowNums+1 +} else if (whichsort%whichSide%="bigSmall") { +for k, v in sortedBySize%whichSide% { +if (k>maxRows) +break +if (v=OutFileName) { +insertNum:=k +} +} +} else if (whichsort%whichSide%="smallBig") { +lengthAddedOne:=sortedBySize%whichSide%.Length()+1 +for k in sortedBySize%whichSide% { +v:=sortedBySize%whichSide%[lengthAddedOne-k] +if (k>maxRows) +break +if (v=OutFileName) { +insertNum:=k +} +} +} + +if (insertNum) { +insertRow(whichSide, OutFileName, insertNum, date,size) +} +} + +insertRow(byref whichSide, byref OutFileName,byref row,byref date,byref size) +{ +global + +Gui, main:Default +Gui, ListView, vlistView%whichSide% +calculateStuff(date,size,OutFileName,row) +GuiControl, -Redraw, vlistView%whichSide% +LV_Insert(row,,,OutFileName,var1,var2,formattedBytes,bytes) +LV_Colors.Cell(ListviewHwnd%whichSide%,row,3,color) + +justOneIcon(OutFileName,row,whichSide) +GuiControl, +Redraw, vlistView%whichSide% +} + +pasteFile() +{ +global +; action:=false +if (DllCall("IsClipboardFormatAvailable", "UInt", CF_HDROP := 15)) { ; file being copied +if (DllCall("IsClipboardFormatAvailable", "UInt", dropEffectFormat)) { +if (DllCall("OpenClipboard", "Ptr", A_ScriptHwnd)) { +if (data := DllCall("GetClipboardData", "UInt", dropEffectFormat, "Ptr")) { +if (effect := DllCall("GlobalLock", "Ptr", data, "UInt*")) { +; action:="copy" +if (effect & DROPEFFECT_COPY) { +files:=StrSplit(clipboard, "`n","`r") +for k, v in files { +fileExist:=FileExist(v) +if (fileExist) { +SplitPath, v , OutFileName +if (InStr(fileExist, "D")) { +FileCopyDir, %v%, % EcurrentDir%whichSide% "\" OutFileName +} else { +FileCopy, %v%, % EcurrentDir%whichSide% +} +if (ErrorLevel) { +p("couldn't copy file " v) +break +} +} +} +SoundPlay, *-1 +} +; action:="move" +else if (effect & DROPEFFECT_MOVE) { +files:=StrSplit(clipboard, "`n","`r") +if (files.Length()) { +for k, v in files { +fileExist:=FileExist(v) +if (fileExist) { +SplitPath, v , OutFileName +if (InStr(fileExist, "D")) { +FileMoveDir, %v%, % EcurrentDir%whichSide% "\" OutFileName +} else { +FileMove, %v%, % EcurrentDir%whichSide% +} +if (ErrorLevel) { +p("couldn't move file " v) +break +} +} +} + +SoundPlay, *-1 +} + +} +DllCall("GlobalUnlock", "Ptr", data) +} +} +DllCall("CloseClipboard") +} +} +} + +} + +paddedNumber(number, howManyChars) +{ +VarSetCapacity(ZeroPaddedNumber, 20) ; Ensure the variable is large enough to accept the new string. +DllCall("wsprintf", "Str", ZeroPaddedNumber, "Str", "%0" howManyChars "d", "Int", number, "Cdecl") ; Requires the Cdecl calling convention. +return ZeroPaddedNumber +} + +setWhichSideFromDir(dir) +{ +global +if (EcurrentDir1=dir) { +whichSide:=1 +} else if (EcurrentDir2=dir) { +whichSide:=2 +} +} + +getMultiRenameNames() +{ +global +Gui, multiRenameGui:Default +gui, submit, nohide + +startingNums:=StrSplit(multiRenameStartingNums, ",") +asteriskLength:=StrSplit(multiRenameTheName, "*").Length() +previewNames:=[] +for k, v in namesToMultiRename { +nameInstance:=multiRenameTheName + +continueChar:=true +charIndex:=1 + +length:=StrLen(nameInstance) +lessGreaters:=[] +asterisksAndQmarks:=[] +while (charIndex<=length) { +char:=SubStr(nameInstance, charIndex, 1) + +if (char="*") { +asterisksAndQmarks.Push("*") +} else if (char="?") { + +questionMarkCounter:=0 +while (char="?") { +questionMarkCounter++ +charIndex++ +char:=SubStr(nameInstance, charIndex, 1) +} +asterisksAndQmarks.Push(string_Multiply("?",questionMarkCounter)) +continue +} else if (char="<") { +savedIndex:=charIndex +while (char!=">") { +charIndex++ +char:=SubStr(nameInstance, charIndex, 1) +} +subLen:=charIndex - savedIndex + 1 +asterisksAndQmarks.Push(SubStr(nameInstance, savedIndex, subLen)) +lessGreaters.Insert(1, [savedIndex,subLen]) +continue +} +charIndex++ +} +for key, value in lessGreaters { +nameInstance:=SubStr(nameInstance, 1, value[1]-1) SubStr(nameInstance, value[1] + value[2]) +} + +SplitPath, v,,, OutExtension +nameInstance:=StrReplace(nameInstance, "|name", v) +nameInstance:=StrReplace(nameInstance, "|ext", OutExtension) + +fileExist:=fileExist(multiRenameDir "\" v) +if (InStr(fileExist, "D" )) { +nameInstance:=StrReplace(nameInstance, "|Dext" , "") +nameInstance:=StrReplace(nameInstance, "|.Dext" , "") +} else { +nameInstance:=StrReplace(nameInstance, "|Dext" , OutExtension) +nameInstance:=StrReplace(nameInstance, "|.Dext" , "." OutExtension) +} + +for key, value in asterisksAndQmarks { +num:=(startingNums[key]) ? startingNums[key] : 1 +actualNum:=num+k-1 +if (InStr(value, "?" )) { +actualNum:=paddedNumber(actualNum, StrLen(value)) +} else if (InStr(value, "<" )) { +inside:=SubStr(value, 2, StrLen(value)-2) +nameInstance:=StrReplace(nameInstance, inside, "",, num) +if (num<0) { +p("oof") +} +continue +} +nameInstance:=StrReplace(nameInstance, value , actualNum,, 1) +} + +previewNames.Push(nameInstance) + +} +return previewNames +} + +getTextWidth(text) +{ +global Dummy +Gui,Fake:Font,s10,Segoe UI +Gui,Fake:Add,Text, -Wrap vDummy,% text +GuiControlGet,Pos,Fake:Pos,Dummy +Gui,Fake:Destroy +return posw +} +calculateStuff(ByRef date:="", ByRef size:="", ByRef name:="", Byref k:="") { +global +if (calculateDates and date!="") { +now:=A_Now +var1Num := now +var2 := date +EnvSub, var1Num, %var2%, Minutes +var1:=var1Num "’" +color=0xFF0000 ;red +if (Abs(var1Num)>525599) { +var1Num := now +EnvSub, var1Num, %var2%, Days +var1Num:=Floor(var1Num/365.25) ;the average days in a month +var1:=var1Num " y" +color=0x808080 ;grey ; pink +} +else if (Abs(var1Num)>86399) { +var1Num := now +EnvSub, var1Num, %var2%, Days +var1Num:=Floor(var1Num/30.44) ;the average days in a month +var1:=var1Num " m" +color=0x00FFFF ;AQUA +} +else if (Abs(var1Num)>1439) { +var1Num := now +EnvSub, var1Num, %var2%, Days +var1:=var1Num " d" +color=0x00FF00 ;lime green +} else if (Abs(var1Num)>59) { +var1Num := now +EnvSub, var1Num, %var2%, Hours +var1:=var1Num " h" +color=0xFFFF00 ;yellow +} +} +if (calculatefileSizes and size!="") { +bytes:="" +formattedBytes:="" + +bytes:=size + +if (bytes!="") +formattedBytes:=autoByteFormat(bytes) +} +} +applySizes() { +global +if (namesForSizes%whichSide%.Length()) { +namesStr:="""" EcurrentDir%whichSide% """" +for k, v in namesForSizes%whichSide% { +namesStr.=" """ v """" +} +Process, Close, %PID_getFolderSizes% +Run, "%A_AhkPath%" "lib\getFolderSizes.ahk" %namesStr%,,,PID_getFolderSizes +} else { +Process, Close, %PID_getFolderSizes% +sortSizes() +canSortBySize%whichSide%:=true +} +} +justOneIcon(byref name,byref row, byref whichSide) { +global +if (doIcons) { +hIcon := DllCall("Shell32\ExtractAssociatedIcon", UInt, 0, Str, EcurrentDir%whichSide% "\" name , UShortP, iIndex) +if hIcon +{ +IconNumber := DllCall("ImageList_ReplaceIcon", UInt, ImageListID%whichSide%, Int, -1, UInt, hIcon) + 1 +DllCall("DestroyIcon", Uint, hIcon) +} +else +IconNumber = 1 + +LV_Modify(row,"Icon" . IconNumber) +lastIconNumber:=IconNumber +} + +} + +applyIcons(byref names) { +global +if (doIcons) { +for k, v in names { +hIcon := DllCall("Shell32\ExtractAssociatedIcon", UInt, 0, Str, EcurrentDir%whichSide% "\" v , UShortP, iIndex) +if hIcon +{ +IconNumber := DllCall("ImageList_ReplaceIcon", UInt, ImageListID%whichSide%, Int, -1, UInt, hIcon) + 1 +DllCall("DestroyIcon", Uint, hIcon) +} +else +IconNumber = 1 + +LV_Modify(k,"Icon" . IconNumber) +lastIconNumber:=IconNumber +} + +} +} + +renderFunctionsToSort(ByRef objectToSort, reverse:=false) +{ +global +Gui, main:Default +Gui, ListView, vlistView%whichSide% +ControlFocus,, % "ahk_id " ListviewHwnd%whichSide% + +GuiControl,Text,vcurrentDirEdit%whichSide%, % EcurrentDir%whichSide% +searchString%whichSide%= + +GuiControl, -Redraw, vlistView%whichSide% +LV_Delete() +length:=objectToSort.Length() +if (reverse) { +startPos:=length +inc:=-1 +reverseSort:=true +} +else { +startPos:=1 +inc:=1 +reverseSort:=false +} +namesForIcons%whichSide%:=[] +namesForSizes%whichSide%:=[] +rowsForSizes%whichSide%:=[] + +if (length<=maxRows) { +rowsToLoop:=length +} else { +rowsToLoop:=maxRows +if (toFocus) { +loop % length { +if (toFocus=objectToSort[A_Index]) { +if (length - A_Index>=1 +return r +} +compareTwoStrings2(para_string1,para_string2) { +;Sørensen-Dice coefficient +savedBatchLines := A_BatchLines +SetBatchLines, -1 + +vCount := 0 +oArray := {} +oArray := {base:{__Get:Func("Abs").Bind(0)}} ;make default key value 0 instead of a blank string +Loop, % vCount1 := StrLen(para_string1) - 1 +oArray["z" SubStr(para_string1, A_Index, 2)]++ +Loop, % vCount2 := StrLen(para_string2) - 1 +if (oArray["z" SubStr(para_string2, A_Index, 2)] > 0) { +oArray["z" SubStr(para_string2, A_Index, 2)]-- +vCount++ +} +vSDC := Round((2 * vCount) / (vCount1 + vCount2),2) +; if (!vSDC || vSDC < 0.005) { ;round to 0 if less than 0.005 +; return 0 +; } +if (vSDC = 1) { +return 1 +} +SetBatchLines, % savedBatchLines +return vSDC +} + +compareTwoStrings(para_string1,para_string2) +{ +;Sørensen-Dice coefficient +savedBatchLines := A_BatchLines +SetBatchLines, -1 + +vCount := 0 +oArray := {} +oArray := {base:{__Get:Func("Abs").Bind(0)}} ;make default key value 0 instead of a blank string +Loop, % vCount1 := StrLen(para_string1) +; Loop, % vCount1 := StrLen(para_string1) - 1 +oArray["z" SubStr(para_string1, A_Index, 1)]++ +; oArray["z" SubStr(para_string1, A_Index, 2)]++ +Loop, % vCount2 := StrLen(para_string2) +; Loop, % vCount2 := StrLen(para_string2) - 1 +; p(oArray) +if (oArray["z" SubStr(para_string2, A_Index, 1)] > 0) { +; if (oArray["z" SubStr(para_string2, A_Index, 2)] > 0) { +oArray["z" SubStr(para_string2, A_Index, 1)]-- +; oArray["z" SubStr(para_string2, A_Index, 2)]-- +vCount++ +} +; p(vCount) +vSDC := (vCount) / (vCount2) +; vSDC := (2 * vCount) / (vCount1 + vCount2) +; vSDC := Round((2 * vCount) / (vCount1 + vCount2),2) +; if (!vSDC || vSDC < 0.005) { ;round to 0 if less than 0.005 +; return 0 +; } +if (vSDC = 1) { +return 1 +} +SetBatchLines, % savedBatchLines +return vSDC +} + +autoMegaByteFormat(size, decimalPlaces = 2) +{ +static sizes :=["GB", "TB"] + +sizeIndex := 0 + +while (size >= 1024) +{ +sizeIndex++ +size /= 1024.0 + +if (sizeIndex = sizes.Length()) +break +} + +return (sizeIndex = 0) ? size " MB" +: round(size, decimalPlaces) . " " . sizes[sizeIndex] +} + +autoByteFormat(size, decimalPlaces = 2) +{ +static sizes :=["KB", "MB", "GB", "TB"] + +sizeIndex := 0 + +while (size >= 1024) +{ +sizeIndex++ +size /= 1024.0 + +if (sizeIndex = sizes.Length()) +break +} + +return (sizeIndex = 0) ? size " B" +: round(size, decimalPlaces) . " " . sizes[sizeIndex] +} + +sortColumn(column, sortMethod) +{ +global columnsToSort + +for k, v in columnsToSort { +if (v!=column) { +LV_ModifyCol(v, "NoSort") +} +} +LV_ModifyCol(column, sortMethod) +} + +getSelectedNames() +{ +global +gui, main:default +Gui, ListView, vlistView%whichSide% +index:="" +selectedNames:=[] +loop { +index:=LV_GetNext(index) +if (!index) +break +LV_GetText(OutputVar,index,2) +selectedNames.Push(OutputVar) + +} +return selectedNames +} + +getSelectedPaths() +{ +global +selectedPaths:=[] +for k, v in getSelectedNames() { +selectedPaths.Push(EcurrentDir%whichSide% "\" v) +} +return selectedPaths +} + +doubleClickedNormal(ByRef index) +{ +global +gui, main:default +ControlFocus,, % "ahk_id " ListviewHwnd%whichSide% +Gui, ListView, vlistView%whichSide% + +LV_GetText(filename,index,2) +path:=EcurrentDir%whichSide% "\" filename +doubleClickedFolderOrFile(path) +} + +doubleClickedFolderOrFile(ByRef path) +{ +global +fileExist:=FileExist(path) +if (fileExist) { +if (InStr(fileExist, "D")) +{ +EcurrentDir%whichSide%:=path +renderCurrentDir() +} +else { +path:=path +Run, "%path%", % EcurrentDir%whichSide% +} +} +ControlFocus,, % "ahk_id " ListviewHwnd%whichSide% +} + +stopSearching() +{ +global +Gui, main:Default +ControlFocus,, % "ahk_id " ListviewHwnd%whichSide% +focused=flistView +GuiControl,Text,currentDirEdit, % EcurrentDir%whichSide% +searchString%whichSide%= +renderCurrentDir() +} + +HandleMessage( p_w, p_l, p_m, p_hw ) +{ +global +local control +; return +; p(p_w) +if (!ignoreOut) { +if (p_w=0x1000007) { +; p(p_l) + +whichSide:=1 +Gui, Show,NA,% EcurrentDir%whichSide% " - ahk_explorer" +if (focused="flistView") ; if listView for instance +{ +focused:="changePath" +} else if (focused="listViewInSearch") { +focused:="searchCurrentDirEdit" +} +} +else if (p_w=0x100000B) { + +whichSide:=2 +Gui, Show,NA,% EcurrentDir%whichSide% " - ahk_explorer" +if (focused="flistView") ; if listView for instance +{ +focused:="changePath" +} else if (focused="listViewInSearch") { +focused:="searchCurrentDirEdit" +} +} + +; 16777222 +else if ( p_w & 0x2000000 ) +{ +if (p_w=0x2000007) { + +whichSide:=1 +Gui, Show,NA,% EcurrentDir%whichSide% " - ahk_explorer" +} +else if (p_w=0x200000B) { + +whichSide:=2 +Gui, Show,NA,% EcurrentDir%whichSide% " - ahk_explorer" +} + +if (((p_w >> 16) & 0x200) and not ((p_w >> 16) & 0x100)) +; if (If ((p_w >> 16) & 0x200) and not ((p_w >> 16) & 0x100)) +{ +if ( p_l = Edithwnd%whichSide% ) +{ +if (focused="searchCurrentDirEdit") +{ +focused=listViewInSearch +} +else if (focused="changePath") { + +MouseGetPos,,, OutputVarWin +GuiControl, Focus, vlistView%whichSide% +winactivate, ahk_id %OutputVarWin% +; static EM_SETSEL := 0x00B1 +; static EN_SETFOCUS := 0x0100 +submitAndRenderDir() +focused:="flistView" +} +else +{ +; Gui, Submit, NoHide +; currentDir:=currentDirEdit +; +} +} else if ( p_l = RenameHwnd ) { +if (!fromButton) +gosub, renameFileLabel +} +} +} +} + +} +return + +searchInCurrentDir() { +global +if (searchString%whichSide%="") { +} +else { +searching:=true +Gui, main:Default +Gui, ListView, vlistView%whichSide% + +ignoreOut:=true +objectToSort:=[] +namesForIcons%whichSide%:=[] + +GuiControl, -Redraw, vlistView%whichSide% +LV_Delete() +if (SubStr(searchString%whichSide%, 1, 1)!=".") { +counter:=0 +objectToSort:=[] + +for k,v in sortedByDate%whichSide% { +if (counter>maxRows) +break +attri:=stuffByName%whichSide%[v]["attri"] +if InStr(attri, "D") { +pos:=InStr(v, searchString%whichSide%) +} else { +SplitPath, v,,,, OutNameNoExt +pos:=InStr(OutNameNoExt, searchString%whichSide%) +} + +if (pos) { +counter++ +objectToSort.Push({name:v,pos:pos}) +} +} +objectToSort:=ObjectSort(objectToSort,"pos") + +for k,v in objectToSort { +name:=v["name"] +obj:=stuffByName%whichSide%[name] +calculateStuff(obj["date"],obj["size"],name,k) + +LV_Add(,,name,var1,var2,formattedBytes,bytes) +LV_Colors.Cell(ListviewHwnd%whichSide%,k,3,color) +namesForIcons%whichSide%.Push(name) +} +} else { +searchFoldersOnly:=(searchString%whichSide%=".") ? true : false +if (searchFoldersOnly) { +counter:=0 +for k,v in sortedByDate%whichSide% { +if (counter>maxRows) +break +SplitPath, v,,, OutExtension +if (!OutExtension) { +obj:=stuffByName%whichSide%[v] + +calculateStuff(obj["date"],obj["size"],v,k) + +LV_Add(,,v,var1,var2,formattedBytes,bytes) +LV_Colors.Cell(ListviewHwnd%whichSide%,k,3,color) +namesForIcons%whichSide%.Push(v) +} +} +} else { +searchStringBak%whichSide%:=SubStr(searchString%whichSide%, 2) +counter:=0 +objectToSort:=[] +for k,v in sortedByDate%whichSide% { +if (counter>maxRows) +break +SplitPath, v,,, OutExtension +pos:=InStr(OutExtension, searchStringBak%whichSide%) +if (pos) { +counter++ +objectToSort.Push({name:v,pos:pos}) +} +} +objectToSort:=ObjectSort(objectToSort,"pos") +for k,v in objectToSort { +name:=v["name"] +obj:=stuffByName%whichSide%[name] + +calculateStuff(obj["date"],obj["size"],name,k) + +LV_Add(,,name,var1,var2,formattedBytes,bytes) +LV_Colors.Cell(ListviewHwnd%whichSide%,k,3,color) +namesForIcons%whichSide%.Push(name) +} +} + +} +GuiControl, +Redraw, vlistView%whichSide% +applyIcons(namesForIcons%whichSide%) +} + +loop % LV_GetCount() - 1 { + +LV_Modify(A_Index+1, "-Select -Focus") ; select +} + +LV_Modify(1, "+Select +Focus Vis") ; select + +searching:=false +ignoreOut:=false +} + +minusEverythingAfterPoint(index) +{ +global rowBak + +indexBak:=index+1 +loop % rowBak.Length() - index { +if (rowBak[indexBak]!=0) +rowBak[indexBak]-- +indexBak++ +} +} + +addEverythingAfterPoint(index) { +global rowBak + +indexBak:=index+1 +loop % rowBak.Length() - index { +if (rowBak[indexBak]!=0) +rowBak[indexBak]++ +indexBak++ +} +} + +getinsertPoint(index) +{ +global rowBak +index-- +while (rowBak[index]=0) { +index-- +} + +if (index<1) +return 1 + +return rowBak[index]+1 + +} + +renderCurrentDir() +{ +global +local ansiPath, bothSameDir, dirToStopWatching,i,k,v,y,drive,freeSpace,lastChar,text,totalSpace,OutputVar +; global EcurrentDir1, EcurrentDir2, whichSide, currentDirSearch, stopSizes +Gui, main:Default + +if (SubStr(EcurrentDir%whichSide%,1,5)="file:") { +ansiPath:=URItoPath(EcurrentDir%whichSide%) +EcurrentDir%whichSide%:=decodeStrAs(ansiPath, "UTF-8") +} + +EcurrentDir%whichSide%:=LTrim(EcurrentDir%whichSide%,"file:///") +EcurrentDir%whichSide%:=StrReplace(EcurrentDir%whichSide%, "%20", " ") +; d(EcurrentDir%whichSide%) +lastChar:=SubStr(EcurrentDir%whichSide%, 0) +if (lastChar="\") +EcurrentDir%whichSide%:=SubStr(EcurrentDir%whichSide%, 1, StrLen(EcurrentDir%whichSide%)-1) +EcurrentDir%whichSide%:=Rtrim(EcurrentDir%whichSide%," ") +EcurrentDir%whichSide%:=StrReplace(EcurrentDir%whichSide%, "/" , "\") +Gui, ListView, vlistView%whichSide% + +currentDirSearch:="" +if (InStr(fileExist(EcurrentDir%whichSide%), "D")) +{ +stopSizes:=false + +if (lastDir%whichSide%!=EcurrentDir%whichSide% ) { +bothSameDir:=bothSameDir(whichSide) +if (lastDir%whichSide%!="" and EcurrentDir%otherSide%!=lastDir%whichSide%) { +for k, v in watching%whichSide% { +if (v=lastDir%whichSide%) { +watching%whichSide%.Remove(k) +dirToStopWatching:=v +break +} +} +stopWatchFolder(whichSide,dirToStopWatching) +} + +if (!bothSameDir) { +watching%whichSide%.Push(EcurrentDir%whichSide%) +startWatchFolder(whichSide,EcurrentDir%whichSide%) +} + +if (lastDir%whichSide%!="" and !cannotDirHistory%whichSide%) { +dirHistory%whichSide%.Push(lastDir%whichSide%) +} +} +if cannotDirHistory%whichSide% { +cannotDirHistory%whichSide%:=false +} +lastDir%whichSide%:=EcurrentDir%whichSide% +focused=flistView + +filePaths:=[] +rowBak:=[] +; dates:=[] +sortableDates:=[] +sizes:=[] +sortableSizes:=[] +; dateColors:=[] +; filesWithNoExt:=[] +if (lastIconNumber) +rememberIconNumber:=lastIconNumber + +unsorted%whichSide%:=[] +sortedByDate%whichSide%:=[] +sortedBySize%whichSide%:=[] +canSortBySize%whichSide%:=false +stuffByName%whichSide%:={} +sortedDates:=[] +sortedSizes%whichSide%:=[] +Loop, Files, % EcurrentDir%whichSide% "\*", DF +{ +stuffByName%whichSide%[A_LoopFileName]:={date:A_LoopFileTimeModified,attri:A_LoopFileAttrib,size:A_LoopFileSize} + +sortedDates.Push({date:A_LoopFileTimeModified,name:A_LoopFileName}) +} + +sortedDates:=sortArrByKey(sortedDates,"date") +; sortedDates:=sortArrByKey(sortedDates,"date",true) + +for k, v in sortedDates { +sortedByDate%whichSide%.Push(v["name"]) +} + +firstSizes%whichSide%:=true +whichsort%whichSide%:="newOld" +oldNew%whichSide%:=false + +renderFunctionsToSort(sortedByDate%whichSide%) + +Gui, ListView, folderlistView2_%whichSide% +LV_Delete() +parent1DirDirs%whichSide%:=[] +SplitPath, EcurrentDir%whichSide%, , parent1Dir%whichSide% +SplitPath, parent1Dir%whichSide%, Out2DirName%whichSide% , parent2Dir%whichSide%,,,OutDrive2%whichSide% +SplitPath, parent2Dir%whichSide%, Out3DirName%whichSide%, parent3Dir%whichSide%,,,OutDrive3%whichSide% +Gui, Show,NA,% EcurrentDir%whichSide% " - ahk_explorer" + +if (parent1Dir%whichSide%!=EcurrentDir%whichSide%) { +if (!Out2DirName%whichSide%) +Out2DirName%whichSide%:=OutDrive2%whichSide% +LV_ModifyCol(1,"NoSort", Out2DirName%whichSide%) +Loop, Files, % parent1Dir%whichSide% "\*", D +{ +if (A_LoopFileLongPath!=EcurrentDir%whichSide%) { +LV_Add(, A_LoopFileName) +parent1DirDirs%whichSide%.Push(A_LoopFileLongPath) +} else { +toSelect:=(A_Index=1) ? 1 : A_Index-1 +} +} +Gui, ListView, folderlistView2_%whichSide% ;just in case +LV_Modify(toSelect, "+Select +Focus Vis") ; select +} else +{ +LV_ModifyCol(1,"NoSort", "") +} +Gui, ListView, folderlistView1_%whichSide% +LV_Delete() +parent2DirDirs%whichSide%:=[] +if (parent2Dir%whichSide%!=parent1Dir%whichSide%) { +if (!Out3DirName%whichSide%) +Out3DirName%whichSide%:=OutDrive3%whichSide% +LV_ModifyCol(1,"NoSort", Out3DirName%whichSide%) +Loop, Files, % parent2Dir%whichSide% "\*", D +{ +if (A_LoopFileLongPath!=parent1Dir%whichSide%) { +LV_Add(, A_LoopFileName) +parent2DirDirs%whichSide%.Push(A_LoopFileLongPath) +} else { +toSelect:=(A_Index=1) ? 1 : A_Index-1 +} +} +Gui, ListView, folderlistView1_%whichSide% ;just in case +LV_Modify(toSelect, "+Select +Focus Vis") ; select +} +else +{ +LV_ModifyCol(1,"NoSort", "") +} + +DriveGet, OutputVar, List +drives:=StrSplit(OutputVar,"") +length:=drives.Length() + +for i, drive in drives { +y:=40*(i-1) +DriveGet, totalSpace, Capacity, %drive%: +DriveSpaceFree, freeSpace, %drive%: + +text:=drive ":\ " Round(100-100*freeSpace/totalSpace, 2) "%`n" autoMegaByteFormat(freeSpace) "/" autoMegaByteFormat(totalSpace) +if (i>numberOfDrives) { +gui, add, button,h40 y%y% w%favoritesListViewWidth% vDrive%i% x0 Left ggChangeDrive, % text +} +else { +GuiControl, Show, Drive%i% +GuiControl, Text, Drive%i%, % text +} +} + +loop % numberOfDrives { +if (A_Index>length) { +GuiControl, Hide, Drive%A_Index% +} +} + +if (length>numberOfDrives) +numberOfDrives:=length +} else { +SplitPath, EcurrentDir%whichSide%, OutFileName%whichSide%, OutDir%whichSide% +if (InStr(fileExist(OutDir%whichSide%), "D")) { +toFocus:=OutFileName%whichSide% +EcurrentDir%whichSide%:=OutDir%whichSide% + +renderCurrentDir() + +} else { +; p(fileExist(currentDir)) +EcurrentDir%whichSide%:=lastDir%whichSide% +GuiControl, Text,vcurrentDirEdit%whichSide%, % EcurrentDir%whichSide% + +if (focused!="changePath") { +renderCurrentDir() +} +; lastDir:=currentDir +} + +} +Gui, ListView, vlistView%whichSide% +} + +findNextDirNameNumberIteration(path) +{ +global left +global right +SplitPath, path, OutFileName, OutDir, OutExtension, OutNameNoExt, OutDrive +getLeftRight(OutNameNoExt, "*") +pathToCheck:=OutDir "\" left right +incrementNumber:=2 +while (FileExist(pathToCheck)) { +pathToCheck:=OutDir "\" left incrementNumber right +incrementNumber++ +} +return pathToCheck +} + +getLeftRight(string, needle) +{ +global left +global right +asteriskPos:=InStr(string, "*") +left:=SubStr(string, 1, asteriskPos-1) +right:=SubStr(string, asteriskPos+1) +} + +ShellContextMenu(folderPath, files, win_hwnd = 0 ) +{ +if ( !folderPath ) +return +if !win_hwnd +{ +Gui,SHELL_CONTEXT:New, +hwndwin_hwnd +Gui,Show +} + +If sPath Is Not Integer +DllCall("shell32\SHParseDisplayName", "Wstr", folderPath, "Ptr", 0, "Ptr*", pidl, "Uint", 0, "Uint", 0) +else +DllCall("shell32\SHGetFolderLocation", "Ptr", 0, "int", folderPath, "Ptr", 0, "Uint", 0, "Ptr*", pidl) +DllCall("shell32\SHBindToObject","Ptr",0,"Ptr",pidl,"Ptr",0,"Ptr",GUID4String(IID_IShellFolder,"{000214E6-0000-0000-C000-000000000046}"),"Ptr*",pIShellFolder) + +length:=files.Length() +VarSetCapacity(apidl, length * A_PtrSize, 0) +for k, v in files { +;IShellFolder:ParseDisplayName +DllCall(VTable(pIShellFolder,3),"Ptr", pIShellFolder,"Ptr",win_hwnd,"Ptr",0,"Wstr",v,"Uint*",0,"Ptr*",tmpPIDL,"Uint*",0) +NumPut(tmpPIDL, apidl, (k - 1)*A_PtrSize, "Ptr") +} +;IShellFolder->GetUIObjectOf +DllCall(VTable(pIShellFolder,10),"Ptr",pIShellFolder,"Ptr",win_hwnd,"Uint",length,"Ptr",&apidl,"Ptr",GUID4String(IID_IContextMenu,"{000214E4-0000-0000-C000-000000000046}"),"UINT*",0,"Ptr*",pIContextMenu) + +ObjRelease(pIShellFolder) +CoTaskMemFree(pidl) + +hMenu := DllCall("CreatePopupMenu") +;IContextMenu->QueryContextMenu +;http://msdn.microsoft.com/en-us/library/bb776097%28v=VS.85%29.aspx +DllCall(VTable(pIContextMenu, 3), "Ptr", pIContextMenu, "Ptr", hMenu, "Uint", 0, "Uint", 3, "Uint", 0x7FFF, "Uint", 0x100) ;CMF_EXTENDEDVERBS +; p(hMenu) +ComObjError(0) +global pIContextMenu2 := ComObjQuery(pIContextMenu, IID_IContextMenu2:="{000214F4-0000-0000-C000-000000000046}") +global pIContextMenu3 := ComObjQuery(pIContextMenu, IID_IContextMenu3:="{BCFCE0A0-EC17-11D0-8D10-00A0C90F2719}") +e := A_LastError ;GetLastError() +ComObjError(1) +if (e != 0) +goTo, StopContextMenu +Global WPOld:= DllCall("SetWindowLongPtr", "Ptr", win_hwnd, "int",-4, "Ptr",RegisterCallback("WindowProc"),"UPtr") +DllCall("GetCursorPos", "int64*", pt) +; DllCall("InsertMenu", "Ptr", hMenu, "Uint", 0, "Uint", 0x0400|0x800, "Ptr", 2, "Ptr", 0) +; DllCall("InsertMenu", "Ptr", hMenu, "Uint", 0, "Uint", 0x0400|0x002, "Ptr", 1, "Ptr", &sPath) +idn := DllCall("TrackPopupMenuEx", "Ptr", hMenu, "Uint", 0x0100|0x0001, "int", pt << 32 >> 32, "int", pt >> 32, "Ptr", win_hwnd, "Uint", 0) +; p(idn) +; return +; Formatter ignores block comments for now, nbd + /* + typedef struct _CMINVOKECOMMANDINFOEX { + DWORD cbSize; 0 + DWORD fMask; 4 + HWND hwnd; 8 + LPCSTR lpVerb; 8+A_PtrSize + LPCSTR lpParameters; 8+2*A_PtrSize + LPCSTR lpDirectory; 8+3*A_PtrSize + int nShow; 8+4*A_PtrSize + DWORD dwHotKey; 12+4*A_PtrSize + HANDLE hIcon; 16+4*A_PtrSize + LPCSTR lpTitle; 16+5*A_PtrSize + LPCWSTR lpVerbW; 16+6*A_PtrSize + LPCWSTR lpParametersW; 16+7*A_PtrSize + LPCWSTR lpDirectoryW; 16+8*A_PtrSize + LPCWSTR lpTitleW; 16+9*A_PtrSize + POINT ptInvoke; 16+10*A_PtrSize + } CMINVOKECOMMANDINFOEX, *LPCMINVOKECOMMANDINFOEX; + http://msdn.microsoft.com/en-us/library/bb773217%28v=VS.85%29.aspx + */ +struct_size := 16+11*A_PtrSize +VarSetCapacity(pici,struct_size,0) +NumPut(struct_size,pici,0,"Uint") ;cbSize +NumPut(0x4000|0x20000000|0x00100000,pici,4,"Uint") ;fMask +NumPut(win_hwnd,pici,8,"UPtr") ;hwnd +NumPut(1,pici,8+4*A_PtrSize,"Uint") ;nShow +NumPut(idn-3,pici,8+A_PtrSize,"UPtr") ;lpVerb +NumPut(idn-3,pici,16+6*A_PtrSize,"UPtr") ;lpVerbW +NumPut(pt,pici,16+10*A_PtrSize,"Uptr") ;ptInvoke + +DllCall(VTable(pIContextMenu, 4), "Ptr", pIContextMenu, "Ptr", &pici) ; InvokeCommand + +DllCall("GlobalFree", "Ptr", DllCall("SetWindowLongPtr", "Ptr", win_hwnd, "int", -4, "Ptr", WPOld,"UPtr")) +DllCall("DestroyMenu", "Ptr", hMenu) +StopContextMenu: +ObjRelease(pIContextMenu3) +ObjRelease(pIContextMenu2) +ObjRelease(pIContextMenu) +pIContextMenu2:=pIContextMenu3:=WPOld:=0 +Gui,SHELL_CONTEXT:Destroy +return idn +} +WindowProc(hWnd, nMsg, wParam, lParam) +{ +Global pIContextMenu2, pIContextMenu3, WPOld +If pIContextMenu3 +{ ;IContextMenu3->HandleMenuMsg2 +If !DllCall(VTable(pIContextMenu3, 7), "Ptr", pIContextMenu3, "Uint", nMsg, "Ptr", wParam, "Ptr", lParam, "Ptr*", lResult) +Return lResult +} +Else If pIContextMenu2 +{ ;IContextMenu2->HandleMenuMsg +If !DllCall(VTable(pIContextMenu2, 6), "Ptr", pIContextMenu2, "Uint", nMsg, "Ptr", wParam, "Ptr", lParam) +Return 0 +} +Return DllCall("user32.dll\CallWindowProcW", "Ptr", WPOld, "Ptr", hWnd, "Uint", nMsg, "Ptr", wParam, "Ptr", lParam) +} +VTable(ppv, idx) +{ +Return NumGet(NumGet(1*ppv)+A_PtrSize*idx) +} + +other_vtable(ptr, n) { +return NumGet(NumGet(ptr+0), n*A_PtrSize) +} + +GUID4String(ByRef CLSID, String) +{ +VarSetCapacity(CLSID, 16,0) +return DllCall("ole32\CLSIDFromString", "wstr", String, "Ptr", &CLSID) >= 0 ? &CLSID : "" +} +Guid_FromStr(sGuid, ByRef VarOrAddress) +{ +if IsByRef(VarOrAddress) && (VarSetCapacity(VarOrAddress) < 16) +VarSetCapacity(VarOrAddress, 16) ; adjust capacity +pGuid := IsByRef(VarOrAddress) ? &VarOrAddress : VarOrAddress +if ( DllCall("ole32\CLSIDFromString", "WStr", sGuid, "Ptr", pGuid) < 0 ) +throw Exception("Invalid GUID", -1, sGuid) +return pGuid ; return address of GUID struct +} +Guid_ToStr(ByRef VarOrAddress) +{ +pGuid := IsByRef(VarOrAddress) ? &VarOrAddress : VarOrAddress +VarSetCapacity(sGuid, 78) ; (38 + 1) * 2 +if !DllCall("ole32\StringFromGUID2", "Ptr", pGuid, "Ptr", &sGuid, "Int", 39) +throw Exception("Invalid GUID", -1, Format("", pGuid)) +return StrGet(&sGuid, "UTF-16") +} +CoTaskMemFree(pv) +{ +Return DllCall("ole32\CoTaskMemFree", "Ptr", pv) +} +FileToClipboard(PathToCopy,Method="copy") +{ +FileCount:=0 +PathLength:=0 +FileCount:=PathToCopy.Length() +; Count files and total string length + +for k, v in PathToCopy { +PathLength+=StrLen(v) +} +; Loop,Parse,PathToCopy,`n,`r +; { +; PathLength+=StrLen(A_LoopField) +; } + +pid:=DllCall("GetCurrentProcessId","uint") +hwnd:=WinExist("ahk_pid " . pid) +; 0x42 = GMEM_MOVEABLE(0x2) | GMEM_ZEROINIT(0x40) +hPath := DllCall("GlobalAlloc","uint",0x42,"uint",20 + (PathLength + FileCount + 1) * 2,"UPtr") +pPath := DllCall("GlobalLock","UPtr",hPath) +NumPut(20,pPath+0),pPath += 16 ; DROPFILES.pFiles = offset of file list +NumPut(1,pPath+0),pPath += 4 ; fWide = 0 -->ANSI,fWide = 1 -->Unicode +Offset:=0 +for k, v in PathToCopy { +offset += StrPut(v,pPath+offset,StrLen(v)+1,"UTF-16") * 2 +} +; Loop,Parse,PathToCopy,`n,`r ; Rows are delimited by linefeeds (`r`n). +; offset += StrPut(A_LoopField,pPath+offset,StrLen(A_LoopField)+1,"UTF-16") * 2 +; +DllCall("GlobalUnlock","UPtr",hPath) +DllCall("OpenClipboard","UPtr",hwnd) +DllCall("EmptyClipboard") +DllCall("SetClipboardData","uint",0xF,"UPtr",hPath) ; 0xF = CF_HDROP + +; Write Preferred DropEffect structure to clipboard to switch between copy/cut operations +; 0x42 = GMEM_MOVEABLE(0x2) | GMEM_ZEROINIT(0x40) +mem := DllCall("GlobalAlloc","uint",0x42,"uint",4,"UPtr") +str := DllCall("GlobalLock","UPtr",mem) + +if (Method="copy") +DllCall("RtlFillMemory","UPtr",str,"uint",1,"UChar",0x05) +else if (Method="cut") +DllCall("RtlFillMemory","UPtr",str,"uint",1,"UChar",0x02) +else +{ +DllCall("CloseClipboard") +return +} + +DllCall("GlobalUnlock","UPtr",mem) + +cfFormat := DllCall("RegisterClipboardFormat","Str","Preferred DropEffect") +DllCall("SetClipboardData","uint",cfFormat,"UPtr",mem) +DllCall("CloseClipboard") +return +} + +sortArrayByArray(toSort, sortWith, reverse=false, key=false) +{ +global +array:=[] +finalAr:=[] +if (key) { +count:=0 +for k, v in sortWith { +count++ +array.Push({1:v[key], 2:count}) +} +array:=ObjectSort(array, 1,, reverse) +for k in array { +finalAr.Push(toSort[array[k][2]]) +} +} else { +for k in toSort { +array.Push([toSort[k],sortWith[k]]) +} +array:=ObjectSort(array, 2,,reverse) +for k, v in array { +finalAr.Push(v[1]) +} +} +return finalAr +} + +;end of functions +;hotkeys +#if winactive(thisUniqueWintitle) +^e:: +; revealFileInExplorer(EcurrentDir%whichSide%, getSelectedNames()) +path:=getSelectedPaths()[1] +if (path) { +Run, % "explorer.exe /select,""" path """" +} else { +Run, % "explorer.exe """ EcurrentDir%whichSide% """" +} +return + +#d:: +if (focused="changePath") { +focused:="flistView" +GuiControl, Focus, vlistView%whichSide% +ComObjCreate("Shell.Application").ToggleDesktop() +submitAndRenderDir() +} else { +ComObjCreate("Shell.Application").ToggleDesktop() +} +return +$^+left:: +if (focused="changePath" or focused="searchCurrentDirEdit") { +send, ^+{left} +return +} +gui, main:default +whichSide:=1 +Gui, Show,NA,% EcurrentDir%whichSide% " - ahk_explorer" +GuiControl, Focus, vlistView1 ;bad code +ControlFocus,, ahk_id %ListviewHwnd1% +GuiControl, +Background%BGColorOfSelectedPane%, vlistView1 +GuiControl, +BackgroundWhite, vlistView2 +EcurrentDir1:=EcurrentDir2 +renderCurrentDir() +return +$^+right:: +if (focused="changePath") { +send, ^+{right} +return +} +gui, main:default +whichSide:=2 +Gui, Show,NA,% EcurrentDir%whichSide% " - ahk_explorer" +GuiControl, Focus, vlistView2 ;bad code +ControlFocus,, ahk_id %ListviewHwnd2% +GuiControl, +Background%BGColorOfSelectedPane%, vlistView2 +GuiControl, +BackgroundWhite, vlistView1 +EcurrentDir2:=EcurrentDir1 +renderCurrentDir() +return +left:: ;always uses keyboard hook +^left:: +if (focused="changePath" or focused="searchCurrentDirEdit") { +thisHotkey:=StrReplace(A_ThisHotkey, "left", "{left}") +send, %thisHotkey% +return +} +^1:: +selectPanel1: +gui, main:default +whichSide:=1 +Gui, Show,NA,% EcurrentDir%whichSide% " - ahk_explorer" +GuiControl, Focus, vlistView1 ;bad code +ControlFocus,, ahk_id %ListviewHwnd1% +GuiControl, +Background%BGColorOfSelectedPane%, vlistView1 +GuiControl, +BackgroundWhite, vlistView2 +return + +right:: ;always uses keyboard hook +^right:: +if (focused="changePath" or focused="searchCurrentDirEdit") { +thisHotkey:=StrReplace(A_ThisHotkey, "Right", "{Right}") +send, %thisHotkey% +return +} +^2:: +selectPanel2: +gui, main:default +whichSide:=2 +Gui, Show,NA,% EcurrentDir%whichSide% " - ahk_explorer" +GuiControl, Focus, vlistView2 ;bad code +ControlFocus,, ahk_id %ListviewHwnd2% +GuiControl, +Background%BGColorOfSelectedPane%, vlistView2 +GuiControl, +BackgroundWhite, vlistView1 + +return +$RAlt:: +if (focused="searchCurrentDirEdit" or focused="flistView" or focused="listViewInSearch") { +Run,"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe", % EcurrentDir%whichSide% +} +return + +$RCtrl:: +if (focused="searchCurrentDirEdit" or focused="flistView" or focused="listViewInSearch") { +Run,"%ComSpec%", % EcurrentDir%whichSide% +} +return +$RShift:: +if (focused="searchCurrentDirEdit" or focused="flistView" or focused="listViewInSearch") { +toRun:= """" vscodePath """ """ EcurrentDir%whichSide% """" +run, %toRun% +} else { +send, +\ +} +return + +$\:: +Gui, main:Default +if (focused="searchCurrentDirEdit" or focused="flistView" or focused="listViewInSearch") { +selectedPaths:=getSelectedPaths() +if (selectedPaths.Length()) { +for k,v in selectedPaths { +; toRun:= """" vscodePath """ """ v """" +toRun:= """" A_AhkPath """ /CP65001 ""lib\vscode_runner.ahk"" """ v """" +; d(toRun) +run, %toRun% +} +} +} else { +send, \ +} + +return + +; $`:: +p(watching1,watching2) +Return + +$^+r:: +namesToMultiRename:=getSelectedNames() +multiRenameDir:=EcurrentDir%whichSide% +multiRenamelength:=namesToMultiRename.Length() +Gui, multiRenameGui:Default +; Gui,Font, s10, Segoe UI +Gui,Font, s10, Consolas + +Gui, Add, Edit, w400 vmultiRenameTheName +Gui, Add, Edit, x+5 w300 vmultiRenameStartingNums + +Gui, Add, Button, h30 w200 y+5 x+-705 ggmultiRenamePreview,preview +Gui, Add, Button, h30 w200 x+5 ggmultiRenameApply,apply + +Gui, Add, ListBox, r%multiRenamelength% w500 y+5 vvmultiRenameTargets x+-405 , % array_ToVerticleBarString(selectedNames) +Gui, Add, ListBox, r%multiRenamelength% w500 x+5 vvmultiRenamePreview, +Gui, show,,multiRenameGui +return + +$^r:: +$esc:: +stopSearching() +return + +$^n:: + +return +$^+n:: +Gui, createFolder:Default + +creatingNewFolder:=true +dontSearch:=true +newFolderPath:=findNextDirNameNumberIteration(EcurrentDir%whichSide% "\New Folder *") +SplitPath, newFolderPath, newFolderName +strLen:=StrLen(newFolderName) +if (SubStr(newFolderName, 0)=" " and strLen > 1) { +newFolderName:=SubStr(newFolderName, 1, strLen-1) +} + +if (!notFirstTimeCreatingFolder) { +notFirstTimeCreatingFolder:=true +Gui, createFolder: Font, s10, Segoe UI +;Segoe UI +gui, createFolder: add, text,, Folder Name: ; Save this control's position and start a new section. +gui, createFolder: add, edit, w250 vcreateFolderName hwndfolderCreationHwnd, %newFolderName% +gui, createFolder: add, button, Default w125 x11 vcreate gcreateLabel,Create Folder`n{Enter} +gui, createFolder: add, button, w125 x+2 vcreateAndOpen gcreateAndOpenLabel,Create and Open`n{Shift + Enter} +} else { +; GuiControl, text, createFolderName, %newFolderName% +ControlSetText,, %newFolderName%, ahk_id %folderCreationHwnd% +SendMessage, 0xB1, 0, -1,, % "ahk_id " folderCreationHwnd +} +gui, createFolder: show,, create_folder +dontSearch:=false + +return +^s:: +selectedNames:=getSelectedNames() +for notUsed, name in selectedNames { +Run, "%spekPath%" "%name%", % EcurrentDir%whichSide% +} +return + +!h:: +hashFiles("sha256") +return + +^h:: +hashFiles("md5") +return + +^+e:: +selectedNames:=getSelectedNames() +for notUsed, name in selectedNames { +SplitPath, name,,,, OutNameNoExt +FileRecycle, % EcurrentDir%whichSide% "\" OutNameNoExt ".exe" +Run, "%Ahk2ExePath%" /in "%name%" /bin "%Ahk2ExePath%\..\Unicode 32-bit.bin", % EcurrentDir%whichSide% +} +return +!c:: +copySelectedNames: +Gui, main:Default +dontSearch:=true +selectedNames:=getSelectedNames() +finalStr= +length:=selectedNames.Length() +for k, v in selectedNames { +if (k=length) { +finalStr.=v +} +else { +finalStr.=v "`n" +} +} +clipboard:=finalStr +dontSearch:=false + +#Persistent +ToolTip, % length +SetTimer, RemoveToolTip,-1000 +return + +copySelectedPaths: +^+c:: +Gui, main:Default +dontSearch:=true +selectedNames:=getSelectedNames() +finalStr= +length:=selectedNames.Length() +for k, v in selectedNames { +if (k=length) { +finalStr.=EcurrentDir%whichSide% "\" v +} +else { +finalStr.=EcurrentDir%whichSide% "\" v "`n" +} +} +clipboard:=finalStr +dontSearch:=false + +#Persistent +ToolTip, % length +SetTimer, RemoveToolTip,-1000 +return + +return + +$!left:: +focusDirOnBack:=true +goToParentDir: +Gui, main:Default +SplitPath, % EcurrentDir%whichSide%,OutDirName, ParentDir1 +if (focusDirOnBack) { +focusDirOnBack:=false +toFocus:=OutDirName +} + +EcurrentDir%whichSide%:=ParentDir1 +renderCurrentDir() +return + +$!right:: +Gui, main:Default +undoHistory%whichSide%.Push(EcurrentDir%whichSide%) +EcurrentDir%whichSide%:=dirHistory%whichSide%[dirHistory%whichSide%.Length()] +dirHistory%whichSide%.RemoveAt(dirHistory%whichSide%.Length()) +cannotDirHistory%whichSide%:=true +renderCurrentDir() +return + +$!up:: +Gui, main:Default +EcurrentDir%whichSide%:=undoHistory%whichSide%[undoHistory%whichSide%.Length()] +undoHistory%whichSide%.RemoveAt(undoHistory%whichSide%.Length()) +renderCurrentDir() +return + +^l:: +/:: +; p(434) +focused:="changePath" +ControlFocus,, % "ahk_id " Edithwnd%whichSide% +SendMessage, 177, 0, -1,, % "ahk_id " Edithwnd%whichSide% +return + +$backspace:: +Gui, main:Default +if (focused="changePath" or focused="renaming") { +send, {backspace} +} else if (focused="listViewInSearch") { +if (searchString%whichSide%="") { +stopSearching() +} else { +GuiControl, focus,vcurrentDirEdit%whichSide% +SendMessage, 0xB1, -2, -1,, % "ahk_id " Edithwnd%whichSide% +send, {backspace} +} +} else if (focused="searchCurrentDirEdit") { +if (searchString%whichSide%="") { +stopSearching() +} else { +send, {backspace} +} +} else if (focused="flistView") { +gosub,goToParentDir +} +return +$^+up:: +gosub, shiftUp +gosub, shiftUp +return + +shiftUp: +$+up:: +Gui, main:Default +Gui, ListView, vlistView%whichSide% + +focusRow:=LV_GetNext(0, "F") + +before:=LV_GetNext(focusRow - 2) +if (focusRow - 1 > 0) { +if (before=focusRow - 1) { +LV_Modify(focusRow, "-Select -Focus") +LV_Modify(focusRow - 1,"+Select +Focus Vis") +} else { +LV_Modify(focusRow - 1,"+Select +Focus Vis") +} +} else { +numberOfRows:=LV_GetCount() +LV_Modify(numberOfRows,"+Select +Focus Vis") +} +return +$^up:: +Gui, main:Default +Gui, ListView, vlistView%whichSide% +selectedRow:=LV_GetNext() +rowToSelect:=selectedRow-1 + +if (rowToSelect>0) { +LV_Modify(rowToSelect, "+Select +Focus Vis") ; select +} +return +$up:: +Gui, main:Default +Gui, ListView, vlistView%whichSide% +selectedRow:=LV_GetNext() +numberOfRows:=LV_GetCount() +loop % numberOfRows +{ +LV_Modify(A_Index, "-Select -Focus") ; select +} + +if (selectedRow<2) { +LV_Modify(numberOfRows, "+Select +Focus Vis") ; select +} +else { +LV_Modify(selectedRow-1, "+Select +Focus Vis") ; select +} +return +$+home:: +if (focused="changePath" or focused="searchCurrentDirEdit") { +send, +{home} +return +} +Gui, main:Default +Gui, ListView, vlistView%whichSide% +selectedRow:=LV_GetNext() +loop % selectedRow - 1 { +LV_Modify(A_Index, "+Select +Focus Vis") ; select +} + +return +$+end:: +if (focused="changePath" or focused="searchCurrentDirEdit") { +send, +{end} +return +} +Gui, main:Default +Gui, ListView, vlistView%whichSide% +selectedRow:=LV_GetNext() +numberOfRows:=LV_GetCount() +loop % numberOfRows - selectedRow +{ +LV_Modify(A_Index + selectedRow, "+Select +Focus Vis") ; select +} + +return +selectCurrent: +Gui, main:Default +Gui, ListView, vlistView%whichSide% +selectedRow:=LV_GetNext(,"F") +LV_Modify(selectedRow, "-Select -Focus") ; select +LV_Modify(selectedRow, "+Select +Focus Vis") ; select +return + +$^+down:: +gosub, shiftDown +gosub, shiftDown +return +shiftDown: +$+down:: +Gui, main:Default +Gui, ListView, vlistView%whichSide% + +focusRow:=LV_GetNext(0, "F") +after:=LV_GetNext(focusRow) +numberOfRows:=LV_GetCount() + +if (focusRow < numberOfRows) { +if (after=focusRow + 1) { +LV_Modify(focusRow, "-Select -Focus") +LV_Modify(focusRow + 1,"+Select +Focus Vis") +} else { +LV_Modify(focusRow + 1,"+Select +Focus Vis") +} +} else { +LV_Modify(1,"+Select +Focus Vis") +} + +return +$^down:: +Gui, main:Default +Gui, ListView, vlistView%whichSide% + +selectedRow:=0 +index:=0 +loop { +index:=LV_GetNext(index) +if (!index) +break +selectedRow:=index +} +LV_Modify(selectedRow+1, "+Select +Focus Vis") ; select +return + +$down:: +SetTimer, downLabel ,-0 +return +downLabel: +Gui, main:Default +Gui, ListView, vlistView%whichSide% + +selectedRows:=[] +selectedRow:=0 +index:=0 +loop { +index:=LV_GetNext(index) +if (!index) +break +selectedRow:=index +selectedRows.Push(index) +} +for k, v in selectedRows { +LV_Modify(v, "-Select -Focus") ; select +} + +numberOfRows:=LV_GetCount() +if (selectedRow=0) { +LV_Modify(1, "+Select +Focus Vis") ; select +} +else if (selectedRow < numberOfRows) { +LV_Modify(selectedRow+1, "+Select +Focus Vis") ; select +} +else { +LV_Modify(1, "+Select +Focus Vis") ; select +} +return +;how to fix $enter not working ? why ? +;sign out and sign in fixed it +$enter:: +Gui, main:Default +if (!canRename) { +if (focused="flistView" or focused="searchCurrentDirEdit" or focused="listViewInSearch") { +stopSizes:=false +gui, ListView, vlistView%whichSide% +for unused, fullPath in getSelectedPaths() { +doubleClickedFolderOrFile(fullPath) +} +; row:=LV_GetNext("") +; doubleClickedNormal(row) +ControlFocus,, % "ahk_id " ListviewHwnd%whichSide% +} else if (focused="changePath" or focused="renaming") { +ControlFocus,, % "ahk_id " ListviewHwnd%whichSide% +} +} else { +send, {enter} +} + +return + +#if winactive("renamingWinTitle ahk_class AutoHotkeyGUI") + +$esc:: +if (focused="flistView") { +if (canRename) { +canRename:=false +; gui, renameSimple:Default +; gui, submit +gui, main:Default +ControlFocus,, % "ahk_id " ListviewHwnd%whichSide% + +gui, renameSimple:Default +gui, destroy +} +return +} +send, {enter} +return + +#if winactive("create_folder ahk_class AutoHotkeyGUI") + +$enter:: +Gosub, createLabel + +return + +$+enter:: +$^+enter:: +Gosub, createAndOpenLabel +return diff --git a/src/test/suite/grammar/samples/ahk-explorer.ahk.snap b/src/test/suite/grammar/samples/ahk-explorer.ahk.snap new file mode 100644 index 00000000..0cbd4783 --- /dev/null +++ b/src/test/suite/grammar/samples/ahk-explorer.ahk.snap @@ -0,0 +1,27939 @@ +>; From https://github.com/FuPeiJiang/ahk_explorer/blob/tests/ahk_explorer.ahk +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Copyright 2021 FuPeiJiang, used with permission +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/pull/32#issuecomment-770233225 +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +> +>#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. +#^^^^^^ source.ahk keyword.control.directives.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk keyword.control.directives.ahk comment.line.semicolon.directive.ahk +>#SingleInstance, force +#^^^^^^^^^^^^^^^ source.ahk keyword.control.directives.ahk +# ^^^^^^^^ source.ahk keyword.control.directives.ahk string.parameter.directives.ahk +>SendMode Input ; Recommended for new scripts due to its superior speed and reliability. +#^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. +#^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>SetBatchLines, -1 +#^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +>#KeyHistory 0 +#^^^^^^^^^^^ source.ahk keyword.control.directives.ahk +# ^^^ source.ahk keyword.control.directives.ahk string.parameter.directives.ahk +>ListLines Off +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +> +>SetWinDelay, -1 +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +>SetControlDelay, -1 +#^^^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +> +>#MaxThreads, 20 +#^^^^^^^^^^^ source.ahk keyword.control.directives.ahk +# ^^^^^ source.ahk keyword.control.directives.ahk string.parameter.directives.ahk +>#MaxThreadsPerHotkey, 4 +#^^^^^^^^^^^^^^^^^^^^ source.ahk keyword.control.directives.ahk +# ^^^^ source.ahk keyword.control.directives.ahk string.parameter.directives.ahk +>SetTitleMatchMode, 2 +#^^^^^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +> +>currentDirSearch= +#^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +>;%appdata%\ahk_explorer_settings +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>FileRead, favoriteFolders, %A_AppData%\ahk_explorer_settings\favoriteFolders.txt +#^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +>favoriteFolders:=StrSplit(favoriteFolders,"`n","`r") +#^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>loadSettings() +#^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>;gsettings +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^ source.ahk comment.line.semicolon.ahk +> +>FOLDERID_Downloads := "{374DE290-123F-4565-9164-39C4925E467B}" +#^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>RegRead, v, HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders, % FOLDERID_Downloads +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>VarSetCapacity(downloads, (261 + !A_IsUnicode) << !!A_IsUnicode) +#^^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +>DllCall("ExpandEnvironmentStrings", Str, v, Str, downloads, UInt, 260) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>EcurrentDir1:=downloads +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +>; EcurrentDir1=C:\Users\Public\AHK\notes\tests +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; EcurrentDir1=C:\Users\Public\AHK\notes\tests\File Watcher +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; EcurrentDir2=C:\Users\Public\AHK +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; EcurrentDir1=C:\Users\Public\AHK\notes\tests\New Folder +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>EcurrentDir2=C:\Users\Public\AHK\notes\tests\New Folder 3 +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.keys.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>whichSide:=1 +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +> +>lastDir1:="C:" +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +> +>for n, param in A_Args ; For each parameter: +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>fileExist:=fileExist(param) +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (fileExist) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (InStr(fileExist, "D")) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>EcurrentDir%whichSide%:=param +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk variable.def.ahk +> +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>SplitPath, param, OutFileName, OutDir +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +>EcurrentDir%whichSide%:=OutDir +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk variable.def.ahk +>toFocus:=OutFileName +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +>;select file +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>p("the folder or file you are trying to open doesn't exist`nyou were trying to open:`n" param) +#^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>break +#^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>;vars +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^ source.ahk comment.line.semicolon.ahk +>watching1:=["control"] +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>watching2:=["control"] +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>maxRows:=50 +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^ source.ahk constant.numeric.ahk +>rememberIconNumber:=0 +#^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>lastInputSearchCurrentDir:=false +#^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +>dirHistory1:=[] +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>dirHistory2:=[] +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>undoHistory1:=[] +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>undoHistory2:=[] +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>global DROPEFFECT_NONE := 0 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>global DROPEFFECT_COPY := 1 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>global DROPEFFECT_MOVE := 2 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>global DROPEFFECT_LINK := 4 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>calculatefileSizes:=1 +#^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>calculateDates:=1 +#^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>doIcons:=1 +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>global dropEffectFormat := DllCall("RegisterClipboardFormat", "Str", CFSTR_PREFERREDDROPEFFECT := "Preferred DropEffect", "UInt") +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>Gui, main:New, +hwndthisHwnd +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk keyword.keys.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +>thisUniqueWintitle:="ahk_id " thisHwnd +#^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>Gui,Font, s10, Segoe UI +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +> +>Gui, +LastFound +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^ source.ahk keyword.other.ahk +>hw_gui := WinExist() +#^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>Gui, Margin, 0, 0 +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +> +>folderListViewWidth:=250 +#^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^ source.ahk constant.numeric.ahk +>favoritesListViewWidth:=130 +#^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^ source.ahk constant.numeric.ahk +> +>listViewWidth:=500 +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^ source.ahk constant.numeric.ahk +>favoritesLenght:=favoriteFolders.Length() +#^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>Gui, Add, Button, w%favoritesListViewWidth% ggsettings y212,settings +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +>Gui, Add, ListView, r%favoritesLenght% w%favoritesListViewWidth% x0 y+0 nosort vfavoritesListView ggfavoritesListView AltSubmit ,Favorites +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +> +>Gui, Add, ListView, r10 w%folderListViewWidth% y0 x+0 vfolderListView1_1 gfolderlistViewEvents1_1 AltSubmit ,Name +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +>Gui, Add, ListView, r10 w%folderListViewWidth% x+0 y0 vfolderlistView2_1 gfolderlistViewEvents2_1 AltSubmit ,Name +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +> +>Gui, Add, Edit, hwndEdithwnd1 r1 w%listViewWidth% y+0 x+-500 vvcurrentDirEdit1 gcurrentDirEdit1Changed, %EcurrentDir1% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +> +>Gui, Add, ListView, NoSort HwndListviewHwnd1 Count5000 r25 -WantF2 w%listViewWidth% -ReadOnly vvlistView1 glistViewEvents1 AltSubmit ,type|Name|Date|sortableDate|Size|sortableSize +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +> +>Gui, Add, ListView, r10 w%folderListViewWidth% y0 x+0 vfolderListView1_2 gfolderlistViewEvents1_2 AltSubmit ,Name +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +>Gui, Add, ListView, r10 w%folderListViewWidth% x+0 y0 vfolderlistView2_2 gfolderlistViewEvents2_2 AltSubmit ,Name +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +>Gui, Add, Edit, hwndEdithwnd2 r1 w%listViewWidth% y+0 x+-500 vvcurrentDirEdit2 gcurrentDirEdit2Changed, %EcurrentDir2% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>Gui, Add, ListView, NoSort HwndListviewHwnd2 Count5000 r25 -WantF2 w%listViewWidth% -ReadOnly vvlistView2 glistViewEvents2 AltSubmit ,type|Name|Date|sortableDate|Size|sortableSize +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +> +>OnMessage(0x4A, "WM_COPYDATA_READ") +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>OnMessage(0x111, "HandleMessage" ) +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>loop 2 { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Gui, ListView, vlistView%A_Index% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>LV_Colors.OnMessage() +#^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Colors.Attach(ListviewHwnd%A_Index%, 1, 0) +#^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>LV_ModifyCol(1,20) +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_ModifyCol(2,300) +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_ModifyCol(3,"50 Right") +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_ModifyCol(5,"80 Right") +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>LV_ModifyCol(2, "Logical") +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_ModifyCol(6,"Integer") +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>LV_ModifyCol(4,0) ; hides 3rd row +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>LV_ModifyCol(6,0) ; hides 3rd row +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>focused=flistView +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +>ImageListID%A_Index% := IL_Create(50) +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_SetImageList(ImageListID%A_Index%) ;desactivated this to test +#^^^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>Gui, Show,,ahk_explorer +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +>Gui, ListView, favoritesListView +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>favoriteFoldersNames:=[] +#^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>for k, v in favoriteFolders { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>SplitPath, v, OutFileName +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +>favoriteFoldersNames.Push(OutFileName) +#^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Add(, OutFileName) +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>renderCurrentDir() +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>run, "lib\FolderWatcher2.ahk",,,PID_FolderWatcher2 +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +> +>IServiceProvider := ComObjCreate("{C2F03A33-21F5-47FA-B4BB-156362A2F239}", "{6D5140C1-7436-11CE-8034-00AA006009FA}") +#^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>IVirtualDesktopManagerInternal := ComObjQuery(IServiceProvider, "{C5E0CDCA-7B6E-41B2-9FC4-D93975CC467B}", "{F31574D6-B682-4CDC-BD56-1827860ABEC6}") +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>MoveViewToDesktop := vtable(IVirtualDesktopManagerInternal, 4) ; void MoveViewToDesktop(object pView, IVirtualDesktop desktop); +#^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>GetCurrentDesktop := vtable(IVirtualDesktopManagerInternal, 6) ; IVirtualDesktop GetCurrentDesktop(); +#^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>ImmersiveShell := ComObjCreate("{C2F03A33-21F5-47FA-B4BB-156362A2F239}", "{00000000-0000-0000-C000-000000000046}") +#^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>if !(IApplicationViewCollection := ComObjQuery(ImmersiveShell,"{1841C6D7-4F9D-42C0-AF41-8747538F10E5}","{1841C6D7-4F9D-42C0-AF41-8747538F10E5}" ) ) ; 1607-1809 +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>MsgBox IApplicationViewCollection interface not supported. +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>GetViewForHwnd := vtable(IApplicationViewCollection, 6) ; (IntPtr hwnd, out IApplicationView view); +#^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^^^^^^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +> +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>; f3:: +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^ source.ahk comment.line.semicolon.ahk +>Process, Close, %PID_getFolderSizes% +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>Exitapp +#^^^^^^^ source.ahk keyword.control.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>;labels +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^ source.ahk comment.line.semicolon.ahk +>gsaveSettings: +#^^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>gui, settingsGui:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>gui, submit +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +>FileRecycle, %A_AppData%\ahk_explorer_settings\settings.txt +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +>FileAppend, %vsettings%, *%A_AppData%\ahk_explorer_settings\settings.txt +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +>loadSettings() +#^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>gsettings: +#^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>Gui, settingsGui:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>FileRead, settingsTxt, %A_AppData%\ahk_explorer_settings\settings.txt +#^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +>if (!settingsGuiCreated) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>settingsGuiCreated:=true +#^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>editSize:=[1000, 200] +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>textSize:=[190, editSize[2]] +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>editPos:=[textSize[1]+30, 50] +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>textPos:=[10, ZTrim(editPos[2]+1.5) ] +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>guiSize:=[editSize[1]+textSize[1]+20, editPos[2]+editSize[2]+10] +#^^^^^^^ source.ahk keyword.other.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>guiPos:=[A_ScreenWidth/2-guiSize[1]/2,A_ScreenHeight/2-guiSize[2]/2] +#^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>Gui,Font,s12 w500 q5, Consolas +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +> +>Gui, add, button, ggsaveSettings,Save Settings +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +>Gui,add,Text, % "x" textPos[1] " y" textPos[2] " w" textSize[1] " h" textSize[2], peazipPath`nvscodePath`nBGColorOfSelectedPane`nAhk2ExePath`nspekPath +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +>Gui,add,Edit, % "x" editPos[1] " y" editPos[2] " w" editSize[1] " h" editSize[2] " vvsettings -wrap",%settingsTxt% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Guicontrol, text, vsettings,%settingsTxt% +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>Gui,show, % "x" guiPos[1] " y" guiPos[2] " w" guiSize[1] " h" guiSize[2] ,set_settings_GUI +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>gChangeDrive: +#^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>index:=SubStr(A_GuiControl, 0) +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>EcurrentDir%whichSide%:=drives[index] ":" +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>renderCurrentDir() +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>multiRenameGuiGuiClose: +#^^^^^^^^^^^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>Gui, Destroy +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>gmultiRenameApply: +#^^^^^^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>multiRenameNames:=getMultiRenameNames() +#^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>multiRenameNamesBak:=multiRenameNames.Clone() +#^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>namesToMultiRenameBak:=namesToMultiRename.Clone() +#^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>for k, v in multiRenameNamesBak { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>toRenamePath := multiRenameDir "\" namesToMultiRenameBak[k] +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>renamedPath := multiRenameDir "\" v +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +> +>renamedPathExists:=fileExist(renamedPath) +#^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (renamedPathExists) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>p("name already taken", renamedPathExists) +#^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>break +#^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>toRenameExists:=fileExist(toRenamePath) +#^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (toRenameExists) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (InStr(toRenameExists, "D")) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>FileMoveDir, %toRenamePath%, %renamedPath% +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>FileMove, %toRenamePath%, %renamedPath% +#^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>if ErrorLevel { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>p("file", toRenamePath "could not be renamed to", renamedPath) +#^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>break +#^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>namesToMultiRename.RemoveAt(1) +#^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>multiRenameNames.RemoveAt(1) +#^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>p("file to rename:", toRenamePath, "doesn't exist anymore") +#^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>break +#^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>multiRenamelength:=namesToMultiRename.Length() +#^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (multiRenamelength) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Guicontrol, text, vmultiRenameTargets, % "|" array_ToVerticleBarString(namesToMultiRename) +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>Guicontrol, text, vmultiRenamePreview, % "|" array_ToVerticleBarString(multiRenameNames) +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Gui, Destroy +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>setWhichSideFromDir(multiRenameDir) +#^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>renderCurrentDir() ;refresh +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>gmultiRenamePreview: +#^^^^^^^^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>Guicontrol, text, vmultiRenamePreview, % "|" array_ToVerticleBarString(getMultiRenameNames()) +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>RemoveToolTip: +#^^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>ToolTip +#^^^^^^^ source.ahk support.function.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>TypingInRenameSimple: +#^^^^^^^^^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>Gui,Submit,NoHide +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^ source.ahk keyword.other.ahk +> +>Size:=10 +#^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^ source.ahk constant.numeric.ahk +>Gui,Fake:Font,s%Size%,Segoe UI +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +>Gui,Fake:Add,Text, -Wrap vDummy,% RenamingSimple +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>GuiControlGet,Pos,Fake:Pos,Dummy +#^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk variable.def.ahk +>Gui,Fake:Destroy +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +> +>if (posw+ 2 * Size>renameTextWidthLimit) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>renameTextWidthLimit:=(posw+ 2 * Size) + (8 * Size) +#^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>width:=renameTextWidthLimit +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>GuiControl Move,RenamingSimple, W%width% +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>Guiwidth:=width+2 +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +>Gui, Show, W%Guiwidth% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>if (!firstRename) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>firstRename:=true +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>SplitPath, TextBeingRenamed,, , , OutNameNoExt +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +>SendMessage,0xB1, 0, 0, , ahk_id %RenameHwnd% +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>fileExist:=fileExist(EcurrentDir%whichSide% "\" TextBeingRenamed) +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (InStr(fileExist, "D")) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>SendMessage, 0xB1,0,% StrLen(TextBeingRenamed),, ahk_id %RenameHwnd% ;select all +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>else +#^^^^ source.ahk keyword.control.ahk +>SendMessage, 0xB1,0,% StrLen(OutNameNoExt),, ahk_id %RenameHwnd% +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>ControlGet, Outvar ,CurrentCol,, Edit1 +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +>Outvar -=1 +#^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>Postmessage,0xB1, 0, 0, Edit1 ;move caret to front to pan +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>Postmessage,0xB1,%Outvar%,%Outvar%, Edit1 ;move caret back to end +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +> +>} +#^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>;renameLabel +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>grenameFileLabel: +#^^^^^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>fromButton:=true +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>renameFileLabel: +#^^^^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>if (canRename) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>gui, renameSimple:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>gui, submit +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +>gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>noRenameError:=true +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +> +>if not(TextBeingRenamed==RenamingSimple) { ;Case Sensitive +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>if (stuffByName[RenamingSimple].Count()) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>noRenameError:=false +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +>p("file with same name") +#^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>SourcePath:=EcurrentDir%whichSide% "\" TextBeingRenamed +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>fileExist:=FileExist(SourcePath) +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (fileExist) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>DestPath:=EcurrentDir%whichSide% "\" RenamingSimple +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +> +>if (TextBeingRenamed=RenamingSimple) { ;only different capitalization +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>randomPath:=generateRandomUniqueName(SourcePath,isDir) +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>if (isDir) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>FileMoveDir, %SourcePath%, %randomPath% +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>FileMove, %SourcePath%, %randomPath% +#^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>if ErrorLevel { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>noRenameError:=false +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +>p("file could not be renamed:illegal name or file in use") +#^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>SoundPlay, *-1 +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +> +>SourcePath:=randomPath +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>if (InStr(fileExist, "D")) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>FileMoveDir, %SourcePath%, %DestPath% +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>; p("FileMove") +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>FileMove, %SourcePath%, %DestPath% +#^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>if ErrorLevel { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>noRenameError:=false +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +>p("file could not be renamed:illegal name or file in use") +#^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>SoundPlay, *-1 +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>if (noRenameError) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>canRename:=false +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +>gui, renameSimple:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>gui, destroy +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +> +>gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>if (fromButton) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>ControlFocus,, % "ahk_id " ListviewHwnd%whichSide% +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +> +>gui, show +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +> +>gui, renameSimple:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>gui, show,,renamingWinTitle +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>fromButton:=false +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>mainGuiClose: +#^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>if GetKeyState("Shift") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Process, Close, %PID_getFolderSizes% +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>Process, Close, %PID_FolderWatcher2% +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>Exitapp +#^^^^^^^ source.ahk keyword.control.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Process, Close, %PID_getFolderSizes% +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>windowHidden:=true +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>Gui, hide +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>couldNotCreateFolder() +#^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>Gui, createFolder:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>creatingNewFolder:=true +#^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>dontSearch:=true +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>ControlSetText,, %createFolderName%, ahk_id %folderCreationHwnd% +#^^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>SendMessage, 0xB1, 0, -1,, % "ahk_id " folderCreationHwnd +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>gui, createFolder: show,, create_folder +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +>dontSearch:=false +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>;new folder +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>;create folder +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>createLabel: +#^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>gui, createFolder: submit +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +>toCreate:=EcurrentDir%whichSide% "\" createFolderName +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>if (!fileExist(toCreate)) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>FileCreateDir, %toCreate% +#^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>if (ErrorLevel) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>SoundPlay, *16 +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^ source.ahk constant.numeric.ahk +>p("Could not create Folder, illegal name or idk") +#^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>couldNotCreateFolder() +#^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>SoundPlay, *-1 +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>SoundPlay, *16 +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^ source.ahk constant.numeric.ahk +>p("folder already exists") +#^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>couldNotCreateFolder() +#^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>createAndOpenLabel: +#^^^^^^^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>gui, createFolder: submit +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +>toCreate:=EcurrentDir%whichSide% "\" createFolderName +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>if (!fileExist(toCreate)) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>FileCreateDir, %toCreate% +#^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>if (ErrorLevel) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>SoundPlay, *16 +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^ source.ahk constant.numeric.ahk +>p("Could not create Folder, illegal name or idk") +#^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>couldNotCreateFolder() +#^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>EcurrentDir%whichSide%:=toCreate +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>renderCurrentDir() +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>SoundPlay, *-1 +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>SoundPlay, *16 +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^ source.ahk constant.numeric.ahk +>p("folder already exists") +#^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>couldNotCreateFolder() +#^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>gfavoritesListView: +#^^^^^^^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>if (A_GuiEvent = "DoubleClick") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Gui, ListView, favoritesListView +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>doubleClickedFolderOrFile(favoriteFolders[A_EventInfo]) +#^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else if (A_GuiEvent="ColClick") { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>path=%A_AppData%\ahk_explorer_settings\favoriteFolders.txt +#^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +>toRun:= """" vscodePath """ """ path """" +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>run, %toRun% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>folderlistViewEvents1_1: +#^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>folderlistViewEvents2_1: +#^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>folderlistViewEvents1_2: +#^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>folderlistViewEvents2_2: +#^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>whichSide:=SubStr(A_GuiControl, 0) +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>num:=SubStr(A_GuiControl, 15, 1) +#^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>whichParent:=(num=1) ? 2 : 1 +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>Gui, Show,NA,% EcurrentDir%whichSide% " - ahk_explorer" +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +> +>if (A_GuiEvent="ColClick") +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>EcurrentDir%whichSide%:=parent%whichParent%Dir%whichSide% +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>renderCurrentDir() +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else if (A_GuiEvent = "DoubleClick") { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>EcurrentDir%whichSide%:=parent%whichParent%DirDirs%whichSide%[A_EventInfo] +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +>renderCurrentDir() +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>currentDirEdit1Changed: +#^^^^^^^^^^^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>currentDirEdit2Changed: +#^^^^^^^^^^^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>SetTimer, currentDirEdit1ChangedTimer, -0 +#^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>currentDirEdit1ChangedTimer: +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>gui, submit, nohide +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +>if (focused="searchCurrentDirEdit") +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>if (vcurrentDirEdit%whichSide%!=lastEditText) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>lastEditText:=vcurrentDirEdit%whichSide% +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>if (!submittingGui) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>searchString%whichSide%:=vcurrentDirEdit%whichSide% +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>searchInCurrentDir() +#^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>p(6456) +#^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>queueSubmitGui:=true +#^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>listViewEvents1: +#^^^^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>listViewEvents2: +#^^^^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>; whichSide:=SubStr(A_GuiControl, 0) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>if (A_GuiEvent=="D") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>selectedPaths:=getSelectedPaths() +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>if (GetKeyState("Alt")) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>FileToClipboard(selectedPaths, "cut") +#^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>FileToClipboard(selectedPaths) +#^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>Cursors := [] +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>Cursors[1] := DllCall("LoadCursor", "Ptr", 0, "Ptr", 32515, "UPtr") ; DROPEFFECT_COPY = IDC_CROSS +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>Cursors[2] := DllCall("LoadCursor", "Ptr", 0, "Ptr", 32516, "UPtr") ; DROPEFFECT_MOVE = IDC_UPARROW +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>Cursors[3] := DllCall("LoadCursor", "Ptr", 0, "Ptr", 32648, "UPtr") ; Copy or Move = IDC_NO +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>DoDragDrop(Cursors) +#^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else if (A_GuiEvent=="F") { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>whichSide:=SubStr(A_GuiControl, 0) +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>Gui, Show,NA,% EcurrentDir%whichSide% " - ahk_explorer" +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +> +>If (ICELV%whichSide%["Changed"]) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Msg := "" +#^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>p(ICELV%whichSide%.Changed["Txt"]) +#^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>ICELV%whichSide%.Remove("Changed") +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else if (A_GuiEvent=="e") { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>whichSide:=SubStr(A_GuiControl, 0) +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>focused:="flistView" +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>LV_GetText(OutputVar,A_EventInfo,2) +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>for k, v in stuffByName +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>if (v=renaming) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>SourcePath:=filePaths[k] +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>DestPath:=EcurrentDir%whichSide% "\" OutputVar +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +>stuffByName[k]:=OutputVar +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +>filePaths[k]:=DestPath +#^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +>fileExist:=FileExist(SourcePath) +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (fileExist) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (InStr(fileExist, "D")) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>FileMoveDir, %SourcePath%, %DestPath% +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>FileMove, %SourcePath%, %DestPath% +#^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else if (A_GuiEvent=="E") { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>focused:="renaming" +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>LV_GetText(OutputVar,A_EventInfo,2) +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>renaming:=OutputVar +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +>SplitPath, OutputVar, , , OutExtension, OutNameNoExt +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +>if (OutNameNoExt) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Postmessage,0xB1, 0, % StrLen(OutNameNoExt), Edit2 +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Postmessage,0xB1, 1, % StrLen(OutExtension)+1, Edit2 +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else if (A_GuiEvent = "DoubleClick") +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>if (!canRename) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>doubleClickedNormal(A_EventInfo) +#^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else if (A_GuiEvent=="K") ;key pressed +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>if (!dontSearch) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>whichSide:=SubStr(A_GuiControl, 0) +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>ControlFocus,, % "ahk_id " ListviewHwnd%whichSide% +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>Gui, ListView, vlistView%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +> +>key := GetKeyName(Format("vk{:x}", A_EventInfo)) +#^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (key="Backspace") +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else if (key="f2") { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>canRename:=true +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>; focused:="renaming" +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>firstRename:=false +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +>fromButton:=false +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +>renameTextWidthLimit:=200 +#^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^ source.ahk constant.numeric.ahk +> +>row:=LV_GetNext("") +#^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_GetText(TextBeingRenamed, row, 2) +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>ICELV%whichSide%.EditCell(row, 2) +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>sleep, 25 +#^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +>WinGetPos, xpos, ypos,,,% ahk_explorer ahk_class AutoHotkeyGUI +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +>if (whichSide=1) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>xpos+=161 +#^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^ source.ahk constant.numeric.ahk +>else +#^^^^ source.ahk keyword.control.ahk +>xpos+=161+listViewWidth +#^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^ source.ahk constant.numeric.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +> +>ypos+=A_CaretY - 5 +#^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>Gui, renameSimple:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>Gui,Font, s10, Segoe UI +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +>Gui, Margin , 0,0,0,0 +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +>gui, add, edit,y2 r1 w%renameTextWidthLimit% -wrap gTypingInRenameSimple vRenamingSimple hwndRenameHwnd, %TextBeingRenamed% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>Gui, Add, Button, Hidden Default ggrenameFileLabel +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +> +>gui, show, X%xpos% Y%ypos% h0,renamingWinTitle +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>WinSet, Style, -0xC00000,a ; remove the titlebar and border(s) +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +> +>gosub, TypingInRenameSimple +#^^^^^ source.ahk golabel.ahk support.function.ahk +# ^^ source.ahk golabel.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk golabel.ahk entity.name.function.label.ahk +> +>return +#^^^^^^ source.ahk keyword.control.ahk +>sleep, 500 +#^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk constant.numeric.ahk +> +>LV_GetText(OutputVar,A_EventInfo,2) +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>SplitPath, OutputVar, , , OutExtension, OutNameNoExt +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +>if (OutNameNoExt) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Postmessage,0xB1, 0, % StrLen(OutNameNoExt), Edit2 +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Postmessage,0xB1, 1, % StrLen(OutExtension)+1, Edit2 +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else if (key="Lwin") { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>} +#^ source.ahk punctuation.bracket.ahk +>else if (key="NumpadRight") { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>} +#^ source.ahk punctuation.bracket.ahk +>else if (key="NumpadLeft") { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>} +#^ source.ahk punctuation.bracket.ahk +>else if (key="NumpadUp") { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>} +#^ source.ahk punctuation.bracket.ahk +>else if (key="NumpadDown") { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>} +#^ source.ahk punctuation.bracket.ahk +>else if (key="Alt") { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>} +#^ source.ahk punctuation.bracket.ahk +>else if (key="Control") { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>} +#^ source.ahk punctuation.bracket.ahk +>else if (key="Shift") { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>} else if (key="F1") { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>send, {f1} +#^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^ source.ahk keyword.keys.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else if (key="F3") { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>send, {f3} +#^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^ source.ahk keyword.keys.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else if (key="F4") { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>; send, {f4} +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else if (key="\") { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else if (key="NumpadEnd") { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else if (key="Numpad0") { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else if (key="NumpadHome") { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else if (key="NumpadPgDn") { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else if (key="NumpadPgUp") { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else if (key="]") { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else if (key="NumpadDel") { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>selectedNames:=getSelectedNames() +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>for k, v in getSelectedNames() { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>finalStr:="""" A_AhkPath """ ""lib\fileRecycle_one.ahk"" """ EcurrentDir%whichSide% "\" v """" +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>run, %finalStr% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>return +#^^^^^^ source.ahk keyword.control.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (focused!="searchCurrentDirEdit") +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>ShiftIsDown := GetKeyState("Shift") +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>CtrlIsDown := GetKeyState("Ctrl") +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>if (CtrlIsDown and !ShiftIsDown) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (key="c") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>selectedPaths:=getSelectedPaths() +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>FileToClipboard(selectedPaths) +#^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>SoundPlay, *-1 +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else if (key="x") { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>selectedPaths:=getSelectedPaths() +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>FileToClipboard(selectedPaths, "cut") +#^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>SoundPlay, *-1 +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +>} else if (key="v") +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>pasteFile() +#^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>} else if (key="a") { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>loop % LV_GetCount() +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>LV_Modify(A_Index, "+Select") ; select +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else if (key="h") { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>} +#^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>} else if (ShiftIsDown and !CtrlIsDown) { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (key="F10") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>selectedNames:=getSelectedNames() +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>ShellContextMenu(EcurrentDir%whichSide%,selectedNames) +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else if (CtrlIsDown and ShiftIsDown) { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (key="x") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>for k, v in getSelectedNames() ;extract using 7zip, 7-zip +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>SplitPath, v,,,, OutNameNoExt +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +>runwait, % "lib\7z x """ EcurrentDir%whichSide% "\" v """ -o""" EcurrentDir%whichSide% "\" OutNameNoExt """ -spe",,Hide +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk keyword.other.ahk +>; runwait, """" peazipPath """ -ext2folder """ EcurrentDir%whichSide% "\" v """" +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>soundplay, *-1 +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +>EcurrentDir%whichSide%:=EcurrentDir%whichSide% "\" OutNameNoExt +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +>renderCurrentDir() +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>} else if (key="d") { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>files:=array_ToSpacedString(getSelectedPaths()) +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>runwait, "%peazipPath%" -add2archive %files% +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>soundplay, *-1 +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +>renderCurrentDir() ;refresh +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>} else if (key="v") { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (DllCall("IsClipboardFormatAvailable", "UInt", CF_HDROP := 15)) { ; file being copied +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>if (DllCall("IsClipboardFormatAvailable", "UInt", dropEffectFormat)) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (DllCall("OpenClipboard", "Ptr", A_ScriptHwnd)) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (data := DllCall("GetClipboardData", "UInt", dropEffectFormat, "Ptr")) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (effect := DllCall("GlobalLock", "Ptr", data, "UInt*")) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (effect & DROPEFFECT_COPY) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>files:=StrSplit(clipboard, "`n","`r") +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>for k, v in files { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>fileExist:=FileExist(v) +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (fileExist) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>SplitPath, v , OutFileName +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +>dest:=EcurrentDir%whichSide% +#^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>Run, TeraCopy.exe Copy "%v%" "%dest%" +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>; renderCurrentDir() +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>SoundPlay, *-1 +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>; action:="copy" +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>else if (effect & DROPEFFECT_MOVE) { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>p("no move") +#^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>; action:="move" +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>DllCall("GlobalUnlock", "Ptr", data) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>DllCall("CloseClipboard") +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>if (CtrlIsDown or ShiftIsDown) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>focused=searchCurrentDirEdit +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>GuiControl, Focus, vcurrentDirEdit%whichSide% +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>GuiControl, Text, vcurrentDirEdit%whichSide%,% searchString%whichSide% key +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +>SendMessage, 0xB1, -2, -1,, % "ahk_id " Edithwnd%whichSide% +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else if (A_GuiEvent="RightClick") { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>selectedNames:=getSelectedNames() +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>ShellContextMenu(EcurrentDir%whichSide%,selectedNames) +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else if (A_GuiEvent="ColClick") +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>whichSide:=SubStr(A_GuiControl, 0) +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>columnsToSort:=[1,2,4,6] +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (A_EventInfo=1) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (!foldersFirst) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>foldersFirst:=true +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>sortColumn(1, "SortDesc") +#^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>foldersFirst:=false +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +>sortColumn(1, "Sort") +#^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else if (A_EventInfo=2) { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (!A_ZSort%whichSide%) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>A_ZSort%whichSide%:=true +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>sortColumn(2, "Sort") +#^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>A_ZSort%whichSide%:=false +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +>sortColumn(2, "SortDesc") +#^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else if (A_EventInfo=3) { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (!oldNew%whichSide%) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>whichsort%whichSide%:="oldNew" +#^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>oldNew%whichSide%:=true +#^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>renderFunctionsToSort(sortedByDate%whichSide%, true) +#^^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>whichsort%whichSide%:="newOld" +#^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>oldNew%whichSide%:=false +#^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +>renderFunctionsToSort(sortedByDate%whichSide%) +#^^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else if (A_EventInfo=5) { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (canSortBySize%whichSide%) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (!bigSmall%whichSide%) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>whichsort%whichSide%:="bigSmall" +#^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>bigSmall%whichSide%:=true +#^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>renderFunctionsToSort(sortedBySize%whichSide%) +#^^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>whichsort%whichSide%:="smallBig" +#^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>bigSmall%whichSide%:=false +#^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +>renderFunctionsToSort(sortedBySize%whichSide%, true) +#^^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>return +#^^^^^^ source.ahk keyword.control.ahk +>;includes +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^ source.ahk comment.line.semicolon.ahk +>#include +#^^^^^^^^ source.ahk keyword.control.import.ahk +# ^^^^^^^^^^^^^^^^^^^^^^ source.ahk keyword.control.import.ahk string.parameter.import.ahk +>#include +#^^^^^^^^ source.ahk keyword.control.import.ahk +# ^^^^^^^^^^ source.ahk keyword.control.import.ahk string.parameter.import.ahk +>;Classes +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>; ====================================================================================================================== +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Namespace: LV_Colors +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Function: Helper object and functions for ListView row and cell coloring +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Testted with: AHK 1.1.15.04 (A32/U32/U64) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Tested on: Win 8.1 (x64) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Changelog: +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; 0.5.00.00/2014-08-13/just me - changed 'static mode' handling +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; 0.4.01.00/2013-12-30/just me - minor bug fix +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; 0.4.00.00/2013-12-30/just me - added static mode +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; 0.3.00.00/2013-06-15/just me - added "Critical, 100" to avoid drawing issues +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; 0.2.00.00/2013-01-12/just me - bugfixes and minor changes +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; 0.1.00.00/2012-10-27/just me - initial release +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; ====================================================================================================================== +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; CLASS LV_Colors +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +>; The class provides seven public methods to register / unregister coloring for ListView controls, to set individual +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; colors for rows and/or cells, to prevent/allow sorting and rezising dynamically, and to register / unregister the +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; included message handler function for WM_NOTIFY -> NM_CUSTOMDRAW messages. +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +>; If you want to use the included message handler you must call LV_Colors.OnMessage() once. +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Otherwise you should integrate the code within LV_Colors_WM_NOTIFY into your own notification handler. +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Without notification handling coloring won't work. +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; ====================================================================================================================== +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>Class LV_Colors { +#^^^^^ source.ahk labelline.ahk keyword.class.ahk +# ^ source.ahk labelline.ahk +# ^^^^^^^^^ source.ahk labelline.ahk support.class.ahk +# ^ source.ahk labelline.ahk +# ^ source.ahk punctuation.bracket.ahk +>; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; PRIVATE PROPERTIES ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>Static MessageHandler := "LV_Colors_WM_NOTIFY" +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>Static WM_NOTIFY := 0x4E +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.numeric.ahk +>Static SubclassProc := RegisterCallback("LV_Colors_SubclassProc") +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; PUBLIC PROPERTIES ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Static Critical := 0 +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>Static Critical := 100 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^ source.ahk constant.numeric.ahk +>; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; META FUNCTIONS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>__New(P*) { +#^^^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>Return False ; There is no reason to instantiate this class! +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^ source.ahk constant.language.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; PRIVATE METHODS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>On_NM_CUSTOMDRAW(H, L) { +#^^^^^^^^^^^^^^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>Static CDDS_PREPAINT := 0x00000001 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk constant.numeric.ahk +>Static CDDS_ITEMPREPAINT := 0x00010001 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk constant.numeric.ahk +>Static CDDS_SUBITEMPREPAINT := 0x00030001 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk constant.numeric.ahk +>Static CDRF_DODEFAULT := 0x00000000 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk constant.numeric.ahk +>Static CDRF_NEWFONT := 0x00000002 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk constant.numeric.ahk +>Static CDRF_NOTIFYITEMDRAW := 0x00000020 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk constant.numeric.ahk +>Static CDRF_NOTIFYSUBITEMDRAW := 0x00000020 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk constant.numeric.ahk +>Static CLRDEFAULT := 0xFF000000 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk constant.numeric.ahk +>; Size off NMHDR structure +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>Static NMHDRSize := (2 * A_PtrSize) + 4 + (A_PtrSize - 4) +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>; Offset of dwItemSpec (NMCUSTOMDRAW) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>Static ItemSpecP := NMHDRSize + (5 * 4) + A_PtrSize + (A_PtrSize - 4) +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>; Size of NMCUSTOMDRAW structure +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>Static NCDSize := NMHDRSize + (6 * 4) + (3 * A_PtrSize) + (2 * (A_PtrSize - 4)) +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>; Offset of clrText (NMLVCUSTOMDRAW) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>Static ClrTxP := NCDSize +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +>; Offset of clrTextBk (NMLVCUSTOMDRAW) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>Static ClrTxBkP := ClrTxP + 4 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>; Offset of iSubItem (NMLVCUSTOMDRAW) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>Static SubItemP := ClrTxBkP + 4 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>; Offset of clrFace (NMLVCUSTOMDRAW) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>Static ClrBkP := SubItemP + 8 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>DrawStage := NumGet(L + NMHDRSize, 0, "UInt") +#^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>, Row := NumGet(L + ItemSpecP, 0, "UPtr") + 1 +#^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>, Col := NumGet(L + SubItemP, 0, "Int") + 1 +#^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>If This[H].IsStatic +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +>Row := This.MapIndexToID(H, Row) +#^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>; SubItemPrepaint ------------------------------------------------------------------------------------------------ +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>If (DrawStage = CDDS_SUBITEMPREPAINT) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>NumPut(This[H].CurTX, L + ClrTxP, 0, "UInt"), NumPut(This[H].CurTB, L + ClrTxBkP, 0, "UInt") +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>, NumPut(This[H].CurBK, L + ClrBkP, 0, "UInt") +#^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>ClrTx := This[H].Cells[Row][Col].T, ClrBk := This[H].Cells[Row][Col].B +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +>If (ClrTx <> "") +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>NumPut(ClrTX, L + ClrTxP, 0, "UInt") +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>If (ClrBk <> "") +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>NumPut(ClrBk, L + ClrTxBkP, 0, "UInt"), NumPut(ClrBk, L + ClrBkP, 0, "UInt") +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>If (Col > This[H].Cells[Row].MaxIndex()) && !This[H].HasKey(Row) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return CDRF_DODEFAULT +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>Return CDRF_NOTIFYSUBITEMDRAW +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>; ItemPrepaint --------------------------------------------------------------------------------------------------- +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>If (DrawStage = CDDS_ITEMPREPAINT) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>This[H].CurTX := This[H].TX, This[H].CurTB := This[H].TB, This[H].CurBK := This[H].BK +#^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +>ClrTx := ClrBk := "" +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>If This[H].Rows.HasKey(Row) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>ClrTx := This[H].Rows[Row].T, ClrBk := This[H].Rows[Row].B +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +>If (ClrTx <> "") +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>NumPut(ClrTx, L + ClrTxP, 0, "UInt"), This[H].CurTX := ClrTx +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +>If (ClrBk <> "") +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>NumPut(ClrBk, L + ClrTxBkP, 0, "UInt") , NumPut(ClrBk, L + ClrBkP, 0, "UInt") +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>, This[H].CurTB := ClrBk, This[H].CurBk := ClrBk +#^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +>If This[H].Cells.HasKey(Row) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return CDRF_NOTIFYSUBITEMDRAW +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>Return CDRF_DODEFAULT +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>; Prepaint ------------------------------------------------------------------------------------------------------- +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>If (DrawStage = CDDS_PREPAINT) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return CDRF_NOTIFYITEMDRAW +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>; Others --------------------------------------------------------------------------------------------------------- +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>Return CDRF_DODEFAULT +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>; ------------------------------------------------------------------------------------------------------------------- +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>MapIndexToID(HWND, Row) { +#^^^^^^^^^^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^^^^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>; LVM_MAPINDEXTOID = 0x10B4 -> http://msdn.microsoft.com/en-us/library/bb761139(v=vs.85).aspx +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>SendMessage, 0x10B4, % (Row - 1), 0, , % "ahk_id " . HWND +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^^^ source.ahk +# ^^^^ source.ahk variable.def.ahk +>Return ErrorLevel +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk constant.language.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; PUBLIC METHODS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; =================================================================================================================== +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Attach() Register ListView control for coloring +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Parameters: HWND - ListView's HWND. +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Optional ------------------------------------------------------------------------------------------ +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; StaticMode - Static color assignment, i.e. the colors will be assigned permanently to a row +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; rather than to a row number. +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Values: True / False +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Default: False +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; NoSort - Prevent sorting by click on a header item. +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Values: True / False +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Default: True +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; NoSizing - Prevent resizing of columns. +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Values: True / False +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Default: True +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Return Values: True on success, otherwise false. +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; =================================================================================================================== +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>Attach(HWND, StaticMode := False, NoSort := True, NoSizing := True) { +#^^^^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^^^^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^^^^^^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^^^^ source.ahk functionline.ahk +# ^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^^^^ source.ahk functionline.ahk +# ^^^^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^^^^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^^^^ source.ahk functionline.ahk +# ^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>Static LVM_GETBKCOLOR := 0x1000 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk constant.numeric.ahk +>Static LVM_GETHEADER := 0x101F +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk constant.numeric.ahk +>Static LVM_GETTEXTBKCOLOR := 0x1025 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk constant.numeric.ahk +>Static LVM_GETTEXTCOLOR := 0x1023 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk constant.numeric.ahk +>Static LVM_SETEXTENDEDLISTVIEWSTYLE := 0x1036 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk constant.numeric.ahk +>Static LVS_EX_DOUBLEBUFFER := 0x00010000 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk constant.numeric.ahk +>If !DllCall("User32.dll\IsWindow", "Ptr", HWND, "UInt") +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return False +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^ source.ahk constant.language.ahk +>If This.HasKey(HWND) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return False +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^ source.ahk constant.language.ahk +>; Set LVS_EX_DOUBLEBUFFER style to avoid drawing issues, if it isn't set as yet. +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>SendMessage, % LVM_SETEXTENDEDLISTVIEWSTYLE, % LVS_EX_DOUBLEBUFFER, % LVS_EX_DOUBLEBUFFER, , % "ahk_id " . HWND +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^^^ source.ahk +# ^^^^ source.ahk variable.def.ahk +>If (ErrorLevel = "FAIL") +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return False +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^ source.ahk constant.language.ahk +>; Get the default colors +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>SendMessage, % LVM_GETBKCOLOR, 0, 0, , % "ahk_id " . HWND +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^^^ source.ahk +# ^^^^ source.ahk variable.def.ahk +>BkClr := ErrorLevel +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk constant.language.ahk +>SendMessage, % LVM_GETTEXTBKCOLOR, 0, 0, , % "ahk_id " . HWND +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^^^ source.ahk +# ^^^^ source.ahk variable.def.ahk +>TBClr := ErrorLevel +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk constant.language.ahk +>SendMessage, % LVM_GETTEXTCOLOR, 0, 0, , % "ahk_id " . HWND +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^^^ source.ahk +# ^^^^ source.ahk variable.def.ahk +>TxClr := ErrorLevel +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk constant.language.ahk +>; Get the header control +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>SendMessage, % LVM_GETHEADER, 0, 0, , % "ahk_id " . HWND +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^^^ source.ahk +# ^^^^ source.ahk variable.def.ahk +>Header := ErrorLevel +#^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk constant.language.ahk +>; Store the values in a new object +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>This[HWND] := {BK: BkClr, TB: TBClr, TX: TxClr, Header: Header, IsStatic: !!StaticMode} +#^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>If (NoSort) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.bracket.ahk +>This.NoSort(HWND) +#^^^^ source.ahk support.class.ahk +# ^ source.ahk +# ^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>If (NoSizing) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>This.NoSizing(HWND) +#^^^^ source.ahk support.class.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return True +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.language.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>; =================================================================================================================== +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Detach() Unregister ListView control +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Parameters: HWND - ListView's HWND +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Return Value: Always True +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; =================================================================================================================== +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>Detach(HWND) { +#^^^^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>; Remove the subclass, if any +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>Static LVM_GETITEMCOUNT := 0x1004 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk constant.numeric.ahk +>If (This[HWND].SC) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>DllCall("Comctl32.dll\RemoveWindowSubclass", "Ptr", HWND, "Ptr", This.SubclassProc, "Ptr", HWND) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>This.Remove(HWND, "") +#^^^^ source.ahk support.class.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>WinSet, Redraw, , % "ahk_id " . HWND +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^^^ source.ahk +# ^^^^ source.ahk variable.def.ahk +>Return True +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.language.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>; =================================================================================================================== +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Row() Set background and/or text color for the specified row +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Parameters: HWND - ListView's HWND +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Row - Row number +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Optional ------------------------------------------------------------------------------------------ +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; BkColor - Background color as RGB color integer (e.g. 0xFF0000 = red) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Default: Empty -> default background color +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; TxColor - Text color as RGB color integer (e.g. 0xFF0000 = red) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Default: Empty -> default text color +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Return Value: True on success, otherwise false. +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; =================================================================================================================== +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>Row(HWND, Row, BkColor := "", TxColor := "") { +#^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^^^^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^^^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^^^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^^^^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk functionline.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^^ source.ahk functionline.ahk +# ^^^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^^^^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk functionline.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>If !This.HasKey(HWND) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return False +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^ source.ahk constant.language.ahk +>If This[HWND].IsStatic +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +>Row := This.MapIndexToID(HWND, Row) +#^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>If (BkColor = "") && (TxColor = "") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>This[HWND].Rows.Remove(Row, "") +#^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return True +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.language.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>BkBGR := TxBGR := "" +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>If BkColor Is Integer +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>BkBGR := ((BkColor & 0xFF0000) >> 16) | (BkColor & 0x00FF00) | ((BkColor & 0x0000FF) << 16) +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>If TxColor Is Integer +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>TxBGR := ((TxColor & 0xFF0000) >> 16) | (TxColor & 0x00FF00) | ((TxColor & 0x0000FF) << 16) +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>If (BkBGR = "") && (TxBGR = "") +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return False +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^ source.ahk constant.language.ahk +>If !This[HWND].HasKey("Rows") +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>This[HWND].Rows := {} +#^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>If !This[HWND].Rows.HasKey(Row) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>This[HWND].Rows[Row] := {} +#^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>If (BkBGR <> "") +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>This[HWND].Rows[Row].Insert("B", BkBGR) +#^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>If (TxBGR <> "") +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>This[HWND].Rows[Row].Insert("T", TxBGR) +#^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return True +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.language.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>; =================================================================================================================== +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Cell() Set background and/or text color for the specified cell +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Parameters: HWND - ListView's HWND +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Row - Row number +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Col - Column number +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Optional ------------------------------------------------------------------------------------------ +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; BkColor - Background color as RGB color integer (e.g. 0xFF0000 = red) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Default: Empty -> default background color +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; TxColor - Text color as RGB color integer (e.g. 0xFF0000 = red) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Default: Empty -> default text color +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Return Value: True on success, otherwise false. +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; =================================================================================================================== +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>Cell(HWND, Row, Col, BkColor := "", TxColor := "") { +#^^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^^^^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^^^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^^^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^^^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^^^^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk functionline.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^^ source.ahk functionline.ahk +# ^^^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^^^^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk functionline.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>If !This.HasKey(HWND) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return False +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^ source.ahk constant.language.ahk +>If This[HWND].IsStatic +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +>Row := This.MapIndexToID(HWND, Row) +#^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>If (BkColor = "") && (TxColor = "") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>This[HWND].Cells.Remove(Row, "") +#^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return True +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.language.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>BkBGR := TxBGR := "" +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>If BkColor Is Integer +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>BkBGR := ((BkColor & 0xFF0000) >> 16) | (BkColor & 0x00FF00) | ((BkColor & 0x0000FF) << 16) +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>If TxColor Is Integer +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>TxBGR := ((TxColor & 0xFF0000) >> 16) | (TxColor & 0x00FF00) | ((TxColor & 0x0000FF) << 16) +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>If (BkBGR = "") && (TxBGR = "") +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return False +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^ source.ahk constant.language.ahk +>If !This[HWND].HasKey("Cells") +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>This[HWND].Cells := {} +#^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>If !This[HWND].Cells.HasKey(Row) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>This[HWND].Cells[Row] := {} +#^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>This[HWND].Cells[Row, Col] := {} +#^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>If (BkBGR <> "") +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>This[HWND].Cells[Row, Col].Insert("B", BkBGR) +#^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>If (TxBGR <> "") +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>This[HWND].Cells[Row, Col].Insert("T", TxBGR) +#^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return True +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.language.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>; =================================================================================================================== +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; NoSort() Prevent / allow sorting by click on a header item dynamically. +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Parameters: HWND - ListView's HWND +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Optional ------------------------------------------------------------------------------------------ +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Apply - True / False +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Default: True +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Return Value: True on success, otherwise false. +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; =================================================================================================================== +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>NoSort(HWND, Apply := True) { +#^^^^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^^^^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^^^^ source.ahk functionline.ahk +# ^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>Static HDM_GETITEMCOUNT := 0x1200 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk constant.numeric.ahk +>If !This.HasKey(HWND) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return False +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^ source.ahk constant.language.ahk +>If (Apply) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>This[HWND].NS := True +#^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.language.ahk +>Else +#^^^^ source.ahk keyword.control.ahk +>This[HWND].Remove("NS") +#^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return True +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.language.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>; =================================================================================================================== +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; NoSizing() Prevent / allow resizing of columns dynamically. +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Parameters: HWND - ListView's HWND +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Optional ------------------------------------------------------------------------------------------ +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Apply - True / False +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Default: True +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Return Value: True on success, otherwise false. +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; =================================================================================================================== +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>NoSizing(HWND, Apply := True) { +#^^^^^^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^^^^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^^^^ source.ahk functionline.ahk +# ^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>Static OSVersion := DllCall("Kernel32.dll\GetVersion", "UChar") +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>Static HDS_NOSIZING := 0x0800 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk constant.numeric.ahk +>If !This.HasKey(HWND) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return False +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^ source.ahk constant.language.ahk +>HHEADER := This[HWND].Header +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +>If (Apply) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>If (OSVersion < 6) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>If !(This[HWND].SC) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>DllCall("Comctl32.dll\SetWindowSubclass", "Ptr", HWND, "Ptr", This.SubclassProc, "Ptr", HWND, "Ptr", 0) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>This[HWND].SC := True +#^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.language.ahk +>} Else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return True +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.language.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} Else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Control, Style, +%HDS_NOSIZING%, , ahk_id %HHEADER% +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} Else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>If (OSVersion < 6) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>If (This[HWND].SC) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>DllCall("Comctl32.dll\RemoveWindowSubclass", "Ptr", HWND, "Ptr", This.SubclassProc, "Ptr", HWND) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>This[HWND].Remove("SC") +#^^^^ source.ahk support.class.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} Else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return True +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.language.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} Else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Control, Style, -%HDS_NOSIZING%, , ahk_id %HHEADER% +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>Return True +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.language.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>; =================================================================================================================== +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; OnMessage() Register / unregister LV_Colors message handler for WM_NOTIFY -> NM_CUSTOMDRAW messages +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Parameters: Apply - True / False +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Default: True +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Return Value: Always True +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; =================================================================================================================== +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>OnMessage(Apply := True) { +#^^^^^^^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^^^^ source.ahk functionline.ahk +# ^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>If (Apply) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>OnMessage(This.WM_NOTIFY, This.MessageHandler) +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>Else If (This.MessageHandler = OnMessage(This.WM_NOTIFY)) +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>OnMessage(This.WM_NOTIFY, "") +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk support.class.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return True +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.language.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>; ====================================================================================================================== +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; PRIVATE FUNCTION LV_Colors_WM_NOTIFY() - message handler for WM_NOTIFY -> NM_CUSTOMDRAW notifications +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; ====================================================================================================================== +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>LV_Colors_WM_NOTIFY(W, L) { +#^^^^^^^^^^^^^^^^^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>Static NM_CUSTOMDRAW := -12 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^ source.ahk constant.numeric.ahk +>Static LVN_COLUMNCLICK := -108 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^ source.ahk constant.numeric.ahk +>Critical, % LV_Colors.Critical +#^^^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +>If LV_Colors.HasKey(H := NumGet(L + 0, 0, "UPtr")) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>M := NumGet(L + (A_PtrSize * 2), 0, "Int") +#^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>; NM_CUSTOMDRAW -------------------------------------------------------------------------------------------------- +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>If (M = NM_CUSTOMDRAW) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return LV_Colors.On_NM_CUSTOMDRAW(H, L) +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>; LVN_COLUMNCLICK ------------------------------------------------------------------------------------------------ +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>If (LV_Colors[H].NS && (M = LVN_COLUMNCLICK)) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return 0 +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>; ====================================================================================================================== +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; PRIVATE FUNCTION LV_Colors_SubclassProc() - subclass for WM_NOTIFY -> HDN_BEGINTRACK notifications (Win XP) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; ====================================================================================================================== +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>LV_Colors_SubclassProc(H, M, W, L, S, R) { +#^^^^^^^^^^^^^^^^^^^^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>Static HDN_BEGINTRACKA := -306 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^ source.ahk constant.numeric.ahk +>Static HDN_BEGINTRACKW := -326 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^ source.ahk constant.numeric.ahk +>Static WM_NOTIFY := 0x4E +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.numeric.ahk +>Critical, % LV_Colors.Critical +#^^^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +>If (M = WM_NOTIFY) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>; HDN_BEGINTRACK ------------------------------------------------------------------------------------------------- +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>C := NumGet(L + (A_PtrSize * 2), 0, "Int") +#^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>If (C = HDN_BEGINTRACKA) || (C = HDN_BEGINTRACKW) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return True +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.language.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>Return DllCall("Comctl32.dll\DefSubclassProc", "Ptr", H, "UInt", M, "Ptr", W, "Ptr", L, "UInt") +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>; ====================================================================================================================== +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>;start of functions start +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +> +>URItoPath(vPathUrl) +#^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>vChars := 300 ;300 is an arbitrary number +#^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^ source.ahk constant.numeric.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>VarSetCapacity(vPath, vChars*2) +#^^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>DllCall("shlwapi\PathCreateFromUrl" (A_IsUnicode?"W":"A"), "Str",vPathUrl, "Str",vPath, "UInt*",vChars, "UInt",0) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>return vPath +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>decodeStrAs(source,encoding) +#^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>;example: "é" -> "é" +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>sourceSize := VarSetCapacity(target,StrLen(source),0) +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>Loop % sourceSize +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +>NumPut(NumGet(&source, A_Index*2-1-1, "UChar"), &target, A_Index-1, "UChar") +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>return StrGet(&target, encoding) +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>sortArrByKey(ar, byref key,byref reverse:=false) { +#^^^^^^^^^^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk +# ^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk +# ^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk +# ^^^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>str= +#^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +>for k,v in ar { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>str.=v[key] "+" k "|" +#^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>length:=ar.Length() +#^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>firstValue:=ar[1][key] +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if firstValue is number +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>sortType := "N" +#^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>Sort, str, % "D|" sortType (reverse ? "R" : "") +#^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>finalAr:=[] +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>finalAr.SetCapacity(length) +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>barPos:=1 +#^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>; if (reverse) { +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>loop %length% { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>plusPos:=InStr(str, "+",, barPos) +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>barPos:=InStr(str, "|",, plusPos) +#^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>num:=SubStr(str, plusPos + 1, barPos - plusPos - 1) +#^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>finalAr.Insert(1,ar[num]) +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>;} else { +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; loop %length% { +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; plusPos:=InStr(str, "+",, barPos) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; barPos:=InStr(str, "|",, plusPos) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +>; num:=SubStr(str, plusPos + 1, barPos - plusPos - 1) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; finalAr.Push(ar[num]) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; } +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^ source.ahk comment.line.semicolon.ahk +>; } +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^ source.ahk comment.line.semicolon.ahk +> +>return finalAr +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>hashFiles(algorithm) +#^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global EcurrentDir1, EcurrentDir2, whichSide +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +>finalStr= +#^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +>for notUsed, name in getSelectedNames() { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>finalStr.=getHash(algorithm, EcurrentDir%whichSide% "\" name) "`n" +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>if (finalStr) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>StringTrimRight, finalStr, finalStr, 1 ;remove the last "`n" from the end +#^^^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>clipboard:=finalStr +#^^^^^^^^^ source.ahk constant.language.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +>cMsgbox(finalStr) +#^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>p("couldn't get hash") +#^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>getHash(algorithm, Apath) +#^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>FileGetAttrib, fileAttrib, %Apath% +#^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>if (InStr(fileAttrib, "D")) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>return "can't hash Directory" +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>cmdOutput:=RunCmd("certutil -hashfile """ Apath """ " algorithm) +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>return StrSplit(cmdOutput, "`n", "`r")[2] +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>generateRandomUniqueName(Apath, byref isDir:="") +#^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>inputFileExist:=fileExist(Apath) +#^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (inputFileExist) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (InStr(inputFileExist, "D")) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>isDir:=true +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>SplitPath, Apath, OutFileName, OutDir, OutExtension, OutNameNoExt, OutDrive +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +>loop { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (isDir) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>tryPath:=OutDir "\" OutNameNoExt "_" randomName(6) +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>tryPath:=OutDir "\" OutNameNoExt "_" randomName(6) "." OutExtension +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>if (!FileExist(tryPath)) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>return tryPath +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>p("input path does not exist") +#^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>} +#^ source.ahk punctuation.bracket.ahk +>randomName(length) +#^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>chars:=[".", "_", "-", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>charsLength:=chars.Length() +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>loop % length +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>Random, randInt , 1, charsLength +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +>strng.=chars[randInt] +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return strng +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>loadSettings() +#^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>FileRead, settingsTxt, %A_AppData%\ahk_explorer_settings\settings.txt +#^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +>settingsArr:=StrSplit(settingsTxt, "`n", "`r") +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>peazipPath:=settingsArr[1] +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>vscodePath:=settingsArr[2] +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>BGColorOfSelectedPane:=settingsArr[3] +#^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>Ahk2ExePath:=settingsArr[4] +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>spekPath:=settingsArr[5] +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>removeFromSizes(byref name, byref whichSide) +#^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>for k, obj in sortedSizes%whichSide% { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (obj["name"]=name) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>sortedSizes%whichSide%.Remove(k) +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>break +#^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>addToSizes(byref name, byref size, byref whichSide) +#^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>sortedSizes%whichSide%.Push({size:size,name:name}) +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>sortedSizes%whichSide%:=sortArrByKey(sortedSizes%whichSide%,"size") +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>; sortedSizes%whichSide%:=sortArrByKey(sortedSizes%whichSide%,"size",true) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +> +>sortedBySize%whichSide%:=[] +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>for k, v in sortedSizes%whichSide% { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>sortedBySize%whichSide%.Push(v["name"]) +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>sortSizes() +#^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +> +>sortedSizes%whichSide%:=[] +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>for name, obj in stuffByName%whichSide% { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>sortedSizes%whichSide%.Push({size:obj["size"],name:name}) +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>sortedSizes%whichSide%:=sortArrByKey(sortedSizes%whichSide%,"size") +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>; sortedSizes%whichSide%:=sortArrByKey(sortedSizes%whichSide%,"size",true) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>sortedBySize%whichSide%:=[] +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>for k, v in sortedSizes%whichSide% { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>sortedBySize%whichSide%.Push(v["name"]) +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>} +#^ source.ahk punctuation.bracket.ahk +> +>bothSameDir(whichSide) +#^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>otherSide:=(whichSide=1) ? 2 : 1 +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>if (EcurrentDir%whichSide%=EcurrentDir%otherSide%) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +>return otherSide +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +>return false +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^ source.ahk constant.language.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>revealFileInExplorer(folderPath, files) +#^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>COM_CoUninitialize() +#^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>COM_CoInitialize() +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>DllCall("shell32\SHParseDisplayName", "Wstr", folderPath, "Uint", 0, "Ptr*", pidl, "Uint", 0, "Uint", 0) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>DllCall("shell32\SHBindToObject","Ptr",0,"Ptr",pidl,"Ptr",0,"Ptr",GUID4String(IID_IShellFolder,"{000214E6-0000-0000-C000-000000000046}"),"Ptr*",pIShellFolder) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>length:=files.Length() +#^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>VarSetCapacity(apidl, length * A_PtrSize, 0) +#^^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>for k, v in files { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>;IShellFolder:ParseDisplayName +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>DllCall(VTable(pIShellFolder,3),"Ptr", pIShellFolder,"Ptr",win_hwnd,"Ptr",0,"Wstr",v,"Uint*",0,"Ptr*",tmpPIDL,"Uint*",0) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>NumPut(tmpPIDL, apidl, (k - 1)*A_PtrSize, "Ptr") +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>DllCall("shell32\SHOpenFolderAndSelectItems", "Ptr", pidl, "UINT", length, "Ptr", &apidl, "Uint", 0) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>COM_CoUninitialize() +#^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>COM_CoInitialize() +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>Return DllCall("ole32\CoInitialize", "Uint", 0) +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>COM_CoUninitialize() +#^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>DllCall("ole32\CoUninitialize") +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>send_stringToFolderWatcher(whichFolderWatcher, num, stringToSend:="") +#^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>stringToSend .= "|" num +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +>VarSetCapacity(message, size := StrPut(stringToSend, "UTF-16")*2, 0) +#^^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>StrPut(stringToSend, &message, "UTF-16") +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>VarSetCapacity(COPYDATASTRUCT, A_PtrSize*3) +#^^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>NumPut(size, COPYDATASTRUCT, A_PtrSize, "UInt") +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>NumPut(&message, COPYDATASTRUCT, A_PtrSize*2) +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>DetectHiddenWindows, On +#^^^^^^^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +>SetTitleMatchMode, 2 +#^^^^^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>SendMessage, WM_COPYDATA := 0x4A,, ©DATASTRUCT,, FolderWatcher%whichFolderWatcher%.ahk ahk_class AutoHotkey +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>startWatchFolder(byref whichSide, byref AcurrentDir) +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>if (whichSide=1) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>If !WatchFolder(AcurrentDir, "Watch1", 0, 3) { ;files and folders +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>MsgBox, 0, Error, Call of WatchFolder() failed! +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +>Return +#^^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>send_stringToFolderWatcher(whichSide, 1, AcurrentDir) ;1 for watch 2 for stop +#^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>stopWatchFolder(byref whichSide, byref dirToStopWatching) +#^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>if (whichSide=1) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>WatchFolder(dirToStopWatching, "**DEL") +#^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>send_stringToFolderWatcher(whichSide, 2, dirToStopWatching) ;1 for watch 2 for stop +#^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>Watch1(Folder, Changes) { +#^^^^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^^^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>For Each, Change In Changes { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>WatchN(1,Change.Action, Change.OldName, Change.Name) +#^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>WatchN(whichSide,Byref Action,Byref OldName,Byref Name) +#^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global EcurrentDir1,EcurrentDir2,vlistView1,vlistView2 +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +>otherSide:=bothSameDir(whichSide) +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>GuiControl, -Redraw, vlistView%whichSide% +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>if (otherSide) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>GuiControl, -Redraw, vlistView%otherSide% +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +> +>if (Action=1) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>fileAdded(whichSide, Name) +#^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else if (Action=2) { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>fileDeleted(whichSide, Name) +#^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (otherSide) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>fileDeleted(otherSide, Name) +#^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else if (Action=4) { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>SplitPath, % Name, OutFileNameNew, OutDirNew +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +>SplitPath, % OldName, OutFileNameOld, OutDirOld +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +>if (OutDirNew=EcurrentDir%whichSide%) { ;renamed +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>fileRenamed(whichSide, OutFileNameOld, OutFileNameNew) +#^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (otherSide) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>fileRenamed(otherSide, OutFileNameOld, OutFileNameNew) +#^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else if (OutDirOld=EcurrentDir%otherSide%) { ;moved from other Side +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>fileAdded(whichSide, Name) +#^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>fileDeleted(otherSide, OldName) +#^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { ;moved +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^ source.ahk comment.line.semicolon.ahk +> +>fileAdded(whichSide, Name) +#^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (otherSide) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>fileAdded(otherSide, Name) +#^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>GuiControl, +Redraw, vlistView%whichSide% +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>if (otherSide) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>GuiControl, +Redraw, vlistView%otherSide% +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +> +>} +#^ source.ahk punctuation.bracket.ahk +>fileRenamed(whichSide, Byref renameFrom,Byref renameInto) +#^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>Gui, ListView, vlistView%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>clipboard:=EcurrentDir%whichSide% "\" renameInto +#^^^^^^^^^ source.ahk constant.language.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +>FileGetSize, outputSize, % EcurrentDir%whichSide% "\" renameInto +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +>obj:=stuffByName%whichSide%[renameFrom] +#^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>stuffByName%whichSide%[renameInto]:=stuffByName%whichSide%[renameFrom] +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>stuffByName%whichSide%.Delete(renameFrom) +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>stuffByName%whichSide%[renameInto]["size"]:=outputSize +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +> +>;rename in sortedByDate +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>for k, v in sortedByDate%whichSide% { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (v=renameFrom) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>sortedByDate%whichSide%[k]:=renameInto +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +>break +#^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>removeFromSizes(renameFrom, whichSide) +#^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>addToSizes(renameInto,outputSize, whichSide) +#^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>rowNums:=LV_GetCount() +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>loop % rowNums { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_GetText(OutputVar,A_Index,2) +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (OutputVar=renameFrom) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>calculateStuff(,outputSize,OutputVar,A_Index) +#^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>LV_Modify(A_Index,, ,renameInto,,,formattedBytes,bytes) +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>justOneIcon(renameInto,A_Index,whichSide) +#^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>break +#^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>fileAdded(whichSide, Byref path) { +#^^^^^^^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^^^^^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk +# ^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>Gui, ListView, vlistView%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>SplitPath, path, OutFileName +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +>sortWithAr%whichSide%:=[] +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>FileGetSize, outputSize, %path% +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>FileGetAttrib, OutputAttri , %path% +#^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +> +>stuffByName%whichSide%[OutFileName]:={date:A_Now,attri:OutputAttri,size:outputSize} +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>sortedByDate%whichSide%.InsertAt(1,OutFileName) +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>addToSizes(OutFileName,outputSize,whichSide) +#^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>whereToAddFile(whichSide, OutFileName, A_Now,outputSize) +#^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>if (bothSameDir(whichSide)) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>stuffByName%otherSide%[OutFileName]:=stuffByName%whichSide%[OutFileName] +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>sortedBySize%otherSide%:=sortedBySize%whichSide%.Clone() +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>sortedByDate%otherSide%:=sortedByDate%whichSide%.Clone() +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>whereToAddFile(otherSide, OutFileName, A_Now,outputSize) +#^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>} +#^ source.ahk punctuation.bracket.ahk +>fileDeleted(Byref whichSide, Byref path) +#^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>Gui, ListView, vlistView%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>SplitPath, path, OutFileName +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +>GuiControl, -Redraw, vlistView%whichSide% +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +> +>rowNums:=LV_GetCount() +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>loop % rowNums { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_GetText(OutputVar,A_Index,2) +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (OutputVar=OutFileName) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>LV_Delete(A_Index) +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +>if !LV_GetNext(1) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (A_Index=rowNums and A_Index>1) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Modify(A_Index-1, "+Select +Focus Vis") ; select +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else +#^^^^ source.ahk keyword.control.ahk +>LV_Modify(A_Index, "+Select +Focus Vis") ; select +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>; GuiControl, +Redraw, vlistView%whichSide% +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>obj:=stuffByName%whichSide%[OutFileName] +#^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>;remove name from sortedByDate +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>for k, v in sortedByDate%whichSide% { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (v=OutFileName) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>sortedByDate%whichSide%.Remove(k) +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>break +#^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>removeFromSizes(OutFileName,whichSide) +#^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>stuffByName%whichSide%.Delete(OutFileName) +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>break +#^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>whereToAddFile(byref whichSide, byref OutFileName,byref date,byref size) { +#^^^^^^^^^^^^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk +# ^^^^^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk +# ^^^^^^^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk +# ^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk +# ^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk +# ^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk +# ^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>Gui, ListView, vlistView%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>insertNum:=0 +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +> +>if (whichsort%whichSide%="newOld") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (focused="searchCurrentDirEdit" or focused="listViewInSearch") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (SubStr(searchString%whichSide%, 1, 1)!=".") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>counter:=0 +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>objectToSort:=[] +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>for k,v in sortedByDate%whichSide% { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (counter>maxRows) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>break +#^^^^^ source.ahk keyword.control.ahk +>SplitPath, v,,,, OutNameNoExt +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +> +>pos:=InStr(OutNameNoExt, searchString%whichSide%) +#^^^ source.ahk keyword.other.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (pos) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>counter++ +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +>objectToSort.Push({name:v,pos:pos}) +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>objectToSort:=ObjectSort(objectToSort,"pos") +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>for k,v in objectToSort { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>name:=v["name"] +#^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (name=OutFileName) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>insertNum:=k +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>searchFoldersOnly:=(searchString%whichSide%=".") ? true : false +#^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.language.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk constant.language.ahk +>if (searchFoldersOnly) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>counter:=0 +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>for k,v in sortedByDate%whichSide% { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (v=OutFileName) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (counter>maxRows) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>break +#^^^^^ source.ahk keyword.control.ahk +>SplitPath, v,,, OutExtension +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +>if (!OutExtension) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>insertNum:=k +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>searchStringBak%whichSide%:=SubStr(searchString%whichSide%, 2) +#^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>counter:=0 +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>objectToSort:=[] +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>for k,v in sortedByDate%whichSide% { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (counter>maxRows) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>break +#^^^^^ source.ahk keyword.control.ahk +>SplitPath, v,,, OutExtension +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +>pos:=InStr(OutExtension, searchStringBak%whichSide%) +#^^^ source.ahk keyword.other.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (pos) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>counter++ +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +>objectToSort.Push({name:v,pos:pos}) +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>objectToSort:=ObjectSort(objectToSort,"pos") +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>for k,v in objectToSort { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>name:=v["name"] +#^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (name=OutFileName) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>insertNum:=k +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>} +#^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>insertNum:=1 +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else if (whichsort%whichSide%="oldNew") { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>rowNums:=LV_GetCount() +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>insertNum:=rowNums+1 +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +>} else if (whichsort%whichSide%="bigSmall") { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>for k, v in sortedBySize%whichSide% { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (k>maxRows) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>break +#^^^^^ source.ahk keyword.control.ahk +>if (v=OutFileName) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>insertNum:=k +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else if (whichsort%whichSide%="smallBig") { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>lengthAddedOne:=sortedBySize%whichSide%.Length()+1 +#^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +>for k in sortedBySize%whichSide% { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>v:=sortedBySize%whichSide%[lengthAddedOne-k] +#^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (k>maxRows) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>break +#^^^^^ source.ahk keyword.control.ahk +>if (v=OutFileName) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>insertNum:=k +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>if (insertNum) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>insertRow(whichSide, OutFileName, insertNum, date,size) +#^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>insertRow(byref whichSide, byref OutFileName,byref row,byref date,byref size) +#^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +> +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>Gui, ListView, vlistView%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>calculateStuff(date,size,OutFileName,row) +#^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>GuiControl, -Redraw, vlistView%whichSide% +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>LV_Insert(row,,,OutFileName,var1,var2,formattedBytes,bytes) +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Colors.Cell(ListviewHwnd%whichSide%,row,3,color) +#^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>justOneIcon(OutFileName,row,whichSide) +#^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>GuiControl, +Redraw, vlistView%whichSide% +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>pasteFile() +#^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>; action:=false +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>if (DllCall("IsClipboardFormatAvailable", "UInt", CF_HDROP := 15)) { ; file being copied +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>if (DllCall("IsClipboardFormatAvailable", "UInt", dropEffectFormat)) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (DllCall("OpenClipboard", "Ptr", A_ScriptHwnd)) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (data := DllCall("GetClipboardData", "UInt", dropEffectFormat, "Ptr")) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (effect := DllCall("GlobalLock", "Ptr", data, "UInt*")) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>; action:="copy" +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>if (effect & DROPEFFECT_COPY) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>files:=StrSplit(clipboard, "`n","`r") +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>for k, v in files { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>fileExist:=FileExist(v) +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (fileExist) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>SplitPath, v , OutFileName +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +>if (InStr(fileExist, "D")) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>FileCopyDir, %v%, % EcurrentDir%whichSide% "\" OutFileName +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>FileCopy, %v%, % EcurrentDir%whichSide% +#^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>if (ErrorLevel) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>p("couldn't copy file " v) +#^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>break +#^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>SoundPlay, *-1 +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>; action:="move" +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>else if (effect & DROPEFFECT_MOVE) { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>files:=StrSplit(clipboard, "`n","`r") +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (files.Length()) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>for k, v in files { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>fileExist:=FileExist(v) +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (fileExist) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>SplitPath, v , OutFileName +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +>if (InStr(fileExist, "D")) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>FileMoveDir, %v%, % EcurrentDir%whichSide% "\" OutFileName +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>FileMove, %v%, % EcurrentDir%whichSide% +#^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>if (ErrorLevel) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>p("couldn't move file " v) +#^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>break +#^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>SoundPlay, *-1 +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>} +#^ source.ahk punctuation.bracket.ahk +>DllCall("GlobalUnlock", "Ptr", data) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>DllCall("CloseClipboard") +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>} +#^ source.ahk punctuation.bracket.ahk +> +>paddedNumber(number, howManyChars) +#^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>VarSetCapacity(ZeroPaddedNumber, 20) ; Ensure the variable is large enough to accept the new string. +#^^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>DllCall("wsprintf", "Str", ZeroPaddedNumber, "Str", "%0" howManyChars "d", "Int", number, "Cdecl") ; Requires the Cdecl calling convention. +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>return ZeroPaddedNumber +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>setWhichSideFromDir(dir) +#^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>if (EcurrentDir1=dir) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>whichSide:=1 +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>} else if (EcurrentDir2=dir) { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>whichSide:=2 +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>getMultiRenameNames() +#^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>Gui, multiRenameGui:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>gui, submit, nohide +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +> +>startingNums:=StrSplit(multiRenameStartingNums, ",") +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>asteriskLength:=StrSplit(multiRenameTheName, "*").Length() +#^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>previewNames:=[] +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>for k, v in namesToMultiRename { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>nameInstance:=multiRenameTheName +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +> +>continueChar:=true +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>charIndex:=1 +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +> +>length:=StrLen(nameInstance) +#^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>lessGreaters:=[] +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>asterisksAndQmarks:=[] +#^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>while (charIndex<=length) { +#^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>char:=SubStr(nameInstance, charIndex, 1) +#^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>if (char="*") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>asterisksAndQmarks.Push("*") +#^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else if (char="?") { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>questionMarkCounter:=0 +#^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>while (char="?") { +#^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>questionMarkCounter++ +#^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +>charIndex++ +#^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +>char:=SubStr(nameInstance, charIndex, 1) +#^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>asterisksAndQmarks.Push(string_Multiply("?",questionMarkCounter)) +#^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>continue +#^^^^^^^^ source.ahk keyword.control.ahk +>} else if (char="<") { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>savedIndex:=charIndex +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +>while (char!=">") { +#^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>charIndex++ +#^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +>char:=SubStr(nameInstance, charIndex, 1) +#^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>subLen:=charIndex - savedIndex + 1 +#^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>asterisksAndQmarks.Push(SubStr(nameInstance, savedIndex, subLen)) +#^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>lessGreaters.Insert(1, [savedIndex,subLen]) +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>continue +#^^^^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>charIndex++ +#^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>for key, value in lessGreaters { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>nameInstance:=SubStr(nameInstance, 1, value[1]-1) SubStr(nameInstance, value[1] + value[2]) +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>SplitPath, v,,, OutExtension +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +>nameInstance:=StrReplace(nameInstance, "|name", v) +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>nameInstance:=StrReplace(nameInstance, "|ext", OutExtension) +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>fileExist:=fileExist(multiRenameDir "\" v) +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (InStr(fileExist, "D" )) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>nameInstance:=StrReplace(nameInstance, "|Dext" , "") +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>nameInstance:=StrReplace(nameInstance, "|.Dext" , "") +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>nameInstance:=StrReplace(nameInstance, "|Dext" , OutExtension) +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>nameInstance:=StrReplace(nameInstance, "|.Dext" , "." OutExtension) +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>for key, value in asterisksAndQmarks { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>num:=(startingNums[key]) ? startingNums[key] : 1 +#^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>actualNum:=num+k-1 +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +>if (InStr(value, "?" )) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>actualNum:=paddedNumber(actualNum, StrLen(value)) +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else if (InStr(value, "<" )) { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>inside:=SubStr(value, 2, StrLen(value)-2) +#^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>nameInstance:=StrReplace(nameInstance, inside, "",, num) +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (num<0) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>p("oof") +#^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>continue +#^^^^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>nameInstance:=StrReplace(nameInstance, value , actualNum,, 1) +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>previewNames.Push(nameInstance) +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>} +#^ source.ahk punctuation.bracket.ahk +>return previewNames +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>getTextWidth(text) +#^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global Dummy +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +>Gui,Fake:Font,s10,Segoe UI +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +>Gui,Fake:Add,Text, -Wrap vDummy,% text +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +>GuiControlGet,Pos,Fake:Pos,Dummy +#^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk variable.def.ahk +>Gui,Fake:Destroy +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>return posw +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>calculateStuff(ByRef date:="", ByRef size:="", ByRef name:="", Byref k:="") { +#^^^^^^^^^^^^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk +# ^^^^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk functionline.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^^ source.ahk functionline.ahk +# ^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk +# ^^^^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk functionline.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^^ source.ahk functionline.ahk +# ^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk +# ^^^^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk functionline.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^^ source.ahk functionline.ahk +# ^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk functionline.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>if (calculateDates and date!="") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>now:=A_Now +#^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +>var1Num := now +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +>var2 := date +#^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +>EnvSub, var1Num, %var2%, Minutes +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>var1:=var1Num "’" +#^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>color=0xFF0000 ;red +#^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^ source.ahk comment.line.semicolon.ahk +>if (Abs(var1Num)>525599) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>var1Num := now +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +>EnvSub, var1Num, %var2%, Days +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +>var1Num:=Floor(var1Num/365.25) ;the average days in a month +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>var1:=var1Num " y" +#^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>color=0x808080 ;grey ; pink +#^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else if (Abs(var1Num)>86399) { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>var1Num := now +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +>EnvSub, var1Num, %var2%, Days +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +>var1Num:=Floor(var1Num/30.44) ;the average days in a month +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>var1:=var1Num " m" +#^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>color=0x00FFFF ;AQUA +#^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else if (Abs(var1Num)>1439) { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>var1Num := now +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +>EnvSub, var1Num, %var2%, Days +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +>var1:=var1Num " d" +#^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>color=0x00FF00 ;lime green +#^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>} else if (Abs(var1Num)>59) { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>var1Num := now +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +>EnvSub, var1Num, %var2%, Hours +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +>var1:=var1Num " h" +#^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>color=0xFFFF00 ;yellow +#^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>if (calculatefileSizes and size!="") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>bytes:="" +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>formattedBytes:="" +#^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +> +>bytes:=size +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk variable.def.ahk +> +>if (bytes!="") +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>formattedBytes:=autoByteFormat(bytes) +#^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>applySizes() { +#^^^^^^^^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>if (namesForSizes%whichSide%.Length()) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>namesStr:="""" EcurrentDir%whichSide% """" +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>for k, v in namesForSizes%whichSide% { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>namesStr.=" """ v """" +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>Process, Close, %PID_getFolderSizes% +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>Run, "%A_AhkPath%" "lib\getFolderSizes.ahk" %namesStr%,,,PID_getFolderSizes +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Process, Close, %PID_getFolderSizes% +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>sortSizes() +#^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>canSortBySize%whichSide%:=true +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>justOneIcon(byref name,byref row, byref whichSide) { +#^^^^^^^^^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk +# ^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk +# ^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk +# ^^^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk +# ^^^^^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>if (doIcons) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>hIcon := DllCall("Shell32\ExtractAssociatedIcon", UInt, 0, Str, EcurrentDir%whichSide% "\" name , UShortP, iIndex) +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if hIcon +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>IconNumber := DllCall("ImageList_ReplaceIcon", UInt, ImageListID%whichSide%, Int, -1, UInt, hIcon) + 1 +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>DllCall("DestroyIcon", Uint, hIcon) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else +#^^^^ source.ahk keyword.control.ahk +>IconNumber = 1 +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +> +>LV_Modify(row,"Icon" . IconNumber) +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^^^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>lastIconNumber:=IconNumber +#^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>} +#^ source.ahk punctuation.bracket.ahk +> +>applyIcons(byref names) { +#^^^^^^^^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk +# ^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>if (doIcons) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>for k, v in names { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>hIcon := DllCall("Shell32\ExtractAssociatedIcon", UInt, 0, Str, EcurrentDir%whichSide% "\" v , UShortP, iIndex) +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if hIcon +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>IconNumber := DllCall("ImageList_ReplaceIcon", UInt, ImageListID%whichSide%, Int, -1, UInt, hIcon) + 1 +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>DllCall("DestroyIcon", Uint, hIcon) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else +#^^^^ source.ahk keyword.control.ahk +>IconNumber = 1 +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +> +>LV_Modify(k,"Icon" . IconNumber) +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^^^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>lastIconNumber:=IconNumber +#^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>renderFunctionsToSort(ByRef objectToSort, reverse:=false) +#^^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>Gui, ListView, vlistView%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>ControlFocus,, % "ahk_id " ListviewHwnd%whichSide% +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +> +>GuiControl,Text,vcurrentDirEdit%whichSide%, % EcurrentDir%whichSide% +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>searchString%whichSide%= +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk keyword.operator.assignment.ahk +> +>GuiControl, -Redraw, vlistView%whichSide% +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>LV_Delete() +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>length:=objectToSort.Length() +#^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (reverse) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>startPos:=length +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk variable.def.ahk +>inc:=-1 +#^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +>reverseSort:=true +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>startPos:=1 +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>inc:=1 +#^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>reverseSort:=false +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>namesForIcons%whichSide%:=[] +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>namesForSizes%whichSide%:=[] +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>rowsForSizes%whichSide%:=[] +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>if (length<=maxRows) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>rowsToLoop:=length +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk variable.def.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>rowsToLoop:=maxRows +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^ source.ahk variable.def.ahk +>if (toFocus) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>loop % length { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (toFocus=objectToSort[A_Index]) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (length - A_IndexstartPos:=length - maxRows + 1 +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>if (startPos<1) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>startPos:=1 +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>startPos:=A_Index +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^ source.ahk constant.language.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>k:=startPos +#^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +>loop % rowsToLoop { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>name:=objectToSort[k] +#^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>v:=stuffByName%whichSide%[name] +#^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>if (name=toFocus) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>rowToFocus:=A_Index +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^ source.ahk constant.language.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>calculateStuff(v["date"],v["size"],name,A_Index) +#^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Add(,,name,var1,var2,formattedBytes,bytes) +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Colors.Cell(ListviewHwnd%whichSide%,A_Index,3,color) +#^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.bracket.ahk +>namesForIcons%whichSide%.Push(name) +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>if (!quickFixIcon%whichSide%) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>quickFixIcon%whichSide%:=true +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>hIcon:=DllCall("Shell32\ExtractAssociatedIcon", UInt, 0, Str, "", UShortP, iIndex) +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if hIcon +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>IconNumber := DllCall("ImageList_ReplaceIcon", UInt, ImageListID1, Int, -1, UInt, hIcon) + 1 +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>DllCall("DestroyIcon", Uint, hIcon) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else +#^^^^ source.ahk keyword.control.ahk +>IconNumber = 1 +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>LV_Modify(A_Index,"Icon" . IconNumber) +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^^^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>lastIconNumber:=IconNumber +#^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>k+=inc +#^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>if (toFocus) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>LV_Modify(rowToFocus, "+Select +Focus Vis") +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Modify(1, "+Select +Focus") +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>toFocus:=false +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +>if (!firstIce%whichSide%) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>firstIce%whichSide%:=true +#^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>ICELV%whichSide% := New LV_InCellEdit(ListviewHwnd%whichSide%, false, true) +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.keys.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +>ICELV%whichSide%.SetColumns(0) +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>GuiControl, +Redraw, vlistView%whichSide% +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>applyIcons(namesForIcons%whichSide%) +#^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (firstSizes%whichSide%) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>firstSizes%whichSide%:=false +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +>for key in objectToSort { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (reverse) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>k:=length-key+1 +#^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>k:=key +#^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>name:=objectToSort[k] +#^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>v:=stuffByName%whichSide%[name] +#^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (InStr(v["attri"], "D")) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (key<51) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>rowsForSizes%whichSide%.Push(key) +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>namesForSizes%whichSide%.Push(name) +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>applySizes() +#^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>stopSizes:=true +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>manageCMDArguments(pathArgument) +#^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>cmdFileExist:=fileExist(pathArgument) +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (cmdFileExist) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (InStr(cmdFileExist, "D")) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>EcurrentDir%whichSide%:=pathArgument +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>SplitPath, pathArgument, OutFileName, OutDir +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +>EcurrentDir%whichSide%:=OutDir +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk variable.def.ahk +>toFocus:=OutFileName +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>p("the folder or file you are trying to open doesn't exist`nyou were trying to open: pathArgument=`n" pathArgument) +#^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>clipboard:=pathArgument +#^^^^^^^^^ source.ahk constant.language.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +>cmdFileExist:=fileExist(pathArgument) +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>p(cmdFileExist " pathArgument was copied to clip" ) +#^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>winactivate, ahk_explorer ahk_class AutoHotkeyGUI +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +>renderCurrentDir() +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>ControlFocus,, % "ahk_id " ListviewHwnd%whichSide% +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>receivedFolderSize(string) { +#^^^^^^^^^^^^^^^^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +> +>if (rowsForSizes%whichSide%.Length()) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>ar:=StrSplit(string,"|") +#^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>whichListView_bak:=A_DefaultListView +#^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk constant.language.ahk +>Gui, ListView, vlistView%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>LV_Modify(rowsForSizes%whichSide%[1],,,,,,ar[2],ar[3]) +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>Gui, ListView, %whichListView_bak% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +> +>rowsForSizes%whichSide%.RemoveAt(1) +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>stuffByName%whichSide%[ar[1]]["size"]:=ar[3] +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>;virtual desktop +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>revealAhk_Explorer: +#^^^^^^^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>CurrentIVirtualDesktop := 0 +#^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>GetCurrentDesktop_return_value := DllCall(GetCurrentDesktop, "UPtr", IVirtualDesktopManagerInternal, "UPtrP", CurrentIVirtualDesktop, "UInt") +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>pView := 0 +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>DllCall(GetViewForHwnd, "UPtr", IApplicationViewCollection, "Ptr", thisHwnd, "Ptr*", pView, "UInt") +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>DllCall(MoveViewToDesktop, "ptr", IVirtualDesktopManagerInternal, "Ptr", pView, "UPtr", CurrentIVirtualDesktop, "UInt") +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>winactivate, ahk_id %thisHwnd% +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>WM_COPYDATA_READ(wp, lp) { +#^^^^^^^^^^^^^^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>data := StrGet(NumGet(lp + A_PtrSize*2), "UTF-16") +#^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>RegExMatch(data, "s)(.*)\|(\d+)", match) +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>if (match2=1) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>manageCMDArguments(match1) +#^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else if (match2=2) { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>; p(match1) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>receivedFolderSize(match1) +#^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else if (match2=3) { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>sortSizes() +#^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>canSortBySize%whichSide%:=true +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>} else if (match2=4) { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>gosub, selectPanel%match1% +#^^^^^ source.ahk golabel.ahk support.function.ahk +# ^^ source.ahk golabel.ahk +# ^^^^^^^^^^^ source.ahk golabel.ahk entity.name.function.label.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} else if (match2=5) { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>gosub, copySelectedPaths +#^^^^^ source.ahk golabel.ahk support.function.ahk +# ^^ source.ahk golabel.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk golabel.ahk entity.name.function.label.ahk +>} else if (match2=6) { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (windowHidden) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>windowHidden:=false +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +>gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>; gui, hide +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>gui, show +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>SetTimer, revealAhk_Explorer , -0 +#^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else if (match2=7) { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Action_OldName_Name:=StrSplit(match1, "|") +#^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>WatchN(2,Action_OldName_Name[1],Action_OldName_Name[2],Action_OldName_Name[3]) +#^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>p("something went wrong") +#^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>submitAndRenderDir() +#^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>Gui, Submit, NoHide +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +> +>StringUpper, OutputVar,% SubStr(vcurrentDirEdit%whichSide%,1,1) +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>EcurrentDir%whichSide%:=OutputVar SubStr(vcurrentDirEdit%whichSide%,2) +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>renderCurrentDir() +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>Bin(x){ +#^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>while x +#^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +>r:=1&x r,x>>=1 +#^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>return r +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>compareTwoStrings2(para_string1,para_string2) { +#^^^^^^^^^^^^^^^^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^^^^^^^^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk +# ^^^^^^^^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>;Sørensen-Dice coefficient +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>savedBatchLines := A_BatchLines +#^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk constant.language.ahk +>SetBatchLines, -1 +#^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +> +>vCount := 0 +#^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>oArray := {} +#^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>oArray := {base:{__Get:Func("Abs").Bind(0)}} ;make default key value 0 instead of a blank string +#^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>Loop, % vCount1 := StrLen(para_string1) - 1 +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>oArray["z" SubStr(para_string1, A_Index, 2)]++ +#^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +>Loop, % vCount2 := StrLen(para_string2) - 1 +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>if (oArray["z" SubStr(para_string2, A_Index, 2)] > 0) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>oArray["z" SubStr(para_string2, A_Index, 2)]-- +#^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +>vCount++ +#^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>vSDC := Round((2 * vCount) / (vCount1 + vCount2),2) +#^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>; if (!vSDC || vSDC < 0.005) { ;round to 0 if less than 0.005 +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; return 0 +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; } +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^ source.ahk comment.line.semicolon.ahk +>if (vSDC = 1) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>return 1 +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>SetBatchLines, % savedBatchLines +#^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>return vSDC +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>compareTwoStrings(para_string1,para_string2) +#^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>;Sørensen-Dice coefficient +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>savedBatchLines := A_BatchLines +#^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk constant.language.ahk +>SetBatchLines, -1 +#^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +> +>vCount := 0 +#^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>oArray := {} +#^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>oArray := {base:{__Get:Func("Abs").Bind(0)}} ;make default key value 0 instead of a blank string +#^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>Loop, % vCount1 := StrLen(para_string1) +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>; Loop, % vCount1 := StrLen(para_string1) - 1 +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>oArray["z" SubStr(para_string1, A_Index, 1)]++ +#^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +>; oArray["z" SubStr(para_string1, A_Index, 2)]++ +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>Loop, % vCount2 := StrLen(para_string2) +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>; Loop, % vCount2 := StrLen(para_string2) - 1 +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; p(oArray) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>if (oArray["z" SubStr(para_string2, A_Index, 1)] > 0) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>; if (oArray["z" SubStr(para_string2, A_Index, 2)] > 0) { +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>oArray["z" SubStr(para_string2, A_Index, 1)]-- +#^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +>; oArray["z" SubStr(para_string2, A_Index, 2)]-- +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>vCount++ +#^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>; p(vCount) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>vSDC := (vCount) / (vCount2) +#^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>; vSDC := (2 * vCount) / (vCount1 + vCount2) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; vSDC := Round((2 * vCount) / (vCount1 + vCount2),2) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; if (!vSDC || vSDC < 0.005) { ;round to 0 if less than 0.005 +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; return 0 +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; } +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^ source.ahk comment.line.semicolon.ahk +>if (vSDC = 1) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>return 1 +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>SetBatchLines, % savedBatchLines +#^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>return vSDC +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>autoMegaByteFormat(size, decimalPlaces = 2) +#^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>static sizes :=["GB", "TB"] +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>sizeIndex := 0 +#^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +> +>while (size >= 1024) +#^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>sizeIndex++ +#^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +>size /= 1024.0 +#^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk constant.numeric.ahk +> +>if (sizeIndex = sizes.Length()) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>break +#^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>return (sizeIndex = 0) ? size " MB" +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>: round(size, decimalPlaces) . " " . sizes[sizeIndex] +#^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^^^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>autoByteFormat(size, decimalPlaces = 2) +#^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>static sizes :=["KB", "MB", "GB", "TB"] +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>sizeIndex := 0 +#^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +> +>while (size >= 1024) +#^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>sizeIndex++ +#^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +>size /= 1024.0 +#^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk constant.numeric.ahk +> +>if (sizeIndex = sizes.Length()) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>break +#^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>return (sizeIndex = 0) ? size " B" +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>: round(size, decimalPlaces) . " " . sizes[sizeIndex] +#^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^^^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>sortColumn(column, sortMethod) +#^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global columnsToSort +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +> +>for k, v in columnsToSort { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (v!=column) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_ModifyCol(v, "NoSort") +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>LV_ModifyCol(column, sortMethod) +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>getSelectedNames() +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>gui, main:default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>Gui, ListView, vlistView%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>index:="" +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>selectedNames:=[] +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>loop { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>index:=LV_GetNext(index) +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (!index) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>break +#^^^^^ source.ahk keyword.control.ahk +>LV_GetText(OutputVar,index,2) +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>selectedNames.Push(OutputVar) +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>} +#^ source.ahk punctuation.bracket.ahk +>return selectedNames +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>getSelectedPaths() +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>selectedPaths:=[] +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>for k, v in getSelectedNames() { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>selectedPaths.Push(EcurrentDir%whichSide% "\" v) +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return selectedPaths +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>doubleClickedNormal(ByRef index) +#^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>gui, main:default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>ControlFocus,, % "ahk_id " ListviewHwnd%whichSide% +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>Gui, ListView, vlistView%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +> +>LV_GetText(filename,index,2) +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>path:=EcurrentDir%whichSide% "\" filename +#^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +>doubleClickedFolderOrFile(path) +#^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>doubleClickedFolderOrFile(ByRef path) +#^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>fileExist:=FileExist(path) +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (fileExist) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (InStr(fileExist, "D")) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>EcurrentDir%whichSide%:=path +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk variable.def.ahk +>renderCurrentDir() +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>path:=path +#^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk variable.def.ahk +>Run, "%path%", % EcurrentDir%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>ControlFocus,, % "ahk_id " ListviewHwnd%whichSide% +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>stopSearching() +#^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>ControlFocus,, % "ahk_id " ListviewHwnd%whichSide% +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>focused=flistView +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +>GuiControl,Text,currentDirEdit, % EcurrentDir%whichSide% +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>searchString%whichSide%= +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk keyword.operator.assignment.ahk +>renderCurrentDir() +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>HandleMessage( p_w, p_l, p_m, p_hw ) +#^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>local control +#^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +>; return +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>; p(p_w) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>if (!ignoreOut) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (p_w=0x1000007) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>; p(p_l) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +> +>whichSide:=1 +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>Gui, Show,NA,% EcurrentDir%whichSide% " - ahk_explorer" +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>if (focused="flistView") ; if listView for instance +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>focused:="changePath" +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>} else if (focused="listViewInSearch") { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>focused:="searchCurrentDirEdit" +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else if (p_w=0x100000B) { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>whichSide:=2 +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>Gui, Show,NA,% EcurrentDir%whichSide% " - ahk_explorer" +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>if (focused="flistView") ; if listView for instance +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>focused:="changePath" +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>} else if (focused="listViewInSearch") { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>focused:="searchCurrentDirEdit" +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>; 16777222 +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>else if ( p_w & 0x2000000 ) +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>if (p_w=0x2000007) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>whichSide:=1 +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>Gui, Show,NA,% EcurrentDir%whichSide% " - ahk_explorer" +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else if (p_w=0x200000B) { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>whichSide:=2 +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>Gui, Show,NA,% EcurrentDir%whichSide% " - ahk_explorer" +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>if (((p_w >> 16) & 0x200) and not ((p_w >> 16) & 0x100)) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>; if (If ((p_w >> 16) & 0x200) and not ((p_w >> 16) & 0x100)) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>if ( p_l = Edithwnd%whichSide% ) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>if (focused="searchCurrentDirEdit") +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>focused=listViewInSearch +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else if (focused="changePath") { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>MouseGetPos,,, OutputVarWin +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +>GuiControl, Focus, vlistView%whichSide% +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>winactivate, ahk_id %OutputVarWin% +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>; static EM_SETSEL := 0x00B1 +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; static EN_SETFOCUS := 0x0100 +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>submitAndRenderDir() +#^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>focused:="flistView" +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else +#^^^^ source.ahk keyword.control.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>; Gui, Submit, NoHide +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; currentDir:=currentDirEdit +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else if ( p_l = RenameHwnd ) { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (!fromButton) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>gosub, renameFileLabel +#^^^^^ source.ahk golabel.ahk support.function.ahk +# ^^ source.ahk golabel.ahk +# ^^^^^^^^^^^^^^^ source.ahk golabel.ahk entity.name.function.label.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>} +#^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>searchInCurrentDir() { +#^^^^^^^^^^^^^^^^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>if (searchString%whichSide%="") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>searching:=true +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>Gui, ListView, vlistView%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +> +>ignoreOut:=true +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>objectToSort:=[] +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>namesForIcons%whichSide%:=[] +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>GuiControl, -Redraw, vlistView%whichSide% +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>LV_Delete() +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (SubStr(searchString%whichSide%, 1, 1)!=".") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>counter:=0 +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>objectToSort:=[] +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>for k,v in sortedByDate%whichSide% { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (counter>maxRows) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>break +#^^^^^ source.ahk keyword.control.ahk +>attri:=stuffByName%whichSide%[v]["attri"] +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>if InStr(attri, "D") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>pos:=InStr(v, searchString%whichSide%) +#^^^ source.ahk keyword.other.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>SplitPath, v,,,, OutNameNoExt +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +>pos:=InStr(OutNameNoExt, searchString%whichSide%) +#^^^ source.ahk keyword.other.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>if (pos) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>counter++ +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +>objectToSort.Push({name:v,pos:pos}) +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>objectToSort:=ObjectSort(objectToSort,"pos") +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>for k,v in objectToSort { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>name:=v["name"] +#^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>obj:=stuffByName%whichSide%[name] +#^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>calculateStuff(obj["date"],obj["size"],name,k) +#^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>LV_Add(,,name,var1,var2,formattedBytes,bytes) +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Colors.Cell(ListviewHwnd%whichSide%,k,3,color) +#^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.bracket.ahk +>namesForIcons%whichSide%.Push(name) +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>searchFoldersOnly:=(searchString%whichSide%=".") ? true : false +#^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.language.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk constant.language.ahk +>if (searchFoldersOnly) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>counter:=0 +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>for k,v in sortedByDate%whichSide% { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (counter>maxRows) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>break +#^^^^^ source.ahk keyword.control.ahk +>SplitPath, v,,, OutExtension +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +>if (!OutExtension) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>obj:=stuffByName%whichSide%[v] +#^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>calculateStuff(obj["date"],obj["size"],v,k) +#^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>LV_Add(,,v,var1,var2,formattedBytes,bytes) +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Colors.Cell(ListviewHwnd%whichSide%,k,3,color) +#^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.bracket.ahk +>namesForIcons%whichSide%.Push(v) +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>searchStringBak%whichSide%:=SubStr(searchString%whichSide%, 2) +#^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>counter:=0 +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>objectToSort:=[] +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>for k,v in sortedByDate%whichSide% { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (counter>maxRows) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>break +#^^^^^ source.ahk keyword.control.ahk +>SplitPath, v,,, OutExtension +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +>pos:=InStr(OutExtension, searchStringBak%whichSide%) +#^^^ source.ahk keyword.other.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (pos) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>counter++ +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +>objectToSort.Push({name:v,pos:pos}) +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>objectToSort:=ObjectSort(objectToSort,"pos") +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>for k,v in objectToSort { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>name:=v["name"] +#^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>obj:=stuffByName%whichSide%[name] +#^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>calculateStuff(obj["date"],obj["size"],name,k) +#^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>LV_Add(,,name,var1,var2,formattedBytes,bytes) +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Colors.Cell(ListviewHwnd%whichSide%,k,3,color) +#^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.bracket.ahk +>namesForIcons%whichSide%.Push(name) +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>} +#^ source.ahk punctuation.bracket.ahk +>GuiControl, +Redraw, vlistView%whichSide% +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>applyIcons(namesForIcons%whichSide%) +#^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>loop % LV_GetCount() - 1 { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>LV_Modify(A_Index+1, "-Select -Focus") ; select +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>LV_Modify(1, "+Select +Focus Vis") ; select +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +> +>searching:=false +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +>ignoreOut:=false +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>minusEverythingAfterPoint(index) +#^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global rowBak +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +> +>indexBak:=index+1 +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +>loop % rowBak.Length() - index { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (rowBak[indexBak]!=0) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>rowBak[indexBak]-- +#^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +>indexBak++ +#^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>addEverythingAfterPoint(index) { +#^^^^^^^^^^^^^^^^^^^^^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^^^^^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>global rowBak +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +> +>indexBak:=index+1 +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +>loop % rowBak.Length() - index { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (rowBak[indexBak]!=0) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>rowBak[indexBak]++ +#^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +>indexBak++ +#^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>getinsertPoint(index) +#^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global rowBak +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +>index-- +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +>while (rowBak[index]=0) { +#^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>index-- +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>if (index<1) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>return 1 +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +> +>return rowBak[index]+1 +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +> +>} +#^ source.ahk punctuation.bracket.ahk +> +>renderCurrentDir() +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>local ansiPath, bothSameDir, dirToStopWatching,i,k,v,y,drive,freeSpace,lastChar,text,totalSpace,OutputVar +#^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +>; global EcurrentDir1, EcurrentDir2, whichSide, currentDirSearch, stopSizes +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +> +>if (SubStr(EcurrentDir%whichSide%,1,5)="file:") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>ansiPath:=URItoPath(EcurrentDir%whichSide%) +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +>EcurrentDir%whichSide%:=decodeStrAs(ansiPath, "UTF-8") +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>EcurrentDir%whichSide%:=LTrim(EcurrentDir%whichSide%,"file:///") +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>EcurrentDir%whichSide%:=StrReplace(EcurrentDir%whichSide%, "%20", " ") +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>; d(EcurrentDir%whichSide%) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>lastChar:=SubStr(EcurrentDir%whichSide%, 0) +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (lastChar="\") +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>EcurrentDir%whichSide%:=SubStr(EcurrentDir%whichSide%, 1, StrLen(EcurrentDir%whichSide%)-1) +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>EcurrentDir%whichSide%:=Rtrim(EcurrentDir%whichSide%," ") +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>EcurrentDir%whichSide%:=StrReplace(EcurrentDir%whichSide%, "/" , "\") +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>Gui, ListView, vlistView%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +> +>currentDirSearch:="" +#^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>if (InStr(fileExist(EcurrentDir%whichSide%), "D")) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>stopSizes:=false +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +> +>if (lastDir%whichSide%!=EcurrentDir%whichSide% ) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>bothSameDir:=bothSameDir(whichSide) +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (lastDir%whichSide%!="" and EcurrentDir%otherSide%!=lastDir%whichSide%) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>for k, v in watching%whichSide% { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (v=lastDir%whichSide%) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>watching%whichSide%.Remove(k) +#^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>dirToStopWatching:=v +#^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk variable.def.ahk +>break +#^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>stopWatchFolder(whichSide,dirToStopWatching) +#^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>if (!bothSameDir) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>watching%whichSide%.Push(EcurrentDir%whichSide%) +#^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +>startWatchFolder(whichSide,EcurrentDir%whichSide%) +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>if (lastDir%whichSide%!="" and !cannotDirHistory%whichSide%) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>dirHistory%whichSide%.Push(lastDir%whichSide%) +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>if cannotDirHistory%whichSide% { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>cannotDirHistory%whichSide%:=false +#^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>lastDir%whichSide%:=EcurrentDir%whichSide% +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>focused=flistView +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +> +>filePaths:=[] +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>rowBak:=[] +#^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>; dates:=[] +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>sortableDates:=[] +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>sizes:=[] +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>sortableSizes:=[] +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>; dateColors:=[] +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; filesWithNoExt:=[] +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>if (lastIconNumber) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>rememberIconNumber:=lastIconNumber +#^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +> +>unsorted%whichSide%:=[] +#^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>sortedByDate%whichSide%:=[] +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>sortedBySize%whichSide%:=[] +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>canSortBySize%whichSide%:=false +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +>stuffByName%whichSide%:={} +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>sortedDates:=[] +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>sortedSizes%whichSide%:=[] +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>Loop, Files, % EcurrentDir%whichSide% "\*", DF +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>stuffByName%whichSide%[A_LoopFileName]:={date:A_LoopFileTimeModified,attri:A_LoopFileAttrib,size:A_LoopFileSize} +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>sortedDates.Push({date:A_LoopFileTimeModified,name:A_LoopFileName}) +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>sortedDates:=sortArrByKey(sortedDates,"date") +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>; sortedDates:=sortArrByKey(sortedDates,"date",true) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +> +>for k, v in sortedDates { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>sortedByDate%whichSide%.Push(v["name"]) +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>firstSizes%whichSide%:=true +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>whichsort%whichSide%:="newOld" +#^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>oldNew%whichSide%:=false +#^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +> +>renderFunctionsToSort(sortedByDate%whichSide%) +#^^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>Gui, ListView, folderlistView2_%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>LV_Delete() +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>parent1DirDirs%whichSide%:=[] +#^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>SplitPath, EcurrentDir%whichSide%, , parent1Dir%whichSide% +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>SplitPath, parent1Dir%whichSide%, Out2DirName%whichSide% , parent2Dir%whichSide%,,,OutDrive2%whichSide% +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>SplitPath, parent2Dir%whichSide%, Out3DirName%whichSide%, parent3Dir%whichSide%,,,OutDrive3%whichSide% +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>Gui, Show,NA,% EcurrentDir%whichSide% " - ahk_explorer" +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +> +>if (parent1Dir%whichSide%!=EcurrentDir%whichSide%) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (!Out2DirName%whichSide%) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +>Out2DirName%whichSide%:=OutDrive2%whichSide% +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>LV_ModifyCol(1,"NoSort", Out2DirName%whichSide%) +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +>Loop, Files, % parent1Dir%whichSide% "\*", D +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>if (A_LoopFileLongPath!=EcurrentDir%whichSide%) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Add(, A_LoopFileName) +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +>parent1DirDirs%whichSide%.Push(A_LoopFileLongPath) +#^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>toSelect:=(A_Index=1) ? 1 : A_Index-1 +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>Gui, ListView, folderlistView2_%whichSide% ;just in case +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>LV_Modify(toSelect, "+Select +Focus Vis") ; select +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>} else +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>LV_ModifyCol(1,"NoSort", "") +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>Gui, ListView, folderlistView1_%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>LV_Delete() +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>parent2DirDirs%whichSide%:=[] +#^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (parent2Dir%whichSide%!=parent1Dir%whichSide%) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (!Out3DirName%whichSide%) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +>Out3DirName%whichSide%:=OutDrive3%whichSide% +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>LV_ModifyCol(1,"NoSort", Out3DirName%whichSide%) +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +>Loop, Files, % parent2Dir%whichSide% "\*", D +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>if (A_LoopFileLongPath!=parent1Dir%whichSide%) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Add(, A_LoopFileName) +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +>parent2DirDirs%whichSide%.Push(A_LoopFileLongPath) +#^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>toSelect:=(A_Index=1) ? 1 : A_Index-1 +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>Gui, ListView, folderlistView1_%whichSide% ;just in case +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>LV_Modify(toSelect, "+Select +Focus Vis") ; select +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else +#^^^^ source.ahk keyword.control.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>LV_ModifyCol(1,"NoSort", "") +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>DriveGet, OutputVar, List +#^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +>drives:=StrSplit(OutputVar,"") +#^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>length:=drives.Length() +#^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>for i, drive in drives { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>y:=40*(i-1) +#^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>DriveGet, totalSpace, Capacity, %drive%: +#^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +>DriveSpaceFree, freeSpace, %drive%: +#^^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +> +>text:=drive ":\ " Round(100-100*freeSpace/totalSpace, 2) "%`n" autoMegaByteFormat(freeSpace) "/" autoMegaByteFormat(totalSpace) +#^^^^ source.ahk keyword.other.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk constant.numeric.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^ source.ahk constant.numeric.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (i>numberOfDrives) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>gui, add, button,h40 y%y% w%favoritesListViewWidth% vDrive%i% x0 Left ggChangeDrive, % text +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.keys.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>GuiControl, Show, Drive%i% +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>GuiControl, Text, Drive%i%, % text +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>loop % numberOfDrives { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (A_Index>length) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>GuiControl, Hide, Drive%A_Index% +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>if (length>numberOfDrives) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>numberOfDrives:=length +#^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk variable.def.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>SplitPath, EcurrentDir%whichSide%, OutFileName%whichSide%, OutDir%whichSide% +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>if (InStr(fileExist(OutDir%whichSide%), "D")) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>toFocus:=OutFileName%whichSide% +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>EcurrentDir%whichSide%:=OutDir%whichSide% +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +> +>renderCurrentDir() +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>; p(fileExist(currentDir)) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>EcurrentDir%whichSide%:=lastDir%whichSide% +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>GuiControl, Text,vcurrentDirEdit%whichSide%, % EcurrentDir%whichSide% +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +> +>if (focused!="changePath") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>renderCurrentDir() +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>; lastDir:=currentDir +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>} +#^ source.ahk punctuation.bracket.ahk +>Gui, ListView, vlistView%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>findNextDirNameNumberIteration(path) +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global left +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.keys.ahk +>global right +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.keys.ahk +>SplitPath, path, OutFileName, OutDir, OutExtension, OutNameNoExt, OutDrive +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +>getLeftRight(OutNameNoExt, "*") +#^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>pathToCheck:=OutDir "\" left right +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.keys.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.keys.ahk +>incrementNumber:=2 +#^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>while (FileExist(pathToCheck)) { +#^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>pathToCheck:=OutDir "\" left incrementNumber right +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.keys.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.keys.ahk +>incrementNumber++ +#^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return pathToCheck +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>getLeftRight(string, needle) +#^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global left +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.keys.ahk +>global right +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.keys.ahk +>asteriskPos:=InStr(string, "*") +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>left:=SubStr(string, 1, asteriskPos-1) +#^^^^ source.ahk keyword.keys.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>right:=SubStr(string, asteriskPos+1) +#^^^^^ source.ahk keyword.keys.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>ShellContextMenu(folderPath, files, win_hwnd = 0 ) +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>if ( !folderPath ) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>if !win_hwnd +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>Gui,SHELL_CONTEXT:New, +hwndwin_hwnd +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk keyword.keys.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +>Gui,Show +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk keyword.other.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>If sPath Is Not Integer +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>DllCall("shell32\SHParseDisplayName", "Wstr", folderPath, "Ptr", 0, "Ptr*", pidl, "Uint", 0, "Uint", 0) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>else +#^^^^ source.ahk keyword.control.ahk +>DllCall("shell32\SHGetFolderLocation", "Ptr", 0, "int", folderPath, "Ptr", 0, "Uint", 0, "Ptr*", pidl) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>DllCall("shell32\SHBindToObject","Ptr",0,"Ptr",pidl,"Ptr",0,"Ptr",GUID4String(IID_IShellFolder,"{000214E6-0000-0000-C000-000000000046}"),"Ptr*",pIShellFolder) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>length:=files.Length() +#^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>VarSetCapacity(apidl, length * A_PtrSize, 0) +#^^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>for k, v in files { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>;IShellFolder:ParseDisplayName +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>DllCall(VTable(pIShellFolder,3),"Ptr", pIShellFolder,"Ptr",win_hwnd,"Ptr",0,"Wstr",v,"Uint*",0,"Ptr*",tmpPIDL,"Uint*",0) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>NumPut(tmpPIDL, apidl, (k - 1)*A_PtrSize, "Ptr") +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>;IShellFolder->GetUIObjectOf +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>DllCall(VTable(pIShellFolder,10),"Ptr",pIShellFolder,"Ptr",win_hwnd,"Uint",length,"Ptr",&apidl,"Ptr",GUID4String(IID_IContextMenu,"{000214E4-0000-0000-C000-000000000046}"),"UINT*",0,"Ptr*",pIContextMenu) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>ObjRelease(pIShellFolder) +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>CoTaskMemFree(pidl) +#^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>hMenu := DllCall("CreatePopupMenu") +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>;IContextMenu->QueryContextMenu +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>;http://msdn.microsoft.com/en-us/library/bb776097%28v=VS.85%29.aspx +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>DllCall(VTable(pIContextMenu, 3), "Ptr", pIContextMenu, "Ptr", hMenu, "Uint", 0, "Uint", 3, "Uint", 0x7FFF, "Uint", 0x100) ;CMF_EXTENDEDVERBS +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; p(hMenu) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>ComObjError(0) +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>global pIContextMenu2 := ComObjQuery(pIContextMenu, IID_IContextMenu2:="{000214F4-0000-0000-C000-000000000046}") +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>global pIContextMenu3 := ComObjQuery(pIContextMenu, IID_IContextMenu3:="{BCFCE0A0-EC17-11D0-8D10-00A0C90F2719}") +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>e := A_LastError ;GetLastError() +#^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>ComObjError(1) +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (e != 0) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>goTo, StopContextMenu +#^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>Global WPOld:= DllCall("SetWindowLongPtr", "Ptr", win_hwnd, "int",-4, "Ptr",RegisterCallback("WindowProc"),"UPtr") +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>DllCall("GetCursorPos", "int64*", pt) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>; DllCall("InsertMenu", "Ptr", hMenu, "Uint", 0, "Uint", 0x0400|0x800, "Ptr", 2, "Ptr", 0) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; DllCall("InsertMenu", "Ptr", hMenu, "Uint", 0, "Uint", 0x0400|0x002, "Ptr", 1, "Ptr", &sPath) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>idn := DllCall("TrackPopupMenuEx", "Ptr", hMenu, "Uint", 0x0100|0x0001, "int", pt << 32 >> 32, "int", pt >> 32, "Ptr", win_hwnd, "Uint", 0) +#^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>; p(idn) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>; return +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>; Formatter ignores block comments for now, nbd +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +> /* +#^^^^^^^^^^ source.ahk comment.block.slashstar.ahk +> typedef struct _CMINVOKECOMMANDINFOEX { +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.block.slashstar.ahk +> DWORD cbSize; 0 +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.block.slashstar.ahk +> DWORD fMask; 4 +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.block.slashstar.ahk +> HWND hwnd; 8 +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.block.slashstar.ahk +> LPCSTR lpVerb; 8+A_PtrSize +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.block.slashstar.ahk +> LPCSTR lpParameters; 8+2*A_PtrSize +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.block.slashstar.ahk +> LPCSTR lpDirectory; 8+3*A_PtrSize +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.block.slashstar.ahk +> int nShow; 8+4*A_PtrSize +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.block.slashstar.ahk +> DWORD dwHotKey; 12+4*A_PtrSize +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.block.slashstar.ahk +> HANDLE hIcon; 16+4*A_PtrSize +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.block.slashstar.ahk +> LPCSTR lpTitle; 16+5*A_PtrSize +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.block.slashstar.ahk +> LPCWSTR lpVerbW; 16+6*A_PtrSize +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.block.slashstar.ahk +> LPCWSTR lpParametersW; 16+7*A_PtrSize +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.block.slashstar.ahk +> LPCWSTR lpDirectoryW; 16+8*A_PtrSize +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.block.slashstar.ahk +> LPCWSTR lpTitleW; 16+9*A_PtrSize +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.block.slashstar.ahk +> POINT ptInvoke; 16+10*A_PtrSize +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.block.slashstar.ahk +> } CMINVOKECOMMANDINFOEX, *LPCMINVOKECOMMANDINFOEX; +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.block.slashstar.ahk +> http://msdn.microsoft.com/en-us/library/bb773217%28v=VS.85%29.aspx +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.block.slashstar.ahk +> */ +#^^^^^^^^^^ source.ahk comment.block.slashstar.ahk +>struct_size := 16+11*A_PtrSize +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +>VarSetCapacity(pici,struct_size,0) +#^^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>NumPut(struct_size,pici,0,"Uint") ;cbSize +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^ source.ahk comment.line.semicolon.ahk +>NumPut(0x4000|0x20000000|0x00100000,pici,4,"Uint") ;fMask +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^ source.ahk comment.line.semicolon.ahk +>NumPut(win_hwnd,pici,8,"UPtr") ;hwnd +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^ source.ahk comment.line.semicolon.ahk +>NumPut(1,pici,8+4*A_PtrSize,"Uint") ;nShow +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^ source.ahk comment.line.semicolon.ahk +>NumPut(idn-3,pici,8+A_PtrSize,"UPtr") ;lpVerb +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^ source.ahk comment.line.semicolon.ahk +>NumPut(idn-3,pici,16+6*A_PtrSize,"UPtr") ;lpVerbW +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>NumPut(pt,pici,16+10*A_PtrSize,"Uptr") ;ptInvoke +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^ source.ahk comment.line.semicolon.ahk +> +>DllCall(VTable(pIContextMenu, 4), "Ptr", pIContextMenu, "Ptr", &pici) ; InvokeCommand +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +> +>DllCall("GlobalFree", "Ptr", DllCall("SetWindowLongPtr", "Ptr", win_hwnd, "int", -4, "Ptr", WPOld,"UPtr")) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>DllCall("DestroyMenu", "Ptr", hMenu) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>StopContextMenu: +#^^^^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>ObjRelease(pIContextMenu3) +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>ObjRelease(pIContextMenu2) +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>ObjRelease(pIContextMenu) +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>pIContextMenu2:=pIContextMenu3:=WPOld:=0 +#^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>Gui,SHELL_CONTEXT:Destroy +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>return idn +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>WindowProc(hWnd, nMsg, wParam, lParam) +#^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>Global pIContextMenu2, pIContextMenu3, WPOld +#^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +>If pIContextMenu3 +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>{ ;IContextMenu3->HandleMenuMsg2 +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>If !DllCall(VTable(pIContextMenu3, 7), "Ptr", pIContextMenu3, "Uint", nMsg, "Ptr", wParam, "Ptr", lParam, "Ptr*", lResult) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return lResult +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>Else If pIContextMenu2 +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>{ ;IContextMenu2->HandleMenuMsg +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>If !DllCall(VTable(pIContextMenu2, 6), "Ptr", pIContextMenu2, "Uint", nMsg, "Ptr", wParam, "Ptr", lParam) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return 0 +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>Return DllCall("user32.dll\CallWindowProcW", "Ptr", WPOld, "Ptr", hWnd, "Uint", nMsg, "Ptr", wParam, "Ptr", lParam) +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>VTable(ppv, idx) +#^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>Return NumGet(NumGet(1*ppv)+A_PtrSize*idx) +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>other_vtable(ptr, n) { +#^^^^^^^^^^^^ source.ahk functionline.ahk entity.name.function.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^^^ source.ahk functionline.ahk variable.def.ahk +# ^^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk variable.def.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.parenthesis.ahk +# ^ source.ahk functionline.ahk +# ^ source.ahk functionline.ahk punctuation.bracket.curly.ahk +>return NumGet(NumGet(ptr+0), n*A_PtrSize) +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>GUID4String(ByRef CLSID, String) +#^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>VarSetCapacity(CLSID, 16,0) +#^^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>return DllCall("ole32\CLSIDFromString", "wstr", String, "Ptr", &CLSID) >= 0 ? &CLSID : "" +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>Guid_FromStr(sGuid, ByRef VarOrAddress) +#^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>if IsByRef(VarOrAddress) && (VarSetCapacity(VarOrAddress) < 16) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>VarSetCapacity(VarOrAddress, 16) ; adjust capacity +#^^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>pGuid := IsByRef(VarOrAddress) ? &VarOrAddress : VarOrAddress +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +>if ( DllCall("ole32\CLSIDFromString", "WStr", sGuid, "Ptr", pGuid) < 0 ) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>throw Exception("Invalid GUID", -1, sGuid) +#^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>return pGuid ; return address of GUID struct +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>Guid_ToStr(ByRef VarOrAddress) +#^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>pGuid := IsByRef(VarOrAddress) ? &VarOrAddress : VarOrAddress +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +>VarSetCapacity(sGuid, 78) ; (38 + 1) * 2 +#^^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>if !DllCall("ole32\StringFromGUID2", "Ptr", pGuid, "Ptr", &sGuid, "Int", 39) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>throw Exception("Invalid GUID", -1, Format("", pGuid)) +#^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>return StrGet(&sGuid, "UTF-16") +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>CoTaskMemFree(pv) +#^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>Return DllCall("ole32\CoTaskMemFree", "Ptr", pv) +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>FileToClipboard(PathToCopy,Method="copy") +#^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>FileCount:=0 +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>PathLength:=0 +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>FileCount:=PathToCopy.Length() +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>; Count files and total string length +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +> +>for k, v in PathToCopy { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>PathLength+=StrLen(v) +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>; Loop,Parse,PathToCopy,`n,`r +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; { +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^ source.ahk comment.line.semicolon.ahk +>; PathLength+=StrLen(A_LoopField) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; } +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^ source.ahk comment.line.semicolon.ahk +> +>pid:=DllCall("GetCurrentProcessId","uint") +#^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>hwnd:=WinExist("ahk_pid " . pid) +#^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^^^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>; 0x42 = GMEM_MOVEABLE(0x2) | GMEM_ZEROINIT(0x40) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>hPath := DllCall("GlobalAlloc","uint",0x42,"uint",20 + (PathLength + FileCount + 1) * 2,"UPtr") +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>pPath := DllCall("GlobalLock","UPtr",hPath) +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>NumPut(20,pPath+0),pPath += 16 ; DROPFILES.pFiles = offset of file list +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^ source.ahk constant.numeric.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>NumPut(1,pPath+0),pPath += 4 ; fWide = 0 -->ANSI,fWide = 1 -->Unicode +#^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>Offset:=0 +#^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>for k, v in PathToCopy { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>offset += StrPut(v,pPath+offset,StrLen(v)+1,"UTF-16") * 2 +#^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>; Loop,Parse,PathToCopy,`n,`r ; Rows are delimited by linefeeds (`r`n). +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; offset += StrPut(A_LoopField,pPath+offset,StrLen(A_LoopField)+1,"UTF-16") * 2 +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +>DllCall("GlobalUnlock","UPtr",hPath) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>DllCall("OpenClipboard","UPtr",hwnd) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>DllCall("EmptyClipboard") +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>DllCall("SetClipboardData","uint",0xF,"UPtr",hPath) ; 0xF = CF_HDROP +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +> +>; Write Preferred DropEffect structure to clipboard to switch between copy/cut operations +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; 0x42 = GMEM_MOVEABLE(0x2) | GMEM_ZEROINIT(0x40) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>mem := DllCall("GlobalAlloc","uint",0x42,"uint",4,"UPtr") +#^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>str := DllCall("GlobalLock","UPtr",mem) +#^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>if (Method="copy") +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>DllCall("RtlFillMemory","UPtr",str,"uint",1,"UChar",0x05) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>else if (Method="cut") +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>DllCall("RtlFillMemory","UPtr",str,"uint",1,"UChar",0x02) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>else +#^^^^ source.ahk keyword.control.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>DllCall("CloseClipboard") +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>DllCall("GlobalUnlock","UPtr",mem) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>cfFormat := DllCall("RegisterClipboardFormat","Str","Preferred DropEffect") +#^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>DllCall("SetClipboardData","uint",cfFormat,"UPtr",mem) +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>DllCall("CloseClipboard") +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>sortArrayByArray(toSort, sortWith, reverse=false, key=false) +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.bracket.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>global +#^^^^^^ source.ahk keyword.other.ahk +>array:=[] +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>finalAr:=[] +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (key) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>count:=0 +#^^^^^ source.ahk keyword.other.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>for k, v in sortWith { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>count++ +#^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +>array.Push({1:v[key], 2:count}) +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>array:=ObjectSort(array, 1,, reverse) +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>for k in array { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>finalAr.Push(toSort[array[k][2]]) +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>for k in toSort { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>array.Push([toSort[k],sortWith[k]]) +#^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>array:=ObjectSort(array, 2,,reverse) +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>for k, v in array { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>finalAr.Push(v[1]) +#^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return finalAr +#^^^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>;end of functions +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>;hotkeys +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>#if winactive(thisUniqueWintitle) +#^^^ source.ahk keyword.control.directives.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk keyword.control.directives.ahk string.parameter.directives.ahk +>^e:: +#^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>; revealFileInExplorer(EcurrentDir%whichSide%, getSelectedNames()) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>path:=getSelectedPaths()[1] +#^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (path) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Run, % "explorer.exe /select,""" path """" +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Run, % "explorer.exe """ EcurrentDir%whichSide% """" +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>#d:: +#^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>if (focused="changePath") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>focused:="flistView" +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>GuiControl, Focus, vlistView%whichSide% +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>ComObjCreate("Shell.Application").ToggleDesktop() +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>submitAndRenderDir() +#^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>ComObjCreate("Shell.Application").ToggleDesktop() +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>$^+left:: +#^^^^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>if (focused="changePath" or focused="searchCurrentDirEdit") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>send, ^+{left} +#^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk keyword.keys.ahk +# ^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>gui, main:default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>whichSide:=1 +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>Gui, Show,NA,% EcurrentDir%whichSide% " - ahk_explorer" +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>GuiControl, Focus, vlistView1 ;bad code +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^ source.ahk comment.line.semicolon.ahk +>ControlFocus,, ahk_id %ListviewHwnd1% +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>GuiControl, +Background%BGColorOfSelectedPane%, vlistView1 +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +>GuiControl, +BackgroundWhite, vlistView2 +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +>EcurrentDir1:=EcurrentDir2 +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +>renderCurrentDir() +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>$^+right:: +#^^^^^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>if (focused="changePath") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>send, ^+{right} +#^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk keyword.keys.ahk +# ^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>gui, main:default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>whichSide:=2 +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>Gui, Show,NA,% EcurrentDir%whichSide% " - ahk_explorer" +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>GuiControl, Focus, vlistView2 ;bad code +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^ source.ahk comment.line.semicolon.ahk +>ControlFocus,, ahk_id %ListviewHwnd2% +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>GuiControl, +Background%BGColorOfSelectedPane%, vlistView2 +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +>GuiControl, +BackgroundWhite, vlistView1 +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +>EcurrentDir2:=EcurrentDir1 +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +>renderCurrentDir() +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>left:: ;always uses keyboard hook +#^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>^left:: +#^^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>if (focused="changePath" or focused="searchCurrentDirEdit") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>thisHotkey:=StrReplace(A_ThisHotkey, "left", "{left}") +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>send, %thisHotkey% +#^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>^1:: +#^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>selectPanel1: +#^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>gui, main:default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>whichSide:=1 +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>Gui, Show,NA,% EcurrentDir%whichSide% " - ahk_explorer" +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>GuiControl, Focus, vlistView1 ;bad code +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^ source.ahk comment.line.semicolon.ahk +>ControlFocus,, ahk_id %ListviewHwnd1% +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>GuiControl, +Background%BGColorOfSelectedPane%, vlistView1 +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +>GuiControl, +BackgroundWhite, vlistView2 +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>right:: ;always uses keyboard hook +#^^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>^right:: +#^^^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>if (focused="changePath" or focused="searchCurrentDirEdit") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>thisHotkey:=StrReplace(A_ThisHotkey, "Right", "{Right}") +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>send, %thisHotkey% +#^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>^2:: +#^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>selectPanel2: +#^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>gui, main:default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>whichSide:=2 +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>Gui, Show,NA,% EcurrentDir%whichSide% " - ahk_explorer" +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>GuiControl, Focus, vlistView2 ;bad code +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^ source.ahk comment.line.semicolon.ahk +>ControlFocus,, ahk_id %ListviewHwnd2% +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>GuiControl, +Background%BGColorOfSelectedPane%, vlistView2 +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +>GuiControl, +BackgroundWhite, vlistView1 +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +> +>return +#^^^^^^ source.ahk keyword.control.ahk +>$RAlt:: +#^^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>if (focused="searchCurrentDirEdit" or focused="flistView" or focused="listViewInSearch") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Run,"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe", % EcurrentDir%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>$RCtrl:: +#^^^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>if (focused="searchCurrentDirEdit" or focused="flistView" or focused="listViewInSearch") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Run,"%ComSpec%", % EcurrentDir%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>$RShift:: +#^^^^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>if (focused="searchCurrentDirEdit" or focused="flistView" or focused="listViewInSearch") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>toRun:= """" vscodePath """ """ EcurrentDir%whichSide% """" +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>run, %toRun% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>send, +\ +#^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^ source.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>$\:: +#^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>if (focused="searchCurrentDirEdit" or focused="flistView" or focused="listViewInSearch") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>selectedPaths:=getSelectedPaths() +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (selectedPaths.Length()) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>for k,v in selectedPaths { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>; toRun:= """" vscodePath """ """ v """" +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>toRun:= """" A_AhkPath """ /CP65001 ""lib\vscode_runner.ahk"" """ v """" +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk constant.character.escape.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>; d(toRun) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>run, %toRun% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>send, \ +#^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^ source.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>; $`:: +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^ source.ahk comment.line.semicolon.ahk +>p(watching1,watching2) +#^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>Return +#^^^^^^ source.ahk keyword.control.ahk +> +>$^+r:: +#^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>namesToMultiRename:=getSelectedNames() +#^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>multiRenameDir:=EcurrentDir%whichSide% +#^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>multiRenamelength:=namesToMultiRename.Length() +#^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>Gui, multiRenameGui:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>; Gui,Font, s10, Segoe UI +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>Gui,Font, s10, Consolas +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +> +>Gui, Add, Edit, w400 vmultiRenameTheName +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>Gui, Add, Edit, x+5 w300 vmultiRenameStartingNums +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +> +>Gui, Add, Button, h30 w200 y+5 x+-705 ggmultiRenamePreview,preview +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk variable.def.ahk +>Gui, Add, Button, h30 w200 x+5 ggmultiRenameApply,apply +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^ source.ahk variable.def.ahk +> +>Gui, Add, ListBox, r%multiRenamelength% w500 y+5 vvmultiRenameTargets x+-405 , % array_ToVerticleBarString(selectedNames) +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>Gui, Add, ListBox, r%multiRenamelength% w500 x+5 vvmultiRenamePreview, +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +>Gui, show,,multiRenameGui +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>$^r:: +#^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>$esc:: +#^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>stopSearching() +#^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>$^n:: +#^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +> +>return +#^^^^^^ source.ahk keyword.control.ahk +>$^+n:: +#^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>Gui, createFolder:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +> +>creatingNewFolder:=true +#^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>dontSearch:=true +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>newFolderPath:=findNextDirNameNumberIteration(EcurrentDir%whichSide% "\New Folder *") +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>SplitPath, newFolderPath, newFolderName +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +>strLen:=StrLen(newFolderName) +#^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (SubStr(newFolderName, 0)=" " and strLen > 1) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>newFolderName:=SubStr(newFolderName, 1, strLen-1) +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>if (!notFirstTimeCreatingFolder) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>notFirstTimeCreatingFolder:=true +#^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>Gui, createFolder: Font, s10, Segoe UI +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk variable.def.ahk +>;Segoe UI +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^ source.ahk comment.line.semicolon.ahk +>gui, createFolder: add, text,, Folder Name: ; Save this control's position and start a new section. +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>gui, createFolder: add, edit, w250 vcreateFolderName hwndfolderCreationHwnd, %newFolderName% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>gui, createFolder: add, button, Default w125 x11 vcreate gcreateLabel,Create Folder`n{Enter} +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk keyword.keys.ahk +# ^ source.ahk punctuation.bracket.ahk +>gui, createFolder: add, button, w125 x+2 vcreateAndOpen gcreateAndOpenLabel,Create and Open`n{Shift + Enter} +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk keyword.keys.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.keys.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>; GuiControl, text, createFolderName, %newFolderName% +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>ControlSetText,, %newFolderName%, ahk_id %folderCreationHwnd% +#^^^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>SendMessage, 0xB1, 0, -1,, % "ahk_id " folderCreationHwnd +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>gui, createFolder: show,, create_folder +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +>dontSearch:=false +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +> +>return +#^^^^^^ source.ahk keyword.control.ahk +>^s:: +#^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>selectedNames:=getSelectedNames() +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>for notUsed, name in selectedNames { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>Run, "%spekPath%" "%name%", % EcurrentDir%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>!h:: +#^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>hashFiles("sha256") +#^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>^h:: +#^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>hashFiles("md5") +#^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>^+e:: +#^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>selectedNames:=getSelectedNames() +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>for notUsed, name in selectedNames { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>SplitPath, name,,,, OutNameNoExt +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +>FileRecycle, % EcurrentDir%whichSide% "\" OutNameNoExt ".exe" +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>Run, "%Ahk2ExePath%" /in "%name%" /bin "%Ahk2ExePath%\..\Unicode 32-bit.bin", % EcurrentDir%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>!c:: +#^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>copySelectedNames: +#^^^^^^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>dontSearch:=true +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>selectedNames:=getSelectedNames() +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>finalStr= +#^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +>length:=selectedNames.Length() +#^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>for k, v in selectedNames { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (k=length) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>finalStr.=v +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>finalStr.=v "`n" +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>clipboard:=finalStr +#^^^^^^^^^ source.ahk constant.language.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +>dontSearch:=false +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +> +>#Persistent +#^^^^^^^^^^^ source.ahk keyword.control.directives.ahk +>ToolTip, % length +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +>SetTimer, RemoveToolTip,-1000 +#^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^ source.ahk constant.numeric.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>copySelectedPaths: +#^^^^^^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>^+c:: +#^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>dontSearch:=true +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>selectedNames:=getSelectedNames() +#^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>finalStr= +#^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +>length:=selectedNames.Length() +#^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>for k, v in selectedNames { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (k=length) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>finalStr.=EcurrentDir%whichSide% "\" v +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>finalStr.=EcurrentDir%whichSide% "\" v "`n" +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>clipboard:=finalStr +#^^^^^^^^^ source.ahk constant.language.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +>dontSearch:=false +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +> +>#Persistent +#^^^^^^^^^^^ source.ahk keyword.control.directives.ahk +>ToolTip, % length +#^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +>SetTimer, RemoveToolTip,-1000 +#^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^ source.ahk constant.numeric.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>$!left:: +#^^^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>focusDirOnBack:=true +#^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>goToParentDir: +#^^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>SplitPath, % EcurrentDir%whichSide%,OutDirName, ParentDir1 +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +>if (focusDirOnBack) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>focusDirOnBack:=false +#^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +>toFocus:=OutDirName +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>EcurrentDir%whichSide%:=ParentDir1 +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +>renderCurrentDir() +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>$!right:: +#^^^^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>undoHistory%whichSide%.Push(EcurrentDir%whichSide%) +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +>EcurrentDir%whichSide%:=dirHistory%whichSide%[dirHistory%whichSide%.Length()] +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>dirHistory%whichSide%.RemoveAt(dirHistory%whichSide%.Length()) +#^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>cannotDirHistory%whichSide%:=true +#^^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^ source.ahk constant.language.ahk +>renderCurrentDir() +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>$!up:: +#^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>EcurrentDir%whichSide%:=undoHistory%whichSide%[undoHistory%whichSide%.Length()] +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>undoHistory%whichSide%.RemoveAt(undoHistory%whichSide%.Length()) +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>renderCurrentDir() +#^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>^l:: +#^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>/:: +#^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>; p(434) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>focused:="changePath" +#^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +>ControlFocus,, % "ahk_id " Edithwnd%whichSide% +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>SendMessage, 177, 0, -1,, % "ahk_id " Edithwnd%whichSide% +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>$backspace:: +#^^^^^^^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>if (focused="changePath" or focused="renaming") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>send, {backspace} +#^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk keyword.keys.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else if (focused="listViewInSearch") { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (searchString%whichSide%="") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>stopSearching() +#^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>GuiControl, focus,vcurrentDirEdit%whichSide% +#^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>SendMessage, 0xB1, -2, -1,, % "ahk_id " Edithwnd%whichSide% +#^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>send, {backspace} +#^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk keyword.keys.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else if (focused="searchCurrentDirEdit") { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (searchString%whichSide%="") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>stopSearching() +#^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>send, {backspace} +#^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk keyword.keys.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else if (focused="flistView") { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>gosub,goToParentDir +#^^^^^ source.ahk golabel.ahk support.function.ahk +# ^ source.ahk golabel.ahk +# ^^^^^^^^^^^^^ source.ahk golabel.ahk entity.name.function.label.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>$^+up:: +#^^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>gosub, shiftUp +#^^^^^ source.ahk golabel.ahk support.function.ahk +# ^^ source.ahk golabel.ahk +# ^^^^^^^ source.ahk golabel.ahk entity.name.function.label.ahk +>gosub, shiftUp +#^^^^^ source.ahk golabel.ahk support.function.ahk +# ^^ source.ahk golabel.ahk +# ^^^^^^^ source.ahk golabel.ahk entity.name.function.label.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>shiftUp: +#^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>$+up:: +#^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>Gui, ListView, vlistView%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +> +>focusRow:=LV_GetNext(0, "F") +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>before:=LV_GetNext(focusRow - 2) +#^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (focusRow - 1 > 0) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (before=focusRow - 1) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Modify(focusRow, "-Select -Focus") +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Modify(focusRow - 1,"+Select +Focus Vis") +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Modify(focusRow - 1,"+Select +Focus Vis") +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>numberOfRows:=LV_GetCount() +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Modify(numberOfRows,"+Select +Focus Vis") +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>$^up:: +#^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>Gui, ListView, vlistView%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>selectedRow:=LV_GetNext() +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>rowToSelect:=selectedRow-1 +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +> +>if (rowToSelect>0) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Modify(rowToSelect, "+Select +Focus Vis") ; select +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>$up:: +#^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>Gui, ListView, vlistView%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>selectedRow:=LV_GetNext() +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>numberOfRows:=LV_GetCount() +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>loop % numberOfRows +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>LV_Modify(A_Index, "-Select -Focus") ; select +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>if (selectedRow<2) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Modify(numberOfRows, "+Select +Focus Vis") ; select +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Modify(selectedRow-1, "+Select +Focus Vis") ; select +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>$+home:: +#^^^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>if (focused="changePath" or focused="searchCurrentDirEdit") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>send, +{home} +#^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^ source.ahk keyword.keys.ahk +# ^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>Gui, ListView, vlistView%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>selectedRow:=LV_GetNext() +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>loop % selectedRow - 1 { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Modify(A_Index, "+Select +Focus Vis") ; select +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>return +#^^^^^^ source.ahk keyword.control.ahk +>$+end:: +#^^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>if (focused="changePath" or focused="searchCurrentDirEdit") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>send, +{end} +#^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^ source.ahk keyword.keys.ahk +# ^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>Gui, ListView, vlistView%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>selectedRow:=LV_GetNext() +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>numberOfRows:=LV_GetCount() +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>loop % numberOfRows - selectedRow +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +>{ +#^ source.ahk punctuation.bracket.ahk +>LV_Modify(A_Index + selectedRow, "+Select +Focus Vis") ; select +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk constant.language.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>return +#^^^^^^ source.ahk keyword.control.ahk +>selectCurrent: +#^^^^^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>Gui, ListView, vlistView%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>selectedRow:=LV_GetNext(,"F") +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Modify(selectedRow, "-Select -Focus") ; select +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>LV_Modify(selectedRow, "+Select +Focus Vis") ; select +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>$^+down:: +#^^^^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>gosub, shiftDown +#^^^^^ source.ahk golabel.ahk support.function.ahk +# ^^ source.ahk golabel.ahk +# ^^^^^^^^^ source.ahk golabel.ahk entity.name.function.label.ahk +>gosub, shiftDown +#^^^^^ source.ahk golabel.ahk support.function.ahk +# ^^ source.ahk golabel.ahk +# ^^^^^^^^^ source.ahk golabel.ahk entity.name.function.label.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>shiftDown: +#^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>$+down:: +#^^^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>Gui, ListView, vlistView%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +> +>focusRow:=LV_GetNext(0, "F") +#^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>after:=LV_GetNext(focusRow) +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>numberOfRows:=LV_GetCount() +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +> +>if (focusRow < numberOfRows) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (after=focusRow + 1) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Modify(focusRow, "-Select -Focus") +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Modify(focusRow + 1,"+Select +Focus Vis") +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Modify(focusRow + 1,"+Select +Focus Vis") +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Modify(1,"+Select +Focus Vis") +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>return +#^^^^^^ source.ahk keyword.control.ahk +>$^down:: +#^^^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>Gui, ListView, vlistView%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +> +>selectedRow:=0 +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>index:=0 +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>loop { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>index:=LV_GetNext(index) +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (!index) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>break +#^^^^^ source.ahk keyword.control.ahk +>selectedRow:=index +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk variable.def.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>LV_Modify(selectedRow+1, "+Select +Focus Vis") ; select +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>$down:: +#^^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>SetTimer, downLabel ,-0 +#^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>downLabel: +#^^^^^^^^^^ source.ahk labelline.ahk entity.name.function.label.ahk +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>Gui, ListView, vlistView%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +> +>selectedRows:=[] +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>selectedRow:=0 +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>index:=0 +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +>loop { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>index:=LV_GetNext(index) +#^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (!index) +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>break +#^^^^^ source.ahk keyword.control.ahk +>selectedRow:=index +#^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk variable.def.ahk +>selectedRows.Push(index) +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>for k, v in selectedRows { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Modify(v, "-Select -Focus") ; select +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>numberOfRows:=LV_GetCount() +#^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (selectedRow=0) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Modify(1, "+Select +Focus Vis") ; select +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else if (selectedRow < numberOfRows) { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^ source.ahk keyword.operator.comparison.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Modify(selectedRow+1, "+Select +Focus Vis") ; select +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>else { +#^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>LV_Modify(1, "+Select +Focus Vis") ; select +#^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk constant.numeric.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk comment.line.semicolon.ahk +# ^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^ source.ahk comment.line.semicolon.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>;how to fix $enter not working ? why ? +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>;sign out and sign in fixed it +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>$enter:: +#^^^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>Gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>if (!canRename) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk keyword.operator.arithmetic.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (focused="flistView" or focused="searchCurrentDirEdit" or focused="listViewInSearch") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>stopSizes:=false +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +>gui, ListView, vlistView%whichSide% +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk keyword.other.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>for unused, fullPath in getSelectedPaths() { +#^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>doubleClickedFolderOrFile(fullPath) +#^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk entity.name.function.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>; row:=LV_GetNext("") +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; doubleClickedNormal(row) +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>ControlFocus,, % "ahk_id " ListviewHwnd%whichSide% +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} else if (focused="changePath" or focused="renaming") { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^ source.ahk keyword.other.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>ControlFocus,, % "ahk_id " ListviewHwnd%whichSide% +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>} else { +#^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^^^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>send, {enter} +#^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk keyword.keys.ahk +# ^ source.ahk punctuation.bracket.ahk +>} +#^ source.ahk punctuation.bracket.ahk +> +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>#if winactive("renamingWinTitle ahk_class AutoHotkeyGUI") +#^^^ source.ahk keyword.control.directives.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk keyword.control.directives.ahk string.parameter.directives.ahk +> +>$esc:: +#^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>if (focused="flistView") { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk keyword.operator.assignment.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>if (canRename) { +#^^ source.ahk keyword.control.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +>canRename:=false +#^^^^^^^^^ source.ahk variable.def.ahk +# ^^ source.ahk keyword.operator.assignment.ahk +# ^^^^^ source.ahk constant.language.ahk +>; gui, renameSimple:Default +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>; gui, submit +#^ source.ahk comment.line.semicolon.ahk punctuation.definition.comment.ahk +# ^^^^^^^^^^^^ source.ahk comment.line.semicolon.ahk +>gui, main:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>ControlFocus,, % "ahk_id " ListviewHwnd%whichSide% +#^^^^^^^^^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^ source.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.begin.ahk +# ^^^^^^^ source.ahk string.quoted.double.ahk +# ^ source.ahk string.quoted.double.ahk punctuation.definition.string.end.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +# ^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.definition.variable.percent.ahk +> +>gui, renameSimple:Default +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^^^^^^ source.ahk variable.def.ahk +# ^ source.ahk punctuation.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>gui, destroy +#^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^^^^^^^ source.ahk keyword.other.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +>} +#^ source.ahk punctuation.bracket.ahk +>send, {enter} +#^^^^ source.ahk support.function.ahk +# ^ source.ahk punctuation.ahk +# ^ source.ahk +# ^ source.ahk punctuation.bracket.ahk +# ^^^^^ source.ahk keyword.keys.ahk +# ^ source.ahk punctuation.bracket.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>#if winactive("create_folder ahk_class AutoHotkeyGUI") +#^^^ source.ahk keyword.control.directives.ahk +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ahk keyword.control.directives.ahk string.parameter.directives.ahk +> +>$enter:: +#^^^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>Gosub, createLabel +#^^^^^ source.ahk golabel.ahk support.function.ahk +# ^^ source.ahk golabel.ahk +# ^^^^^^^^^^^ source.ahk golabel.ahk entity.name.function.label.ahk +> +>return +#^^^^^^ source.ahk keyword.control.ahk +> +>$+enter:: +#^^^^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>$^+enter:: +#^^^^^^^^ source.ahk hotkeyline.ahk entity.name.function.label.ahk +# ^^ source.ahk hotkeyline.ahk punctuation.definition.equals.colon +>Gosub, createAndOpenLabel +#^^^^^ source.ahk golabel.ahk support.function.ahk +# ^^ source.ahk golabel.ahk +# ^^^^^^^^^^^^^^^^^^ source.ahk golabel.ahk entity.name.function.label.ahk +>return +#^^^^^^ source.ahk keyword.control.ahk +> \ No newline at end of file diff --git a/syntaxes/ahk.tmLanguage.json b/syntaxes/ahk.tmLanguage.json deleted file mode 100644 index 8dff9820..00000000 --- a/syntaxes/ahk.tmLanguage.json +++ /dev/null @@ -1,315 +0,0 @@ -{ - "fileTypes": ["ahk"], - "name": "AutoHotkey", - "scopeName": "source.ahk", - "patterns": [ - { - "include": "#comment" - }, - { - "include": "#string" - }, - { - "include": "#script-block" - }, - { - "include": "#function" - }, - { - "include": "#function-call" - }, - { - "include": "#keyword" - }, - { - "include": "#punctuation" - }, - { - "include": "#text" - } - ], - "repository": { - "comment": { - "patterns": [ - { - "captures": { - "1": { - "name": "punctuation.definition.comment.ahk" - } - }, - "match": "\\s*(;).*", - "name": "comment.line.semicolon.ahk", - "example": ";comment" - }, - { - "begin": "^\\s*/\\*", - "end": "^\\s*\\*/", - "name": "comment.block.slashstar.ahk", - "example": "/* comment */" - } - ] - }, - "string": { - "patterns": [ - { - "begin": "^\\s*\\((?!.*\\))", - "end": "^\\s*\\)", - "name": "string.ahk", - "comment": "I can't get mean." - } - ] - }, - "script-block": { - "patterns": [ - { - "captures": { - "1": { - "name": "keyword.class.ahk" - }, - "2": { - "name": "support.class.ahk" - }, - "4": { - "name": "keyword.class.ahk" - }, - "5": { - "name": "support.class.ahk" - } - }, - "match": "(?i:\\b(class)\\b\\s*(\\w+))\\s*((extends)\\s+(\\w+))?", - "name": "labelline.ahk", - "example": "label:" - }, - { - "captures": { - "1": { - "name": "entity.name.function.label.ahk" - }, - "2": { - "name": "comment.line.semicolon.label.ahk" - } - }, - "match": "^\\s*(\\w+:)\\s*(;.*)?$", - "name": "labelline.ahk", - "example": "label:" - }, - { - "captures": { - "1": { - "name": "support.function.ahk" - }, - "2": { - "name": "entity.name.function.label.ahk" - } - }, - "match": "(?i:(Gosub)\\s*,?\\s*(\\w+))", - "name": "golabel.ahk", - "example": "Gosub label" - }, - { - "captures": { - "1": { - "name": "entity.name.function.label.ahk" - }, - "2": { - "name": "plaintext" - } - }, - "match": "(?i: *(:[rnksipezb0c\\*]{0,2}:.+::)(.+))", - "name": "hotstring.ahk", - "example": "::hot::" - }, - { - "captures": { - "1": { - "name": "entity.name.function.label.ahk" - }, - "2": { - "name": "punctuation.definition.equals.colon" - } - }, - "match": "^\\s*(.+)(::)", - "name": "hotkeyline.ahk", - "example": "^c::" - } - ] - }, - "function-call": { - "patterns": [ - { - "captures": { - "1": { - "name": "string.parameter.import.ahk" - } - }, - "match": "#\\b(?i:include|includeagain)\\b(.*)$", - "name": "keyword.control.import.ahk", - "example": "#include" - }, - { - "captures": { - "1": { - "name": "string.parameter.directives.ahk" - }, - "2": { - "name": "comment.line.semicolon.directive.ahk" - } - }, - "match": "#\\b(?i:allowsamelinecomments|clipboardtimeout|commentflag|errorstdout|escapechar|hotkeyinterval|hotkeymodifiertimeout|hotstring|if|iftimeout|ifwinactive|ifwinexist|ifwinnotactive|ifwinnotexist|inputlevel|installkeybdhook|installmousehook|keyhistory|ltrim|maxhotkeysperinterval|maxmem|maxthreads|maxthreadsbuffer|maxthreadsperhotkey|menumaskkey|noenv|notrayicon|persistent|singleinstance|usehook|warn|winactivateforce)\\b([^;]*)(\\s+;.*)?$", - "name": "keyword.control.directives.ahk", - "example": "#persistent" - }, - { - "match": "\\b(?i:autotrim|blockinput|click|clipwait|control|controlclick|controlfocus|controlget|controlgetfocus|controlgetpos|controlgettext|controlmove|controlsend|controlsendraw|controlsettext|coordmode|detecthiddentext|detecthiddenwindows|drive|driveget|drivespacefree|edit|envadd|envdiv|envget|envmult|envset|envsub|envupdate|fileappend|filecopy|filecopydir|filecreatedir|filecreateshortcut|filedelete|fileencoding|filegetattrib|filegetshortcut|filegetsize|filegettime|filegetversion|fileinstall|filemove|filemovedir|fileread|filereadline|filerecycle|filerecycleempty|fileremovedir|fileselectfile|fileselectfolder|filesetattrib|filesettime|formattime|getkeystate|gosub|goto|groupactivate|groupadd|groupclose|groupdeactivate|gui|guicontrol|guicontrolget|hotkey|ifequal|ifexist|ifgreater|ifgreaterorequal|ifinstring|ifless|iflessorequal|ifmsgbox|ifnotequal|ifnotexist|ifnotinstring|ifwinactive|ifwinexist|ifwinnotactive|ifwinnotexist|imagesearch|inidelete|iniread|iniwrite|input|inputbox|keyhistory|keywait|listhotkeys|listlines|listvars|menu|mouseclick|mouseclickdrag|mousegetpos|mousemove|msgbox|onexit|outputdebug|pause|pixelgetcolor|pixelsearch|postmessage|process|progress|random|regdelete|regread|regwrite|reload|run|runas|runwait|send|sendevent|sendinput|sendlevel|sendmessage|sendmode|sendplay|sendraw|setbatchlines|setcapslockstate|setcontroldelay|setdefaultmousespeed|setenv|setformat|setkeydelay|setmousedelay|setnumlockstate|setscrolllockstate|setstorecapslockmode|setregview|settimer|settitlematchmode|setwindelay|setworkingdir|shutdown|sleep|sort|soundbeep|soundget|soundgetwavevolume|soundplay|soundset|soundsetwavevolume|splashimage|splashtextoff|splashtexton|splitpath|statusbargettext|statusbarwait|stringcasesense|stringgetpos|stringleft|stringlen|stringlower|stringmid|stringreplace|stringright|stringsplit|stringtrimleft|stringtrimright|stringupper|suspend|sysget|thread|tooltip|transform|traytip|urldownloadtofile|winactivate|winactivatebottom|winclose|winget|wingetactivestats|wingetactivetitle|wingetclass|wingetpos|wingettext|wingettitle|winhide|winkill|winmaximize|winmenuselectitem|winminimize|winminimizeall|winminimizeallundo|winmove|winrestore|winset|winsettitle|winshow|winwait|winwaitactive|winwaitclose|winwaitnotactive)\\b", - "name": "support.function.ahk", - "example": "winkill" - }, - { - "match": "\\b(?!MsgBox)(?<=\\.)(?i:length|ateof|encoding|__handle|name|isbuiltin|isvariadic|minparams|maxparams|position|pos)(?!\\[|\\(|\\.)\\b", - "name": "support.function.ahk", - "example": ".length" - }, - { - "match": "\\b(?!MsgBox)(?i:a_ahkpath|a_args|a_listlines|a_sendmode|a_sendlevel|a_storecapslockmode|a_coordmodetooltip|a_coordmodepixel|a_coordmodemouse|a_coordmodecaret|a_coordmodemenu|a_timeidlekeyboard|a_timeidlemouse|a_defaultgui|a_defaultlistview|a_defaulttreeview|a_comspec|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guievent|a_guicontrol|a_guicontrolevent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles|true|false)\\b", - "name": "constant.language.ahk", - "example": "A_ScriptDir" - } - ] - }, - "keyword": { - "patterns": [ - { - "match": "\\b(?!MsgBox)(?i:this)\\b", - "name": "support.class.ahk", - "example": "this" - }, - { - "match": "\\b(?!MsgBox)(?i:new|__New|__Delete|shift|lshift|rshift|alt|lalt|ralt|control|lcontrol|rcontrol|ctrl|lctrl|rctrl|lwin|rwin|appskey|altdown|altup|shiftdown|shiftup|ctrldown|ctrlup|lwindown|lwinup|rwindown|rwinup|lbutton|rbutton|mbutton|wheelup|wheelleft|wheelright|wheeldown|xbutton1|xbutton2|joy1|joy2|joy3|joy4|joy5|joy6|joy7|joy8|joy9|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy30|joy31|joy32|joyx|joyy|joyz|joyr|joyu|joyv|joypov|joyname|joybuttons|joyaxes|joyinfo|space|tab|enter|escape|esc|backspace|bs|delete|del|insert|ins|pgup|pgdn|home|end|up|down|left|right|printscreen|ctrlbreak|pause|scrolllock|capslock|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadmult|numpadadd|numpadsub|numpaddiv|numpaddot|numpaddel|numpadins|numpadclear|numpadup|numpaddown|numpadleft|numpadright|numpadhome|numpadend|numpadpgup|numpadpgdn|numpadenter|f1|f2|f3|f4|f5|f6|f7|f8|f9|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f20|f21|f22|f23|f24|browser_back|browser_forward|browser_refresh|browser_stop|browser_search|browser_favorites|browser_home|volume_mute|volume_down|volume_up|media_next|media_prev|media_stop|media_play_pause|launch_mail|launch_media|launch_app1|launch_app2|vk\\d+|sc\\d+)\\b(?!\\s*\\()\\b", - "name": "keyword.keys.ahk", - "example": "LButton" - }, - { - "match": "\\b(?!MsgBox)(?|<>|[<>=]=|!=", - "name": "keyword.operator.comparison.ahk" - } - ] - }, - "punctuation": { - "patterns": [ - { - "match": ":|\\?|`|,", - "name": "punctuation.ahk" - }, - { - "match": "[\\[\\](){}]", - "name": "punctuation.bracket.ahk" - }, - { - "match": "%", - "name": "punctuation.definition.variable.percent.ahk" - } - ] - }, - "function": { - "patterns": [ - { - "captures": { - "1": { - "name": "entity.name.function.ahk" - }, - "2": { - "name": "punctuation.bracket.parenthesis.ahk" - }, - "3": { - "patterns": [ - { - "include": "#text" - } - ] - }, - "4": { - "name": "punctuation.bracket.parenthesis.ahk" - }, - "5": { - "name": "punctuation.bracket.curly.ahk" - }, - "6": { - "name": "comment.line.semicolon.functionline.ahk" - } - }, - "match": "(?i:^(\\s*\\w+)(?- + #\b(?i:allowsamelinecomments|clipboardtimeout|commentflag|errorstdout|escapechar|hotkeyinterval|hotkeymodifiertimeout|hotstring|if|iftimeout|ifwinactive|ifwinexist|ifwinnotactive|ifwinnotexist|inputlevel|installkeybdhook|installmousehook|keyhistory|ltrim|maxhotkeysperinterval|maxmem|maxthreads|maxthreadsbuffer|maxthreadsperhotkey|menumaskkey|noenv|notrayicon|persistent|singleinstance|usehook|warn|winactivateforce)\b([^;]*)(\s+;.*)?$ + name: keyword.control.directives.ahk + example: '#persistent' + - match: >- + \b(?i:autotrim|blockinput|click|clipwait|control|controlclick|controlfocus|controlget|controlgetfocus|controlgetpos|controlgettext|controlmove|controlsend|controlsendraw|controlsettext|coordmode|detecthiddentext|detecthiddenwindows|drive|driveget|drivespacefree|edit|envadd|envdiv|envget|envmult|envset|envsub|envupdate|fileappend|filecopy|filecopydir|filecreatedir|filecreateshortcut|filedelete|fileencoding|filegetattrib|filegetshortcut|filegetsize|filegettime|filegetversion|fileinstall|filemove|filemovedir|fileread|filereadline|filerecycle|filerecycleempty|fileremovedir|fileselectfile|fileselectfolder|filesetattrib|filesettime|formattime|getkeystate|gosub|goto|groupactivate|groupadd|groupclose|groupdeactivate|gui|guicontrol|guicontrolget|hotkey|ifequal|ifexist|ifgreater|ifgreaterorequal|ifinstring|ifless|iflessorequal|ifmsgbox|ifnotequal|ifnotexist|ifnotinstring|ifwinactive|ifwinexist|ifwinnotactive|ifwinnotexist|imagesearch|inidelete|iniread|iniwrite|input|inputbox|keyhistory|keywait|listhotkeys|listlines|listvars|menu|mouseclick|mouseclickdrag|mousegetpos|mousemove|msgbox|onexit|outputdebug|pause|pixelgetcolor|pixelsearch|postmessage|process|progress|random|regdelete|regread|regwrite|reload|run|runas|runwait|send|sendevent|sendinput|sendlevel|sendmessage|sendmode|sendplay|sendraw|setbatchlines|setcapslockstate|setcontroldelay|setdefaultmousespeed|setenv|setformat|setkeydelay|setmousedelay|setnumlockstate|setscrolllockstate|setstorecapslockmode|setregview|settimer|settitlematchmode|setwindelay|setworkingdir|shutdown|sleep|sort|soundbeep|soundget|soundgetwavevolume|soundplay|soundset|soundsetwavevolume|splashimage|splashtextoff|splashtexton|splitpath|statusbargettext|statusbarwait|stringcasesense|stringgetpos|stringleft|stringlen|stringlower|stringmid|stringreplace|stringright|stringsplit|stringtrimleft|stringtrimright|stringupper|suspend|sysget|thread|tooltip|transform|traytip|urldownloadtofile|winactivate|winactivatebottom|winclose|winget|wingetactivestats|wingetactivetitle|wingetclass|wingetpos|wingettext|wingettitle|winhide|winkill|winmaximize|winmenuselectitem|winminimize|winminimizeall|winminimizeallundo|winmove|winrestore|winset|winsettitle|winshow|winwait|winwaitactive|winwaitclose|winwaitnotactive)\b + name: support.function.ahk + example: winkill + - match: >- + \b(?!MsgBox)(?<=\.)(?i:length|ateof|encoding|__handle|name|isbuiltin|isvariadic|minparams|maxparams|position|pos)(?!\[|\(|\.)\b + name: support.function.ahk + example: .length + - match: >- + \b(?!MsgBox)(?i:a_ahkpath|a_args|a_listlines|a_sendmode|a_sendlevel|a_storecapslockmode|a_coordmodetooltip|a_coordmodepixel|a_coordmodemouse|a_coordmodecaret|a_coordmodemenu|a_timeidlekeyboard|a_timeidlemouse|a_defaultgui|a_defaultlistview|a_defaulttreeview|a_comspec|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guievent|a_guicontrol|a_guicontrolevent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles|true|false)\b + name: constant.language.ahk + example: A_ScriptDir + keyword: + patterns: + - match: \b(?!MsgBox)(?i:this)\b + name: support.class.ahk + example: this + - match: >- + \b(?!MsgBox)(?i:new|__New|__Delete|shift|lshift|rshift|alt|lalt|ralt|control|lcontrol|rcontrol|ctrl|lctrl|rctrl|lwin|rwin|appskey|altdown|altup|shiftdown|shiftup|ctrldown|ctrlup|lwindown|lwinup|rwindown|rwinup|lbutton|rbutton|mbutton|wheelup|wheelleft|wheelright|wheeldown|xbutton1|xbutton2|joy1|joy2|joy3|joy4|joy5|joy6|joy7|joy8|joy9|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy30|joy31|joy32|joyx|joyy|joyz|joyr|joyu|joyv|joypov|joyname|joybuttons|joyaxes|joyinfo|space|tab|enter|escape|esc|backspace|bs|delete|del|insert|ins|pgup|pgdn|home|end|up|down|left|right|printscreen|ctrlbreak|pause|scrolllock|capslock|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadmult|numpadadd|numpadsub|numpaddiv|numpaddot|numpaddel|numpadins|numpadclear|numpadup|numpaddown|numpadleft|numpadright|numpadhome|numpadend|numpadpgup|numpadpgdn|numpadenter|f1|f2|f3|f4|f5|f6|f7|f8|f9|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f20|f21|f22|f23|f24|browser_back|browser_forward|browser_refresh|browser_stop|browser_search|browser_favorites|browser_home|volume_mute|volume_down|volume_up|media_next|media_prev|media_stop|media_play_pause|launch_mail|launch_media|launch_app1|launch_app2|vk\d+|sc\d+)\b(?!\s*\()\b + name: keyword.keys.ahk + example: LButton + - match: >- + \b(?!MsgBox)(?- + \b(?!MsgBox)(?|<>|[<>=]=|!= + name: keyword.operator.comparison.ahk + punctuation: + patterns: + - match: ':|\?|`|,' + name: punctuation.ahk + - match: '[\[\](){}]' + name: punctuation.bracket.ahk + - match: '%' + name: punctuation.definition.variable.percent.ahk + function: + patterns: + - captures: + '1': + name: entity.name.function.ahk + '2': + name: punctuation.bracket.parenthesis.ahk + '3': + patterns: + - include: '#text' + '4': + name: punctuation.bracket.parenthesis.ahk + '5': + name: punctuation.bracket.curly.ahk + '6': + name: comment.line.semicolon.functionline.ahk + match: (?i:^(\s*\w+)(?- + \b(?i:autotrim|Exception|blockinput|click|clipwait|control|controlclick|controlfocus|controlget|controlgetfocus|controlgetpos|controlgettext|controlmove|controlsend|controlsendraw|controlsettext|coordmode|detecthiddentext|detecthiddenwindows|drive|driveget|drivespacefree|edit|envadd|envdiv|envget|envmult|envset|envsub|envupdate|fileappend|filecopy|filecopydir|filecreatedir|filecreateshortcut|filedelete|fileencoding|filegetattrib|filegetshortcut|filegetsize|filegettime|filegetversion|fileinstall|filemove|filemovedir|fileread|filereadline|filerecycle|filerecycleempty|fileremovedir|fileselectfile|fileselectfolder|filesetattrib|filesettime|formattime|getkeystate|gosub|goto|groupactivate|groupadd|groupclose|groupdeactivate|gui|guicontrol|guicontrolget|hotkey|ifequal|ifexist|ifgreater|ifgreaterorequal|ifinstring|ifless|iflessorequal|ifmsgbox|ifnotequal|ifnotexist|ifnotinstring|ifwinactive|ifwinexist|ifwinnotactive|ifwinnotexist|imagesearch|inidelete|iniread|iniwrite|input|inputbox|keyhistory|keywait|listhotkeys|listlines|listvars|menu|mouseclick|mouseclickdrag|mousegetpos|mousemove|msgbox|onexit|outputdebug|pause|pixelgetcolor|pixelsearch|postmessage|process|progress|random|regdelete|regread|regwrite|reload|run|runas|runwait|send|sendevent|sendinput|sendlevel|sendmessage|sendmode|sendplay|sendraw|setbatchlines|setcapslockstate|setcontroldelay|setdefaultmousespeed|setenv|setformat|setkeydelay|setmousedelay|setnumlockstate|setscrolllockstate|setstorecapslockmode|setregview|settimer|settitlematchmode|setwindelay|setworkingdir|shutdown|sleep|sort|soundbeep|soundget|soundgetwavevolume|soundplay|soundset|soundsetwavevolume|splashimage|splashtextoff|splashtexton|splitpath|statusbargettext|statusbarwait|stringcasesense|stringgetpos|stringleft|stringlen|stringlower|stringmid|stringreplace|stringright|stringsplit|stringtrimleft|stringtrimright|stringupper|suspend|sysget|thread|tooltip|transform|traytip|urldownloadtofile|winactivate|winactivatebottom|winclose|winget|wingetactivestats|wingetactivetitle|wingetclass|wingetpos|wingettext|wingettitle|winhide|winkill|winmaximize|winmenuselectitem|winminimize|winminimizeall|winminimizeallundo|winmove|winrestore|winset|winsettitle|winshow|winwait|winwaitactive|winwaitclose|winwaitnotactive)\b + name: support.function.ahk + - match: >- + \b(?!MsgBox)(?i:abs|Push|length|RemoveAt|Count|InsertAt|ObjGetCapacity|ObjRemoveAt|ObjInsertAt|StrReplace|ObjDelete|acos|asc|asin|atan|ceil|chr|cos|ObjAddRef|ObjRelease|ComObject|comobjcreate|comobjactive|comobjarray|comobjconnect|comobjenwrap|comobjerror|comobjflags|comobjget|comobjmissing|comobjparameter|comobjquery|comobjtype|comobjunwrap|comobjvalue|dllcall|exp|fileexist|fileopen|floor|format|func|getkeyname|getkeyvk|getkeysc|getkeystate|il_add|il_create|il_destroy|instr|isbyref|isfunc|islabel|isobject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|onmessage|numget|numput|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strget|strlen|strput|strsplit|substr|tan|trim|tv_add|tv_delete|tv_getchild|tv_getcount|tv_getnext|tv_get|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist)(?=\()\b + name: support.function.ahk + - match: >- + \b(?!MsgBox)(?<=\.)(?i:read|write|readline|writeline|readuint|readint|readint64|readshort|readushort|readchar|readuchar|readdouble|readfloat|writeuint|writeint|writeint64|writeshort|writeushort|writechar|writeuchar|writedouble|writefloat|rawread|rawwrite|seek|tell|close|insert|remove|minindex|maxindex|setcapacity|getcapacity|getaddress|newenum|haskey|clone|isoptional|__new|__call|__get|__set|__delete)(?=\()\b + name: support.function.ahk + - match: \b(?!MsgBox)[\w]+\s*(?=\() + name: entity.name.function.ahk + example: fun( + - begin: (") + beginCaptures: + '1': + name: punctuation.definition.string.begin.ahk + end: (")(?!")|^ + endCaptures: + '1': + name: punctuation.definition.string.end.ahk + patterns: + - match: '""' + name: constant.character.escape.ahk + name: string.quoted.double.ahk + example: '"string"' + - match: \w+ + name: variable.def.ahk From 0f9d15f0ca9f8ef94796b1e8188ea20ded2e8672 Mon Sep 17 00:00:00 2001 From: Mark Wiemer Date: Sun, 26 Jun 2022 18:52:29 -0700 Subject: [PATCH 6/9] Add ESLint and fix problems --- .eslintrc | 17 + package-lock.json | 1856 ++++++++++++++++++++- package.json | 8 +- src/common/codeUtil.ts | 8 +- src/common/fileManager.ts | 10 +- src/common/global.ts | 6 +- src/debugger/debugDispatcher.ts | 10 +- src/debugger/debugServer.ts | 8 +- src/debugger/debugSession.ts | 30 +- src/debugger/handler/breakpointHandler.ts | 2 +- src/debugger/handler/commandHandler.ts | 4 +- src/debugger/handler/variableHandler.ts | 25 +- src/debugger/struct/command.ts | 10 +- src/debugger/struct/dbgpResponse.ts | 3 + src/debugger/struct/scope.ts | 8 +- src/debugger/util/util.ts | 12 +- src/parser/model.ts | 14 +- src/parser/parser.ts | 53 +- src/providers/ahkHoverProvider.ts | 12 +- src/providers/ahkRenameProvider.ts | 5 +- src/providers/completionProvider.ts | 8 +- src/providers/defProvider.ts | 6 +- src/providers/formattingProvider.ts | 29 +- src/providers/formattingProvider.utils.ts | 8 +- src/providers/signatureProvider.ts | 4 +- src/service/runnerService.ts | 9 +- 26 files changed, 2032 insertions(+), 133 deletions(-) create mode 100644 .eslintrc diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 00000000..8f397c07 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,17 @@ +{ + "root": true, + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": 6, + "sourceType": "module" + }, + "plugins": ["@typescript-eslint"], + "rules": { + "@typescript-eslint/naming-convention": "warn", + "@typescript-eslint/semi": "warn", + "curly": "warn", + "eqeqeq": "warn", + "no-throw-literal": "warn" + }, + "ignorePatterns": ["out", "dist", "**/*.d.ts"] +} diff --git a/package-lock.json b/package-lock.json index a52247c0..5e5ea8d4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,19 +19,97 @@ "@types/mocha": "^9.1.1", "@types/node": "^14.14.31", "@types/vscode": "^1.30.0", + "@typescript-eslint/eslint-plugin": "^5.29.0", + "@typescript-eslint/parser": "^5.29.0", "@vscode/test-electron": "^1.6.1", + "eslint": "^8.18.0", "fs-extra": "^9.1.0", "glob": "^7.1.6", "js-yaml": "^4.1.0", "mocha": "^10.0.0", "source-map-support": "^0.5.19", - "typescript": "^3.4.3", + "typescript": "~4.7.4", "vscode-tmgrammar-test": "^0.1.1" }, "engines": { "vscode": "^1.30.0" } }, + "node_modules/@eslint/eslintrc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.0.tgz", + "integrity": "sha512-UWW0TMTmk2d7hLcWD1/e2g5HDM/HQ3csaLSqXCfqwh4uNDuNqlaKWXmEsL4Cs41Z0KnILNvwbHAah3C2yt06kw==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.3.2", + "globals": "^13.15.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.9.5", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.9.5.tgz", + "integrity": "sha512-ObyMyWxZiCu/yTisA7uzx81s40xR2fD5Cg/2Kq7G02ajkNubJf6BopgDTmDyc3U7sXpNKM8cYOw7s7Tyr+DnCw==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "dev": true + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/@tootallnate/once": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", @@ -60,6 +138,12 @@ "@types/node": "*" } }, + "node_modules/@types/json-schema": { + "version": "7.0.11", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", + "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", + "dev": true + }, "node_modules/@types/minimatch": { "version": "3.0.5", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz", @@ -84,6 +168,190 @@ "integrity": "sha512-duBwEK5ta/eBBMJMQ7ECMEsMvlE3XJdRGh3xoS1uOO4jl2Z4LPBl5vx8WvBP10ERAgDRmIt/FaSD4RHyBGbChw==", "dev": true }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "5.29.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.29.0.tgz", + "integrity": "sha512-kgTsISt9pM53yRFQmLZ4npj99yGl3x3Pl7z4eA66OuTzAGC4bQB5H5fuLwPnqTKU3yyrrg4MIhjF17UYnL4c0w==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "5.29.0", + "@typescript-eslint/type-utils": "5.29.0", + "@typescript-eslint/utils": "5.29.0", + "debug": "^4.3.4", + "functional-red-black-tree": "^1.0.1", + "ignore": "^5.2.0", + "regexpp": "^3.2.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^5.0.0", + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "5.29.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.29.0.tgz", + "integrity": "sha512-ruKWTv+x0OOxbzIw9nW5oWlUopvP/IQDjB5ZqmTglLIoDTctLlAJpAQFpNPJP/ZI7hTT9sARBosEfaKbcFuECw==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "5.29.0", + "@typescript-eslint/types": "5.29.0", + "@typescript-eslint/typescript-estree": "5.29.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "5.29.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.29.0.tgz", + "integrity": "sha512-etbXUT0FygFi2ihcxDZjz21LtC+Eps9V2xVx09zFoN44RRHPrkMflidGMI+2dUs821zR1tDS6Oc9IXxIjOUZwA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.29.0", + "@typescript-eslint/visitor-keys": "5.29.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "5.29.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.29.0.tgz", + "integrity": "sha512-JK6bAaaiJozbox3K220VRfCzLa9n0ib/J+FHIwnaV3Enw/TO267qe0pM1b1QrrEuy6xun374XEAsRlA86JJnyg==", + "dev": true, + "dependencies": { + "@typescript-eslint/utils": "5.29.0", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "5.29.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.29.0.tgz", + "integrity": "sha512-X99VbqvAXOMdVyfFmksMy3u8p8yoRGITgU1joBJPzeYa0rhdf5ok9S56/itRoUSh99fiDoMtarSIJXo7H/SnOg==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "5.29.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.29.0.tgz", + "integrity": "sha512-mQvSUJ/JjGBdvo+1LwC+GY2XmSYjK1nAaVw2emp/E61wEVYEyibRHCqm1I1vEKbXCpUKuW4G7u9ZCaZhJbLoNQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.29.0", + "@typescript-eslint/visitor-keys": "5.29.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "5.29.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.29.0.tgz", + "integrity": "sha512-3Eos6uP1nyLOBayc/VUdKZikV90HahXE5Dx9L5YlSd/7ylQPXhLk1BYb29SDgnBnTp+jmSZUU0QxUiyHgW4p7A==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.9", + "@typescript-eslint/scope-manager": "5.29.0", + "@typescript-eslint/types": "5.29.0", + "@typescript-eslint/typescript-estree": "5.29.0", + "eslint-scope": "^5.1.1", + "eslint-utils": "^3.0.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "5.29.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.29.0.tgz", + "integrity": "sha512-Hpb/mCWsjILvikMQoZIE3voc9wtQcS0A9FUw3h8bhr9UxBdtI/tw1ZDZUOXHXLOVMedKCH5NxyzATwnU78bWCQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.29.0", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, "node_modules/@ungap/promise-all-settled": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz", @@ -121,6 +389,27 @@ "node": ">=8.9.3" } }, + "node_modules/acorn": { + "version": "8.7.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.1.tgz", + "integrity": "sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, "node_modules/agent-base": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", @@ -133,6 +422,22 @@ "node": ">= 6.0.0" } }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, "node_modules/ansi-colors": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", @@ -185,6 +490,15 @@ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", "dev": true }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/at-least-node": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", @@ -289,6 +603,15 @@ "node": ">=0.2.0" } }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/camelcase": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", @@ -418,6 +741,20 @@ "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", "dev": true }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/debug": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", @@ -447,6 +784,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, "node_modules/diff": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", @@ -456,6 +799,30 @@ "node": ">=0.3.1" } }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, "node_modules/duplexer2": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", @@ -492,6 +859,270 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/eslint": { + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.18.0.tgz", + "integrity": "sha512-As1EfFMVk7Xc6/CvhssHUjsAQSkpfXvUGMFC3ce8JDe6WvqCgRrLOBQbVpsBFr1X1V+RACOadnzVvcUS5ni2bA==", + "dev": true, + "dependencies": { + "@eslint/eslintrc": "^1.3.0", + "@humanwhocodes/config-array": "^0.9.2", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.1.1", + "eslint-utils": "^3.0.0", + "eslint-visitor-keys": "^3.3.0", + "espree": "^9.3.2", + "esquery": "^1.4.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "functional-red-black-tree": "^1.0.1", + "glob-parent": "^6.0.1", + "globals": "^13.15.0", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "regexpp": "^3.2.0", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", + "text-table": "^0.2.0", + "v8-compile-cache": "^2.0.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/eslint-utils": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^2.0.0" + }, + "engines": { + "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": ">=5" + } + }, + "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", + "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/eslint/node_modules/eslint-scope": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", + "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/eslint/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/eslint/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/espree": { + "version": "9.3.2", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.3.2.tgz", + "integrity": "sha512-D211tC7ZwouTIuY5x9XnS0E9sWNChB7IYKX/Xp5eQj3nFXhqmiUDB9q27y76oFl8jTg3pXcQx/bpxMfs3CIZbA==", + "dev": true, + "dependencies": { + "acorn": "^8.7.1", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/esquery": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", + "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esquery/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.2.11", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz", + "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", + "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, "node_modules/fill-range": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", @@ -529,6 +1160,25 @@ "flat": "cli.js" } }, + "node_modules/flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "dev": true, + "dependencies": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.5.tgz", + "integrity": "sha512-WIWGi2L3DyTUvUrwRKgGi9TwxQMUEqPOPQBVi71R96jZXJdFskXEmf54BoZaS1kknGODoIGASGEzBUYdyMCBJg==", + "dev": true + }, "node_modules/fs-extra": { "version": "9.1.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", @@ -603,6 +1253,12 @@ "rimraf": "bin.js" } }, + "node_modules/functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", + "dev": true + }, "node_modules/get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", @@ -649,10 +1305,45 @@ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, "dependencies": { - "is-glob": "^4.0.1" + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/globals": { + "version": "13.15.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.15.0.tgz", + "integrity": "sha512-bpzcOlgDhMG070Av0Vy5Owklpv1I6+j96GhUI7Rh7IzDCKLzboflLrrfqMu8NquDbiR4EOQk7XzJwqVJxicxog==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" }, "engines": { - "node": ">= 6" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/graceful-fs": { @@ -706,6 +1397,40 @@ "node": ">= 6" } }, + "node_modules/ignore": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", + "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", @@ -800,6 +1525,12 @@ "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", "dev": true }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, "node_modules/js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", @@ -812,6 +1543,18 @@ "js-yaml": "bin/js-yaml.js" } }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -824,6 +1567,19 @@ "graceful-fs": "^4.1.6" } }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, "node_modules/listenercount": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/listenercount/-/listenercount-1.0.1.tgz", @@ -845,6 +1601,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, "node_modules/log-symbols": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", @@ -861,6 +1623,40 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -997,6 +1793,12 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", @@ -1015,6 +1817,23 @@ "wrappy": "1" } }, + "node_modules/optionator": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "dev": true, + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" + }, + "engines": { + "node": ">= 0.8.0" + } + }, "node_modules/p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", @@ -1045,6 +1864,18 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", @@ -1063,6 +1894,24 @@ "node": ">=0.10.0" } }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", @@ -1075,12 +1924,50 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, "node_modules/process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, + "node_modules/punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, "node_modules/randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", @@ -1117,6 +2004,18 @@ "node": ">=8.10.0" } }, + "node_modules/regexpp": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", + "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + } + }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -1126,6 +2025,25 @@ "node": ">=0.10.0" } }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, "node_modules/rimraf": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", @@ -1141,6 +2059,29 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, "node_modules/safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", @@ -1152,6 +2093,21 @@ "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" }, + "node_modules/semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/serialize-javascript": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", @@ -1167,6 +2123,36 @@ "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==", "dev": true }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -1248,6 +2234,12 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -1269,10 +2261,55 @@ "node": "*" } }, + "node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/typescript": { - "version": "3.9.10", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", - "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", + "version": "4.7.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", + "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -1309,12 +2346,27 @@ "setimmediate": "~1.0.4" } }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "dev": true }, + "node_modules/v8-compile-cache": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", + "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", + "dev": true + }, "node_modules/vscode-oniguruma": { "version": "1.6.2", "resolved": "https://registry.npmjs.org/vscode-oniguruma/-/vscode-oniguruma-1.6.2.tgz", @@ -1425,6 +2477,30 @@ "node": ">=4" } }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/workerpool": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz", @@ -1483,6 +2559,12 @@ "node": ">=10" } }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, "node_modules/yargs": { "version": "16.2.0", "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", @@ -1539,6 +2621,66 @@ } }, "dependencies": { + "@eslint/eslintrc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.0.tgz", + "integrity": "sha512-UWW0TMTmk2d7hLcWD1/e2g5HDM/HQ3csaLSqXCfqwh4uNDuNqlaKWXmEsL4Cs41Z0KnILNvwbHAah3C2yt06kw==", + "dev": true, + "requires": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.3.2", + "globals": "^13.15.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + } + }, + "@humanwhocodes/config-array": { + "version": "0.9.5", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.9.5.tgz", + "integrity": "sha512-ObyMyWxZiCu/yTisA7uzx81s40xR2fD5Cg/2Kq7G02ajkNubJf6BopgDTmDyc3U7sXpNKM8cYOw7s7Tyr+DnCw==", + "dev": true, + "requires": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.4" + } + }, + "@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "dev": true + }, + "@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + } + }, + "@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true + }, + "@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "requires": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + } + }, "@tootallnate/once": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", @@ -1564,6 +2706,12 @@ "@types/node": "*" } }, + "@types/json-schema": { + "version": "7.0.11", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", + "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", + "dev": true + }, "@types/minimatch": { "version": "3.0.5", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz", @@ -1588,6 +2736,101 @@ "integrity": "sha512-duBwEK5ta/eBBMJMQ7ECMEsMvlE3XJdRGh3xoS1uOO4jl2Z4LPBl5vx8WvBP10ERAgDRmIt/FaSD4RHyBGbChw==", "dev": true }, + "@typescript-eslint/eslint-plugin": { + "version": "5.29.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.29.0.tgz", + "integrity": "sha512-kgTsISt9pM53yRFQmLZ4npj99yGl3x3Pl7z4eA66OuTzAGC4bQB5H5fuLwPnqTKU3yyrrg4MIhjF17UYnL4c0w==", + "dev": true, + "requires": { + "@typescript-eslint/scope-manager": "5.29.0", + "@typescript-eslint/type-utils": "5.29.0", + "@typescript-eslint/utils": "5.29.0", + "debug": "^4.3.4", + "functional-red-black-tree": "^1.0.1", + "ignore": "^5.2.0", + "regexpp": "^3.2.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + } + }, + "@typescript-eslint/parser": { + "version": "5.29.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.29.0.tgz", + "integrity": "sha512-ruKWTv+x0OOxbzIw9nW5oWlUopvP/IQDjB5ZqmTglLIoDTctLlAJpAQFpNPJP/ZI7hTT9sARBosEfaKbcFuECw==", + "dev": true, + "requires": { + "@typescript-eslint/scope-manager": "5.29.0", + "@typescript-eslint/types": "5.29.0", + "@typescript-eslint/typescript-estree": "5.29.0", + "debug": "^4.3.4" + } + }, + "@typescript-eslint/scope-manager": { + "version": "5.29.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.29.0.tgz", + "integrity": "sha512-etbXUT0FygFi2ihcxDZjz21LtC+Eps9V2xVx09zFoN44RRHPrkMflidGMI+2dUs821zR1tDS6Oc9IXxIjOUZwA==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.29.0", + "@typescript-eslint/visitor-keys": "5.29.0" + } + }, + "@typescript-eslint/type-utils": { + "version": "5.29.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.29.0.tgz", + "integrity": "sha512-JK6bAaaiJozbox3K220VRfCzLa9n0ib/J+FHIwnaV3Enw/TO267qe0pM1b1QrrEuy6xun374XEAsRlA86JJnyg==", + "dev": true, + "requires": { + "@typescript-eslint/utils": "5.29.0", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + } + }, + "@typescript-eslint/types": { + "version": "5.29.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.29.0.tgz", + "integrity": "sha512-X99VbqvAXOMdVyfFmksMy3u8p8yoRGITgU1joBJPzeYa0rhdf5ok9S56/itRoUSh99fiDoMtarSIJXo7H/SnOg==", + "dev": true + }, + "@typescript-eslint/typescript-estree": { + "version": "5.29.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.29.0.tgz", + "integrity": "sha512-mQvSUJ/JjGBdvo+1LwC+GY2XmSYjK1nAaVw2emp/E61wEVYEyibRHCqm1I1vEKbXCpUKuW4G7u9ZCaZhJbLoNQ==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.29.0", + "@typescript-eslint/visitor-keys": "5.29.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + } + }, + "@typescript-eslint/utils": { + "version": "5.29.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.29.0.tgz", + "integrity": "sha512-3Eos6uP1nyLOBayc/VUdKZikV90HahXE5Dx9L5YlSd/7ylQPXhLk1BYb29SDgnBnTp+jmSZUU0QxUiyHgW4p7A==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.9", + "@typescript-eslint/scope-manager": "5.29.0", + "@typescript-eslint/types": "5.29.0", + "@typescript-eslint/typescript-estree": "5.29.0", + "eslint-scope": "^5.1.1", + "eslint-utils": "^3.0.0" + } + }, + "@typescript-eslint/visitor-keys": { + "version": "5.29.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.29.0.tgz", + "integrity": "sha512-Hpb/mCWsjILvikMQoZIE3voc9wtQcS0A9FUw3h8bhr9UxBdtI/tw1ZDZUOXHXLOVMedKCH5NxyzATwnU78bWCQ==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.29.0", + "eslint-visitor-keys": "^3.3.0" + } + }, "@ungap/promise-all-settled": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz", @@ -1619,6 +2862,19 @@ "unzipper": "^0.10.11" } }, + "acorn": { + "version": "8.7.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.1.tgz", + "integrity": "sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A==", + "dev": true + }, + "acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "requires": {} + }, "agent-base": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", @@ -1628,6 +2884,18 @@ "debug": "4" } }, + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, "ansi-colors": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", @@ -1665,6 +2933,12 @@ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", "dev": true }, + "array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true + }, "at-least-node": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", @@ -1748,6 +3022,12 @@ "integrity": "sha512-9q/rDEGSb/Qsvv2qvzIzdluL5k7AaJOTrw23z9reQthrbF7is4CtlT0DXyO1oei2DCp4uojjzQ7igaSHp1kAEQ==", "dev": true }, + "callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true + }, "camelcase": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", @@ -1844,6 +3124,17 @@ "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", "dev": true }, + "cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, "debug": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", @@ -1859,12 +3150,36 @@ "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", "dev": true }, + "deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, "diff": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", "dev": true }, + "dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "requires": { + "path-type": "^4.0.0" + } + }, + "doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "requires": { + "esutils": "^2.0.2" + } + }, "duplexer2": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", @@ -1892,6 +3207,215 @@ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "dev": true }, + "eslint": { + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.18.0.tgz", + "integrity": "sha512-As1EfFMVk7Xc6/CvhssHUjsAQSkpfXvUGMFC3ce8JDe6WvqCgRrLOBQbVpsBFr1X1V+RACOadnzVvcUS5ni2bA==", + "dev": true, + "requires": { + "@eslint/eslintrc": "^1.3.0", + "@humanwhocodes/config-array": "^0.9.2", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.1.1", + "eslint-utils": "^3.0.0", + "eslint-visitor-keys": "^3.3.0", + "espree": "^9.3.2", + "esquery": "^1.4.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "functional-red-black-tree": "^1.0.1", + "glob-parent": "^6.0.1", + "globals": "^13.15.0", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "regexpp": "^3.2.0", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", + "text-table": "^0.2.0", + "v8-compile-cache": "^2.0.3" + }, + "dependencies": { + "eslint-scope": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", + "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", + "dev": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + } + }, + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + }, + "glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "requires": { + "is-glob": "^4.0.3" + } + } + } + }, + "eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + } + }, + "eslint-utils": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^2.0.0" + }, + "dependencies": { + "eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true + } + } + }, + "eslint-visitor-keys": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", + "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", + "dev": true + }, + "espree": { + "version": "9.3.2", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.3.2.tgz", + "integrity": "sha512-D211tC7ZwouTIuY5x9XnS0E9sWNChB7IYKX/Xp5eQj3nFXhqmiUDB9q27y76oFl8jTg3pXcQx/bpxMfs3CIZbA==", + "dev": true, + "requires": { + "acorn": "^8.7.1", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.3.0" + } + }, + "esquery": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", + "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "dev": true, + "requires": { + "estraverse": "^5.1.0" + }, + "dependencies": { + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + } + } + }, + "esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "requires": { + "estraverse": "^5.2.0" + }, + "dependencies": { + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + } + } + }, + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "fast-glob": { + "version": "3.2.11", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz", + "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + } + }, + "fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "fastq": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", + "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", + "dev": true, + "requires": { + "reusify": "^1.0.4" + } + }, + "file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "requires": { + "flat-cache": "^3.0.4" + } + }, "fill-range": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", @@ -1917,6 +3441,22 @@ "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", "dev": true }, + "flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "dev": true, + "requires": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + } + }, + "flatted": { + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.5.tgz", + "integrity": "sha512-WIWGi2L3DyTUvUrwRKgGi9TwxQMUEqPOPQBVi71R96jZXJdFskXEmf54BoZaS1kknGODoIGASGEzBUYdyMCBJg==", + "dev": true + }, "fs-extra": { "version": "9.1.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", @@ -1974,6 +3514,12 @@ } } }, + "functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", + "dev": true + }, "get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", @@ -2008,6 +3554,29 @@ "is-glob": "^4.0.1" } }, + "globals": { + "version": "13.15.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.15.0.tgz", + "integrity": "sha512-bpzcOlgDhMG070Av0Vy5Owklpv1I6+j96GhUI7Rh7IzDCKLzboflLrrfqMu8NquDbiR4EOQk7XzJwqVJxicxog==", + "dev": true, + "requires": { + "type-fest": "^0.20.2" + } + }, + "globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "requires": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + } + }, "graceful-fs": { "version": "4.2.10", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", @@ -2047,6 +3616,28 @@ "debug": "4" } }, + "ignore": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", + "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", + "dev": true + }, + "import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "requires": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + } + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true + }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", @@ -2117,6 +3708,12 @@ "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", "dev": true }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, "js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", @@ -2126,6 +3723,18 @@ "argparse": "^2.0.1" } }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, "jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -2136,6 +3745,16 @@ "universalify": "^2.0.0" } }, + "levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "requires": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + } + }, "listenercount": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/listenercount/-/listenercount-1.0.1.tgz", @@ -2151,6 +3770,12 @@ "p-locate": "^5.0.0" } }, + "lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, "log-symbols": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", @@ -2161,6 +3786,31 @@ "is-unicode-supported": "^0.1.0" } }, + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true + }, + "micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "requires": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + } + }, "minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -2271,6 +3921,12 @@ "integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==", "dev": true }, + "natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, "normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", @@ -2286,6 +3942,20 @@ "wrappy": "1" } }, + "optionator": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "dev": true, + "requires": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" + } + }, "p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", @@ -2304,6 +3974,15 @@ "p-limit": "^3.0.2" } }, + "parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "requires": { + "callsites": "^3.0.0" + } + }, "path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", @@ -2316,18 +3995,48 @@ "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", "dev": true }, + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true + }, + "path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true + }, "picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true }, + "prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true + }, "process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, + "punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true + }, + "queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true + }, "randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", @@ -2361,12 +4070,30 @@ "picomatch": "^2.2.1" } }, + "regexpp": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", + "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", + "dev": true + }, "require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", "dev": true }, + "resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true + }, + "reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true + }, "rimraf": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", @@ -2376,6 +4103,15 @@ "glob": "^7.1.3" } }, + "run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "requires": { + "queue-microtask": "^1.2.2" + } + }, "safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", @@ -2387,6 +4123,15 @@ "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" }, + "semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, "serialize-javascript": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", @@ -2402,6 +4147,27 @@ "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==", "dev": true }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true + }, + "slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true + }, "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -2462,6 +4228,12 @@ "has-flag": "^4.0.0" } }, + "text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, "to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -2477,10 +4249,40 @@ "integrity": "sha512-iawgk0hLP3SxGKDfnDJf8wTz4p2qImnyihM5Hh/sGvQ3K37dPi/w8sRhdNIxYA1TwFwc5mDhIJq+O0RsvXBKdQ==", "dev": true }, + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, + "type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "requires": { + "prelude-ls": "^1.2.1" + } + }, + "type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true + }, "typescript": { - "version": "3.9.10", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", - "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", + "version": "4.7.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", + "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", "dev": true }, "universalify": { @@ -2507,12 +4309,27 @@ "setimmediate": "~1.0.4" } }, + "uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "requires": { + "punycode": "^2.1.0" + } + }, "util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "dev": true }, + "v8-compile-cache": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", + "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", + "dev": true + }, "vscode-oniguruma": { "version": "1.6.2", "resolved": "https://registry.npmjs.org/vscode-oniguruma/-/vscode-oniguruma-1.6.2.tgz", @@ -2603,6 +4420,21 @@ } } }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + }, + "word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "dev": true + }, "workerpool": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz", @@ -2646,6 +4478,12 @@ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", "dev": true }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, "yargs": { "version": "16.2.0", "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", diff --git a/package.json b/package.json index 7e902461..b993b45d 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,9 @@ "compile": "npm run compile_ts && npm run compile_grammar", "compile_grammar": "js-yaml syntaxes/ahk.tmLanguage.yaml > syntaxes/ahk.tmLanguage.json", "compile_ts": "tsc -p ./", + "quality": "npm run quality_inner -- src && echo ✅ No problems", + "quality_fix": "npm run quality_inner -- --fix src", + "quality_inner": "eslint --ext ts --max-warnings=0", "pretest": "npm run compile", "test": "npm run test_unit && npm run test_grammar", "test_grammar": "vscode-tmgrammar-snap src/test/suite/grammar/samples/*.ahk", @@ -276,13 +279,16 @@ "@types/mocha": "^9.1.1", "@types/node": "^14.14.31", "@types/vscode": "^1.30.0", + "@typescript-eslint/eslint-plugin": "^5.29.0", + "@typescript-eslint/parser": "^5.29.0", "@vscode/test-electron": "^1.6.1", + "eslint": "^8.18.0", "fs-extra": "^9.1.0", "glob": "^7.1.6", "js-yaml": "^4.1.0", "mocha": "^10.0.0", "source-map-support": "^0.5.19", - "typescript": "^3.4.3", + "typescript": "~4.7.4", "vscode-tmgrammar-test": "^0.1.1" }, "engines": { diff --git a/src/common/codeUtil.ts b/src/common/codeUtil.ts index a0cbc373..11b82bd2 100644 --- a/src/common/codeUtil.ts +++ b/src/common/codeUtil.ts @@ -4,7 +4,9 @@ export class CodeUtil { * @param original Original line of code */ public static purify(original: string): string { - if (!original) return ''; + if (!original) { + return ''; + } return original .replace(/;.+/, '') .replace(/".*?"/g, '""') // replace string literals with empty string literal @@ -21,7 +23,7 @@ export class CodeUtil { * or another array to concat to the end of @see array */ public static join(array: unknown[], items: unknown) { - if (array == undefined || items == undefined) { + if (!array || !items) { return; } if (Array.isArray(items)) { @@ -40,7 +42,7 @@ export class CodeUtil { let regs = []; let temp: RegExpExecArray; - while ((temp = regex.exec(text)) != null) { + while (!!(temp = regex.exec(text))) { regs.push(temp); } diff --git a/src/common/fileManager.ts b/src/common/fileManager.ts index 75b67cde..18919e77 100644 --- a/src/common/fileManager.ts +++ b/src/common/fileManager.ts @@ -13,7 +13,9 @@ export class FileManager { } private static check(path: string) { - if (!fs.existsSync(path)) fs.mkdirSync(path); + if (!fs.existsSync(path)) { + fs.mkdirSync(path); + } } public static show(fileName: string) { @@ -53,7 +55,7 @@ export class FileManager { const recordPath = `${this.storagePath}/${fileName}`; this.check(this.storagePath); this.check(path.resolve(recordPath, '..')); - if (model == FileModel.WRITE) { + if (model === FileModel.write) { fs.writeFileSync(recordPath, `${content}`, { encoding: 'utf8', }); @@ -68,6 +70,6 @@ export class FileManager { } export enum FileModel { - WRITE, - APPEND, + write, + append, } diff --git a/src/common/global.ts b/src/common/global.ts index a640c5da..e76e5b6d 100644 --- a/src/common/global.ts +++ b/src/common/global.ts @@ -1,16 +1,14 @@ import * as vscode from 'vscode'; export class Global { - public static CONFIG_PREFIX = 'ahk++'; + public static configPrefix = 'ahk++'; private static statusBarItem: vscode.StatusBarItem; /** * get configuration from vscode setting. * @param key config key */ public static getConfig(key: string): T { - return vscode.workspace - .getConfiguration(this.CONFIG_PREFIX) - .get(key); + return vscode.workspace.getConfiguration(this.configPrefix).get(key); } public static updateStatusBarItems(text: string) { diff --git a/src/debugger/debugDispatcher.ts b/src/debugger/debugDispatcher.ts index 929c584b..f4909aa2 100644 --- a/src/debugger/debugDispatcher.ts +++ b/src/debugger/debugDispatcher.ts @@ -39,8 +39,12 @@ export class DebugDispatcher extends EventEmitter { */ public async start(args: LaunchRequestArguments) { let { runtime, dbgpSettings = {} } = args; + // names may used by AHK, let's not change them for now + // eslint-disable-next-line @typescript-eslint/naming-convention const { max_children, max_data } = { + // eslint-disable-next-line @typescript-eslint/naming-convention max_children: 300, + // eslint-disable-next-line @typescript-eslint/naming-convention max_data: 131072, ...dbgpSettings, }; @@ -197,12 +201,12 @@ export class DebugDispatcher extends EventEmitter { const variables = await this.getVariable( frameId, - VarScope.LOCAL, + VarScope.local, variableName, ); - if (variables.length == 0) { + if (variables.length === 0) { return null; - } else if (variables.length == 1) { + } else if (variables.length === 1) { return variables[0].value; } else { const ahkVar = this.variableHandler.getVarByName(variableName); diff --git a/src/debugger/debugServer.ts b/src/debugger/debugServer.ts index 891c1cc6..f599a65e 100644 --- a/src/debugger/debugServer.ts +++ b/src/debugger/debugServer.ts @@ -14,7 +14,7 @@ export class DebugServer extends EventEmitter { } public start(): DebugServer { - const END = 0; + const end = 0; let tempData: Buffer; this.proxyServer = new Net.Server() .listen(this.port) @@ -24,7 +24,7 @@ export class DebugServer extends EventEmitter { tempData = tempData ? Buffer.concat([tempData, chunk]) : chunk; - if (tempData[tempData.length - 1] == END) { + if (tempData[tempData.length - 1] === end) { this.process(tempData.toString()); tempData = null; } @@ -63,11 +63,11 @@ export class DebugServer extends EventEmitter { }); public process(data: string) { data = data.substr(data.indexOf(' { - this.sendEvent( - new StoppedEvent(reason, DebugSession.THREAD_ID), - ); + this.sendEvent(new StoppedEvent(reason, DebugSession.threadId)); }) .on('breakpointValidated', (bp: DebugProtocol.Breakpoint) => { this.sendEvent( @@ -178,7 +178,7 @@ export class DebugSession extends LoggingDebugSession { args: DebugProtocol.PauseArguments, request?: DebugProtocol.Request, ): void { - this.dispatcher.sendComand(Continue.BREAK); + this.dispatcher.sendComand(Continue.break); this.sendResponse(response); } @@ -186,7 +186,7 @@ export class DebugSession extends LoggingDebugSession { response: DebugProtocol.ContinueResponse, args: DebugProtocol.ContinueArguments, ): void { - this.dispatcher.sendComand(Continue.RUN); + this.dispatcher.sendComand(Continue.run); this.sendResponse(response); } @@ -194,7 +194,7 @@ export class DebugSession extends LoggingDebugSession { response: DebugProtocol.NextResponse, args: DebugProtocol.NextArguments, ): void { - this.dispatcher.sendComand(Continue.STEP_OVER); + this.dispatcher.sendComand(Continue.stepOver); this.sendResponse(response); } @@ -203,7 +203,7 @@ export class DebugSession extends LoggingDebugSession { args: DebugProtocol.StepInArguments, request?: DebugProtocol.Request, ): void { - this.dispatcher.sendComand(Continue.STEP_INTO); + this.dispatcher.sendComand(Continue.stepInto); this.sendResponse(response); } @@ -212,13 +212,13 @@ export class DebugSession extends LoggingDebugSession { args: DebugProtocol.StepOutArguments, request?: DebugProtocol.Request, ): void { - this.dispatcher.sendComand(Continue.STEP_OUT); + this.dispatcher.sendComand(Continue.stepOut); this.sendResponse(response); } protected threadsRequest(response: DebugProtocol.ThreadsResponse): void { response.body = { - threads: [new Thread(DebugSession.THREAD_ID, 'main thread')], + threads: [new Thread(DebugSession.threadId, 'main thread')], }; this.sendResponse(response); } @@ -230,10 +230,10 @@ export class DebugSession extends LoggingDebugSession { response.body = { targets: [ ...(await this.dispatcher.listVariables({ - variablesReference: VscodeScope.LOCAL, + variablesReference: VscodeScope.local, })), ...(await this.dispatcher.listVariables({ - variablesReference: VscodeScope.GLOBAL, + variablesReference: VscodeScope.global, })), ].map((variable) => { return { @@ -252,13 +252,13 @@ export class DebugSession extends LoggingDebugSession { ): Promise { const exp = args.expression.split('='); let reply: string; - if (exp.length == 1) { + if (exp.length === 1) { reply = await this.dispatcher.getVariableByEval(args.expression); } else { this.dispatcher.setVariable({ name: exp[0], value: exp[1], - variablesReference: VscodeScope.LOCAL, + variablesReference: VscodeScope.local, }); reply = `execute: ${args.expression}`; } diff --git a/src/debugger/handler/breakpointHandler.ts b/src/debugger/handler/breakpointHandler.ts index b1e629bb..404252df 100644 --- a/src/debugger/handler/breakpointHandler.ts +++ b/src/debugger/handler/breakpointHandler.ts @@ -40,7 +40,7 @@ export class BreakPointHandler { new Source(basename(path), path), ); const lineText = sourceLines[sourceBreakpoint.line]; - if (lineText && lineText.trim().charAt(0) != ';') { + if (lineText && lineText.trim().charAt(0) !== ';') { breakPoint.verified = true; } callback(breakPoint); diff --git a/src/debugger/handler/commandHandler.ts b/src/debugger/handler/commandHandler.ts index 6dd7d8fe..0a3a0330 100644 --- a/src/debugger/handler/commandHandler.ts +++ b/src/debugger/handler/commandHandler.ts @@ -34,7 +34,9 @@ export class CommandHandler { public callback(transId: string, response: DbgpResponse) { const fun = this.commandCallback[transId]; - if (fun) fun(response); + if (fun) { + fun(response); + } this.commandCallback[transId] = null; } } diff --git a/src/debugger/handler/variableHandler.ts b/src/debugger/handler/variableHandler.ts index 080d8527..72268fc7 100644 --- a/src/debugger/handler/variableHandler.ts +++ b/src/debugger/handler/variableHandler.ts @@ -24,8 +24,8 @@ export class VariableHandler { public getScopeByRef(ref: number): number { const scopeOrVar = this.variableHandles.get(ref); - if (typeof scopeOrVar == 'string') { - return scopeOrVar == 'Local' ? VarScope.LOCAL : VarScope.GLOBAL; + if (typeof scopeOrVar === 'string') { + return scopeOrVar === 'Local' ? VarScope.local : VarScope.global; } return (scopeOrVar as AhkVariable).scope; } @@ -77,7 +77,9 @@ export class VariableHandler { count: number, ): Variable[] | PromiseLike { const ahkVar = this.getVarByRef(ref); - if (!Array.isArray(ahkVar?.value)) return []; + if (!Array.isArray(ahkVar?.value)) { + return []; + } return (ahkVar.value as any[]) .slice(start, start + count) @@ -117,7 +119,7 @@ export class VariableHandler { } const ahkVar = { scope, - frameId: scope == VarScope.GLOBAL ? -1 : this.frameId, + frameId: scope === VarScope.global ? -1 : this.frameId, name: property.attr.fullname, value: this.buildVariableValue(property), }; @@ -129,7 +131,7 @@ export class VariableHandler { indexedVariables, namedVariables, variablesReference: - attr.type != 'object' + attr.type !== 'object' ? 0 : this.variableHandles.create(ahkVar), }; @@ -142,7 +144,7 @@ export class VariableHandler { private buildVariableValue(property: DbgpProperty): any { const { attr, content = '' } = property; - if (['string', 'integer', 'float'].includes(attr.type) === true) { + if (['string', 'integer', 'float'].includes(attr.type)) { const primitive = Util.atob(content); if (attr.type === 'integer' || attr.type === 'float') { return primitive; @@ -150,10 +152,7 @@ export class VariableHandler { return `"${primitive}"`; } else if (attr.type === 'object') { const childs = Util.toArray(property.property); - if ( - this.likeArray(property) == true && - attr.classname === 'Object' - ) { + if (this.likeArray(property) && attr.classname === 'Object') { return childs.map((p) => { return Util.atob(p.content); }); @@ -172,7 +171,7 @@ export class VariableHandler { private formatPropertyValue(property: DbgpProperty): string { const { attr, content = '' } = property; - if (['string', 'integer', 'float'].includes(attr.type) === true) { + if (['string', 'integer', 'float'].includes(attr.type)) { const primitive = Buffer.from(content, attr.encoding).toString(); if (attr.type === 'integer' || attr.type === 'float') { @@ -180,7 +179,7 @@ export class VariableHandler { } return `"${primitive}"`; } else if (attr.type === 'object') { - if (this.likeArray(property) == true) { + if (this.likeArray(property)) { const classname = attr.classname === 'Object' ? 'Array' : attr.classname; const length = this.getLikeArrayLength(property); @@ -194,7 +193,7 @@ export class VariableHandler { private getLikeArrayLength(property: DbgpProperty): number { const properties: DbgpProperty[] = Util.toArray(property.property); - if (properties.length == 0) { + if (properties.length === 0) { return 0; } for (let i = properties.length - 1; i > 0; i--) { diff --git a/src/debugger/struct/command.ts b/src/debugger/struct/command.ts index 7c2cbc05..9f0969cc 100644 --- a/src/debugger/struct/command.ts +++ b/src/debugger/struct/command.ts @@ -1,7 +1,7 @@ export enum Continue { - BREAK = 'break', - RUN = 'run', - STEP_OVER = 'step_over', - STEP_OUT = 'step_out', - STEP_INTO = 'step_into', + break = 'break', + run = 'run', + stepOver = 'stepOver', + stepOut = 'stepOut', + stepInto = 'stepInto', } diff --git a/src/debugger/struct/dbgpResponse.ts b/src/debugger/struct/dbgpResponse.ts index 08493d02..c203f599 100644 --- a/src/debugger/struct/dbgpResponse.ts +++ b/src/debugger/struct/dbgpResponse.ts @@ -1,9 +1,12 @@ +// Property names may come from AHK itself +// let's not change names until we are more confident export interface DbgpResponse { attr: { /** only one stack */ stack: any; command: string; context: string; + // eslint-disable-next-line @typescript-eslint/naming-convention transaction_id: string; success: '0' | '1'; /** Breakpoint id */ diff --git a/src/debugger/struct/scope.ts b/src/debugger/struct/scope.ts index 03d3c3cf..a18f8e18 100644 --- a/src/debugger/struct/scope.ts +++ b/src/debugger/struct/scope.ts @@ -1,9 +1,9 @@ export enum VarScope { - LOCAL = 0, - GLOBAL = 1, + local = 0, + global = 1, } export enum VscodeScope { - LOCAL = 1000, - GLOBAL = 1001, + local = 1000, + global = 1001, } diff --git a/src/debugger/util/util.ts b/src/debugger/util/util.ts index f19de47b..abc9f723 100644 --- a/src/debugger/util/util.ts +++ b/src/debugger/util/util.ts @@ -1,6 +1,8 @@ export class Util { public static toArray(obj: T | T[]): T[] { - if (!obj) return []; + if (!obj) { + return []; + } return Array.isArray(obj) ? obj : [obj]; } @@ -8,7 +10,9 @@ export class Util { * base64 to string */ public static atob(base64: string) { - if (!base64) return null; + if (!base64) { + return null; + } return Buffer.from(base64, 'base64').toString(); } @@ -16,7 +20,9 @@ export class Util { * string to base64 */ public static btoa(data: string) { - if (!data) return null; + if (!data) { + return null; + } return Buffer.from(data).toString('base64'); } } diff --git a/src/parser/model.ts b/src/parser/model.ts index 13493519..1eaffa96 100644 --- a/src/parser/model.ts +++ b/src/parser/model.ts @@ -64,15 +64,15 @@ export class Method { private buildParams() { const refPattern = /\s*\((.+?)\)\s*$/; - if (this.origin != this.name) { + if (this.origin !== this.name) { const paramsMatch = this.origin.match(refPattern); if (paramsMatch) { this.params = paramsMatch[1] .split(',') - .filter((param) => param.trim() != '') + .filter((param) => param.trim() !== '') .map((param) => { const paramMatch = param.match(/[^:=* \t]+/); - return paramMatch != null ? paramMatch[0] : param; + return paramMatch?.[0] ?? param; }); this.full = this.origin.replace( paramsMatch[1], @@ -91,10 +91,14 @@ export class Method { } loop: for (const variable of variables) { for (const curVariable of this.variables) { - if (curVariable.name == variable.name) continue loop; + if (curVariable.name === variable.name) { + continue loop; + } } for (const paramStr of this.params) { - if (paramStr == variable.name) continue loop; + if (paramStr === variable.name) { + continue loop; + } } this.variables.push(variable); } diff --git a/src/parser/parser.ts b/src/parser/parser.ts index c754a291..779de537 100644 --- a/src/parser/parser.ts +++ b/src/parser/parser.ts @@ -12,7 +12,9 @@ export class Parser { * @param buildPath */ public static async buildByPath(buildPath: string) { - if (!buildPath) return; + if (!buildPath) { + return; + } if (fs.statSync(buildPath).isDirectory()) { fs.readdir(buildPath, (err, files) => { if (err) { @@ -42,7 +44,7 @@ export class Parser { document: vscode.TextDocument, usingCache = false, ): Promise