Skip to content

Instantly share code, notes, and snippets.

tmplinshi

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
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
return
FileInstall, icon_smile.gif, NUL
@tmplinshi
tmplinshi / copyimg.ahk
Last active Dec 19, 2015
Copy local image or web image to clipboard.
View copyimg.ahk
#NoEnv
#SingleInstance force
#Include <WinClipAPI> ; http://www.autohotkey.com/board/topic/74670-class-winclip-direct-clipboard-manipulations/
#Include <WinClip>
SetBatchLines, -1
f1::
InputBox, ImageFile, Copy image to clipboard, Please input image path`, or image url:,, 500, 120
if ErrorLevel
Return
View QQ表情.ahk
; Author: tmplinshi
#NoEnv
#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: 1.1.10.01 (U32)
; Script version: 1.0.00.02/2013-06-02/just me - added support for icons (HICON)
; 1.0.00.01/2013-05-18/just me - fixed bug producing invalid function names
; 1.0.00.00/2013-04-30/just 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: 1.0.00.00/2012-08-12/just me
; URL: http://msdn.microsoft.com/en-us/library/windows/desktop/aa380252(v=vs.85).aspx
; 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
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
#NoEnv
#SingleInstance Force
#Persistent
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.