liuyuqi-dellpc 4 years ago
parent
commit
2427f39a0c

+ 10 - 1
test/1_基础.ahk

@@ -1,3 +1,12 @@
-;               !n=alt + n       Run notepad=打开记事本
+; @Author  : liuyuqi
+; @Contact : liuyuqi.gov@msn.cn
+; @Time    : 2015/07/21
+; @Version : 1.0
+; @Desc    : !n=alt + n       Run notepad=打开记事本
+
 !n::Run notepad
 
+;上面简洁但阅读不好。
+!n::
+    Run notepad
+Return

+ 8 - 3
test/2_基础send.ahk

@@ -1,6 +1,12 @@
+; @Author  : liuyuqi
+; @Contact : liuyuqi.gov@msn.cn
+; @Time    : 2015/07/21
+; @Version : 1.0
+; @Desc    : 基础send
+
 ; ctrl+J 自动输入 My First Script
 ^j::
-Send, My First Script
+   Send, My First Script
 Return
 
 ; 输入 ftw 字符串后,自动替换为 Free the whales
@@ -10,5 +16,4 @@ Return
 ; 输入 btw 弹框
 ::fky::
    MsgBox You typed "fuck you".
-Return
-
+Return

+ 6 - 0
test/3_命令和函数 - Copy.ahk

@@ -1,3 +1,9 @@
+; @Author  : liuyuqi
+; @Contact : liuyuqi.gov@msn.cn
+; @Time    : 2015/05/11
+; @Version : 1.0
+; @Desc    : 命令和函数
+
 ;Command, 参数1, 参数2, 参数3
 
 age=18

+ 5 - 1
test/4_调试.ahk

@@ -1,4 +1,8 @@
-
+; @Author  : liuyuqi
+; @Contact : liuyuqi.gov@msn.cn
+; @Time    : 2015/05/21
+; @Version : 1.0
+; @Desc    : 调试
 
 Hotkey, #c, Display
 

+ 6 - 1
win+enter_窗体顶置.ahk

@@ -1,4 +1,9 @@
-;win+space切换窗口顶置
+; @Author  : liuyuqi
+; @Contact : liuyuqi.gov@msn.cn
+; @Time    : 2015/07/21
+; @Version : 1.0
+; @Desc    : win+space切换窗口顶置
+
 #space:: 
 	WinGetActiveTitle, w     	;将当前激活窗口存入变量w
 	Winset, AlwaysOnTop, Toggle, %w%

+ 6 - 4
win+enter_窗口透明.ahk

@@ -1,10 +1,12 @@
-;左shift + 鼠标滚轮调整窗口透明度(设置30-255的透明度)
-;
-;使用说明:
+; @Author  : liuyuqi
+; @Contact : liuyuqi.gov@msn.cn
+; @Time    : 2015/07/21
+; @Version : 1.0
+; @Desc    : 左shift + 鼠标滚轮调整窗口透明度(设置30-255的透明度)
 ;   左侧shift + 滚轮下滑:减少透明度,一次10
 ;   左侧shift + 滚轮上滑:增加透明度,一次20
 ;   左侧shift + 中键按下:恢复透明度至255(完全不透明).
-;
+
 ~LShift & WheelUp::
 	; 透明度调整,增加。
 	WinGet, Transparent, Transparent,A

+ 6 - 0
双按Home键熄屏.ahk

