Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block tmplinshi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
tmplinshi / IM Emoticons.ahk
Last active Dec 18, 2015
This script is intended used for chat client.
View IM Emoticons.ahk
; ======================================================================================================================
; IM Emoticons v1.00 (2013-6-20) by tmplinshi
; Tested on: AHK_L v1.1.10.01 (A32) / WINDOWS XP SP3
; ======================================================================================================================
; This script is intended used for chat client.
; Usage: Click or drag emotion into the chat window.
; ======================================================================================================================
View gist:5997315
Gui, Add, ActiveX, w100 h100 vWB, Shell.Explorer
WB.Navigate("res://" A_ScriptFullPath "/#10/ICON_SMILE.GIF")
Gui, Show
FileInstall, icon_smile.gif, NUL
tmplinshi / copyimg.ahk
Last active Dec 19, 2015
Copy local image or web image to clipboard.
View copyimg.ahk
#SingleInstance force
#Include <WinClipAPI> ;
#Include <WinClip>
SetBatchLines, -1
InputBox, ImageFile, Copy image to clipboard, Please input image path`, or image url:,, 500, 120
if ErrorLevel
View QQ表情.ahk
; Author: tmplinshi
#SingleInstance force
SetWorkingDir, %A_ScriptDir%
SetBatchLines, -1
CoordMode, Mouse, Screen
gui_title := "QQ表情 v0.31"
View Image2Include.ahk
; Image2Include.ahk
#SingleInstance Off
; ======================================================================================================================
; Function: Creates AHK #Include files for images providing a function which will internally create a bitmap/icon.
; AHK version: (U32)
; Script version: me - added support for icons (HICON)
; me - fixed bug producing invalid function names
; me
View Class_Base64.ahk
; ======================================================================================================================
; Namespace: Base64
; AHK version: AHK 1.1.+ (required)
; Function: Methods for Base64 en/decoding.
; Language: English
; Tested on: Win XPSP3, Win VistaSP2 (U32) / Win 7 (U64)
; Version: me
; URL:
; Remarks: The ANSI functions are used by default to save space. ANSI needs about 133 % of the original size for
; encoding, whereas Unicode needs about 266 %.
tmplinshi / st_hotkey.ahk
Created Oct 3, 2013
Run/Compile ahk in Sublime Text window with hotkey.
View st_hotkey.ahk
ahk_dir = D:\Program Files\AutoHotkey
exe_ahkANSI = %ahk_dir%\AutoHotkeyA32.exe
exe_ahkUnicode = %ahk_dir%\AutoHotkeyU32.exe
exe_ahk2exe = %ahk_dir%\Compiler\Ahk2Exe.exe
; Hotkey in Sublime Text Window
#IfWinActive, ahk_class PX_WINDOW_CLASS
; ----------------------- Run
View KeypressOSD.ahk
; KeypressOSD.ahk
; ChangeLog : v2.22 (2017-02-25) - Now pressing same combination keys continuously more than 2 times,
; for example press Ctrl+V 3 times, will displayed as "Ctrl + v (3)"
; v2.21 (2017-02-24) - Fixed LWin/RWin not poping up start menu
; v2.20 (2017-02-24) - Added displaying continuous-pressed combination keys.
; e.g.: With CTRL key held down, pressing K and U continuously will shown as "Ctrl + k, u"
; v2.10 (2017-01-22) - Added ShowStickyModKeyCount option
; v2.09 (2017-01-22) - Added ShowModifierKeyCount option
; v2.08 (2017-01-19) - Fixed a bug
View hIcon_As_hCursor.ahk
SetBatchLines -1
Gui, Add, Text, w200, test
Gui, Add, Edit, w350 h100 ReadOnly hwndhEdit
Gui, Add, Edit, wp, Try move the cursor to here. Isn't it difficult?
Gui, Add, Button, wp
Gui, Show
hCursor := Create_arrow_png()
; hCursor := Create_smile_png() ; <------ Try this one :)
View ImageCursor.ahk
#SingleInstance Force
SetBatchLines -1
OnExit, exit
hCursor := Create_smile_png()
hCursor2 := Create_smile2_png()
DllCall( "SetSystemCursor", Uint,hCursor, Int,32512 )
DllCall( "SetSystemCursor", Uint,hCursor2, Int,32513 )
You can’t perform that action at this time.