This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;TVPath v1.1 based on wz520 v1.0 Patched by TSiNGKONG [tsingkong~gmail.com] 2015-05-15 | |
; 1. 本文件使用 UTF-16le 编码保存 | |
; 2. 兼容 Unicode 与 非Unicode TreeView | |
; 3. 兼容 AutoHotkeyA32, AutoHotkeyU32; 其他未测试 | |
; | |
;TVPath v1.0 Written By wz520 [wingzero1040~gmail.com] | |
; | |
; 函数:TVPath_Get | |
; 说明: | |
; 读取任意 SysTreeView32 控件的选中项目的路径。格式如 Root\Parent\SelectedItem(分隔符可自定义)。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Img = http://www.animatedgif.net/cartoons/A_5odie_e0.gif | |
Img2 = http://www.animatedgif.net/cartoons/anime_hero2_e0.gif | |
Gui New, +HwndhGUI | |
gif1 := AnimatedGif( hGUI, Img, 50, 50, 200, 200,, "MyGif", "myGif_" ) | |
gif2 := AnimatedGif( hGUI, Img2, 300, 50, 292, 167, "White", "MyGif2", myGif2 ) | |
Gui Show, center | |
return | |
GuiClose: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; AutoHotkey Version: AutoHotkey 1.1 | |
; Language: English | |
; Platform: Win7 SP1 / Win8.1 | |
; Author: Antonio Bueno <user atnbueno of Google's popular e-mail service> | |
; Short description: Gets the URL of the current (active) browser tab for most modern browsers | |
; Last Mod: 2014-07-05 | |
Menu, Tray, Icon, % A_WinDir "\system32\netshell.dll", 86 ; Shows a world icon in the system tray | |
#u:: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Modified from http://www.autohotkey.com/board/topic/21189-compile-ahk-ii-for-those-who-compile/?p=316030 | |
Args: | |
filename - bin/exe file to switch | |
subsystem - "C" (console) or "G" (gui). if omitted, switches between the two. | |
*/ | |
switch_subsystem(filename, subsystem := "") { | |
static IMAGE_DOS_SIGNATURE := 0x5A4D | |
, IMAGE_NT_SIGNATURE := 0x4550 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~LButton:: | |
;~ if WinExist("ahk_class Notepad") | |
;~ MsgBox % "The active window's ID is " . WinExist("A") | |
mylist=ahk_class Notepad++ ,ahk_class Notepad,ahk_class SciTEWindow | |
WinGetClass,abc,A | |
tance:="ahk_class " abc | |
if tance contains %mylist% | |
{ | |
CoordMode, Mouse, Screen | |
MouseGetPos, m_x, m_y, m_hw_target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;----------------------------------------------------------------------- | |
;@Ahk2Exe-SetDescription 把 exe 转换为命令行或窗口模式 | |
;@Ahk2Exe-ConsoleApp | |
;@Ahk2Exe-SetVersion 1.0.0.0 | |
;----------------------------------------------------------------------- | |
; AutoHotkey 版本: 1.1.22.02 U32 | |
; 系统版本 : Win7 x64 | |
; 作者 : tmplinshi | |
; 发布日期 : 2015-5-31 | |
; 编译工具 : 新版 ahk2exe (未包含在 AutoHotkey 安装包中) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; MakeIco(["test.png"]) | |
MakeIco(sourceImages, icon:="") { ;Credits to kon - http://ahkscript.org/boards/viewtopic.php?p=14093#p14093 | |
If (!icon) { | |
SplitPath, % sourceImages[1],, si_dir,, si_name | |
If (si_dir) | |
icon := si_dir "\" si_name ".ico" | |
Else | |
icon := si_name ".ico" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; http://www.autohotkey.com/board/topic/96129-ahk-l-custom-autocompletion-for-edit-control-with-drop-down-list/ | |
/* Autocompletion | |
Function : Autocomplete(hwnd , action , p1=0 , p2=0) | |
Parameter | |
hwnd : hwnd of edit control | |
action : init , enable , disable , release , option | |
Usage: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
WM_ACTIVATE := 0x06 | |
WM_KILLFOCUS := 0x08 | |
WM_LBUTTONDOWN := 0x201 | |
WM_LBUTTONUP := 0x202 | |
global Border := new Outline, Stored:={}, Acc, ChildId, TVobj, Win:={} | |
} | |
{ | |
DetectHiddenWindows, On | |
OnExit, OnExitCleanup |