@@ -1,3 +1,9 @@
+; @Author  : liuyuqi
+; @Contact : liuyuqi.gov@msn.cn
+; @Time    : 2015/07/21
+; @Version : 1.0
+; @Desc    : 双按Home键熄屏
+
 ~Home::
     If Home_Presses > 0{
         Home_Presses += 1

+ 5 - 1
大写键为Enter键.ahk

@@ -1,4 +1,8 @@
-;replace CapsLock to LeftEnter; CapsLock = Alt + CapsLock
+; @Author  : liuyuqi
+; @Contact : liuyuqi.gov@msn.cn
+; @Time    : 2015/07/21
+; @Version : 1.0
+; @Desc    : replace CapsLock to LeftEnter; CapsLock = Alt + CapsLock
 $CapsLock::
 	Enter
 Return

+ 9 - 3
常用语缩写.ahk

@@ -1,5 +1,11 @@
-::/mail::gmail@gmail.com
-::/jeff::https://www.jeffjade.com/
+; @Author  : liuyuqi
+; @Contact : liuyuqi.gov@msn.cn
+; @Time    : 2015/07/21
+; @Version : 1.0
+; @Desc    : 常用语缩写
+
+::/maily::liuyuqi.gov@msn.cn
+::/blogy::http://.blog.yoqi.me/
 ::/con::console.log();
 ::/js::javascript:;
-::/fk::轩先生这会子肯定在忙,请骚后。thx。祝君:天天开心,日日欣悦。
+::/fk::

+ 5 - 0
显示按键.ahk

@@ -1,3 +1,8 @@
+; @Author  : liuyuqi
+; @Contact : liuyuqi.gov@msn.cn
+; @Time    : 2015/07/21
+; @Version : 1.0
+; @Desc    : 显示按键
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ; Config area
 

+ 7 - 16
显示组合键.ahk

@@ -1,10 +1,14 @@
+; @Author  : liuyuqi
+; @Contact : liuyuqi.gov@msn.cn
+; @Time    : 2015/2/12
+; @Version : 1.1
+; @Desc    : 显示组合键
+
 #SingleInstance force
 #NoEnv
 SetBatchLines, -1
 
 transN := 200	; 透明度
-
-
 ; #################################
 ;		GUI
 ; #################################
@@ -37,7 +41,6 @@ Loop, parse, Otherkeys, |
 
 Return
 
-
 ; #################################
 ;		显示按键
 ; #################################
@@ -45,50 +48,38 @@ Return
 Display:
 	If A_ThisHotkey =
 		Return
-
 	mods := "Ctrl|Shift|Alt|LWin|RWin"
 	prefix =
-
 	Loop, Parse, mods, |
 		if GetKeyState(A_LoopField)
 			prefix := prefix A_LoopField " + "
-
 	if !prefix		; 如果没有组合键则不显示
 		Return
-
 	key := SubStr(A_ThisHotkey, 3)
 	if (key = " ")
 		key := "Space"
-
 	ShowHotkey(prefix key)
 	FadeOut()
 Return
 
-
-; ===================================================================================
 ShowHotkey(Hotkey)
 {
 	GuiControl, , HotkeyText, %Hotkey%
-
 	WinGetPos, ActWin_X, ActWin_Y, ActWin_W, ActWin_H, A
 	text_w := ActWin_W, gui_y := (ActWin_Y + ActWin_H) - 100 -50 ;gui_y可能会
 	GuiControl, Move, HotkeyText, w%text_w% center
 	Try{
 		Gui, Show, NoActivate x%ActWin_X% y%gui_y% h115 w%text_w%
-	}
-		
+	}		
 }
 
 FadeOut(sleep = 1000)
 {
 	global transN
-
 	Sleep, %Sleep%
 	Gui, +LastFound
-
 	Loop, % transN
 		WinSet, Transparent, % (A_Index - transN - 1) * -1
-
 	Gui, Hide
 	WinSet, Transparent, % transN
 }

+ 6 - 0
浏览器添加左右键翻页.ahk

@@ -1,3 +1,9 @@
+; @Author  : liuyuqi
+; @Contact : liuyuqi.gov@msn.cn
+; @Time    : 2015/07/21
+; @Version : 1.0
+; @Desc    : 浏览器添加左右键翻页
+
 SetTitleMatchMode, 2  ;//匹配部分标题
 
 GroupAdd, MyBrowser, ahk_class IEFrame

+ 7 - 1
隐藏标题栏.ahk

@@ -1,4 +1,10 @@
-#t::
+; @Author  : liuyuqi
+; @Contact : liuyuqi.gov@msn.cn
+; @Time    : 2015/1/1
+; @Version : 1.0
+; @Desc    : 隐藏标题栏
+
+#t::
 	SetTitleMatchMode, 2 ;设定ahk匹配窗口标题的模式
 	winactivate,A ; 激活此窗口
 	sleep, 500 ; 延时,确保

+ 6 - 1
隐藏窗口.ahk

@@ -1,4 +1,9 @@
-; Win+C,Chrome没打开状态时候 –> 打开;打开没激活状态时候 –> 激活;打开处在激活状态时候 —> 隐藏
+; @Author  : liuyuqi
+; @Contact : liuyuqi.gov@msn.cn
+; @Time    : 2015/12/4
+; @Version : 1.0
+; @Desc    : Win+C,Chrome没打开状态时候 –> 打开;打开没激活状态时候 –> 激活;打开处在激活状态时候 —> 隐藏
+
 #c::
 	If WinNotExist ahk_class Chrome_WidgetWin_1 {
 		Run "C:\Users\Administrator\AppData\Local\Google\Chrome\Application\chrome.exe"