Diff
checker
文本
文本
圖像
文檔
Excel
文件夾
Legal
Enterprise
桌面版
定價
登入
下載 Diffchecker 桌面版
比較文本
尋找兩個文字檔案之間的差異
工具
歷史
即時編輯器
摺疊未變更行
關閉換行
檢視
拆分
統一
比對精度
智能
單詞
字符
語法突出顯示
選擇語法
忽略
文字轉換
前往第一個差異
編輯輸入
Diffchecker Desktop
執行Diffchecker最安全的方式。取得Diffchecker桌面應用程式:您的差異永遠不會離開您的電腦!
取得桌面版
Untitled Diff
建立於
6 年前
差異永不過期
清除
匯出
分享
解釋
4 刪除
行
總計
刪除
字符
總計
刪除
要繼續使用此功能,請升級到
Diff
checker
Pro
查看價格
70 行
全部複製
9 新增
行
總計
新增
字符
總計
新增
要繼續使用此功能,請升級到
Diff
checker
Pro
查看價格
70 行
全部複製
; Source: Serenity - https://autohotkey.com/board/topic/32608-changing-the-system-cursor/
; Source: Serenity - https://autohotkey.com/board/topic/32608-changing-the-system-cursor/
; Modified: iseahound
; Modified: iseahound
SetSystemCursor(Cursor := "", cx := 0, cy := 0) {
SetSystemCursor(Cursor := "", cx := 0, cy := 0) {
SystemCursors := "32512IDC_ARROW,32513IDC_IBEAM,32514IDC_WAIT,32515IDC_CROSS,32516IDC_UPARROW"
SystemCursors := "32512IDC_ARROW,32513IDC_IBEAM,32514IDC_WAIT,32515IDC_CROSS,32516IDC_UPARROW"
. ",32640IDC_SIZE,32641IDC_ICON,32642IDC_SIZENWSE,32643IDC_SIZENESW,32644IDC_SIZEWE"
. ",32640IDC_SIZE,32641IDC_ICON,32642IDC_SIZENWSE,32643IDC_SIZENESW,32644IDC_SIZEWE"
. ",32645IDC_SIZENS,32646IDC_SIZEALL,32648IDC_NO,32649IDC_HAND,32650IDC_APPSTARTING,32651IDC_HELP"
. ",32645IDC_SIZENS,32646IDC_SIZEALL,32648IDC_NO,32649IDC_HAND,32650IDC_APPSTARTING,32651IDC_HELP"
if (Cursor = "") {
if (Cursor = "") {
VarSetCapacity(AndMask, 128, 0xFF), VarSetCapacity(XorMask, 128, 0)
VarSetCapacity(AndMask, 128, 0xFF), VarSetCapacity(XorMask, 128, 0)
Loop Parse, SystemCursors, % ","
Loop Parse, SystemCursors, % ","
{
{
CursorHandle := DllCall("CreateCursor", "ptr", 0, "int", 0, "int", 0, "int", 32, "int", 32, "ptr", &AndMask, "ptr", &XorMask)
CursorHandle := DllCall("CreateCursor", "ptr", 0, "int", 0, "int", 0, "int", 32, "int", 32, "ptr", &AndMask, "ptr", &XorMask)
複製
已複製
複製
已複製
DllCall("SetSystemCursor", "ptr", CursorHandle, "
int", SubStr(A_LoopField, 1, 5)) ; calls DestroyCursor
DllCall("SetSystemCursor", "ptr", CursorHandle, "
u
int", SubStr(A_LoopField, 1, 5)) ; calls DestroyCursor
}
}
return
return
}
}
if SubStr(Cursor, 1, 4) = "IDC_" {
if SubStr(Cursor, 1, 4) = "IDC_" {
Loop Parse, SystemCursors, % ","
Loop Parse, SystemCursors, % ","
{
{
CursorName := SubStr(A_LoopField, 6, 15) ; get the cursor name, no trailing space with substr
CursorName := SubStr(A_LoopField, 6, 15) ; get the cursor name, no trailing space with substr
CursorID := SubStr(A_LoopField, 1, 5) ; get the cursor id
CursorID := SubStr(A_LoopField, 1, 5) ; get the cursor id
} until (CursorName = Cursor)
} until (CursorName = Cursor)
複製
已複製
複製
已複製
if !(CursorShared:= DllCall("LoadCursor", "uint", 0, "
int", CursorID))
if !(CursorShared:= DllCall("LoadCursor", "uint", 0, "
u
int", CursorID))
throw Exception("Error: Invalid cursor name")
throw Exception("Error: Invalid cursor name")
Loop Parse, SystemCursors, % ","
Loop Parse, SystemCursors, % ","
{
{
複製
已複製
複製
已複製
CursorHandle := DllCall("CopyImage", "
uint
", CursorShared, "uint", 2, "int", cx, "int", cy, "uint", 0)
CursorHandle := DllCall("CopyImage", "
ptr
", CursorShared, "uint", 2, "int", cx, "int", cy, "uint", 0)
DllCall("SetSystemCursor", "ptr", CursorHandle, "
int", SubStr(A_LoopField, 1, 5)) ; calls DestroyCursor
DllCall("SetSystemCursor", "ptr", CursorHandle, "
u
int", SubStr(A_LoopField, 1, 5)) ; calls DestroyCursor
}
}
return
return
}
}
if FileExist(Cursor) {
if FileExist(Cursor) {
SplitPath, Cursor,,, Ext ; auto-detect type
SplitPath, Cursor,,, Ext ; auto-detect type
if ((uType := (Ext = "ani" || Ext = "cur") ? 2 : (Ext = "ico") ? 1 : (Ext = "bmp") ? 0 : "") == "")
if ((uType := (Ext = "ani" || Ext = "cur") ? 2 : (Ext = "ico") ? 1 : (Ext = "bmp") ? 0 : "") == "")
throw Exception("Error: Invalid file type")
throw Exception("Error: Invalid file type")
if (Ext = "ani") {
if (Ext = "ani") {
Loop Parse, SystemCursors, % ","
Loop Parse, SystemCursors, % ","
{
{
複製
已複製
複製
已複製
CursorHandle := DllCall("LoadImage", "
uint
", 0, "str", Cursor, "uint", uType, "int", cx, "int", cy, "uint", 0x10)
CursorHandle := DllCall("LoadImage", "
ptr
", 0, "str", Cursor, "uint", uType, "int", cx, "int", cy, "uint", 0x10)
DllCall("SetSystemCursor", "ptr", CursorHandle, "
int", SubStr(A_LoopField, 1, 5)) ; calls DestroyCursor
DllCall("SetSystemCursor", "ptr", CursorHandle, "
u
int", SubStr(A_LoopField, 1, 5)) ; calls DestroyCursor
}
}
} else {
} else {
複製
已複製
複製
已複製
if !(CursorShared := DllCall("LoadImage", "
uint
", 0, "str", Cursor, "uint", uType, "int", cx, "int", cy, "uint", 0x00008010))
if !(CursorShared := DllCall("LoadImage", "
ptr
", 0, "str", Cursor, "uint", uType, "int", cx, "int", cy, "uint", 0x00008010))
throw Exception("Error: Corrupted file")
throw Exception("Error: Corrupted file")
Loop Parse, SystemCursors, % ","
Loop Parse, SystemCursors, % ","
{
{
複製
已複製
複製
已複製
CursorHandle := DllCall("CopyImage", "
uint
", CursorShared, "uint", 2, "int", 0, "int", 0, "uint", 0)
CursorHandle := DllCall("CopyImage", "
ptr
", CursorShared, "uint", 2, "int", 0, "int", 0, "uint", 0)
DllCall("SetSystemCursor", "ptr", CursorHandle, "
int", SubStr(A_LoopField, 1, 5)) ; calls DestroyCursor
DllCall("SetSystemCursor", "ptr", CursorHandle, "
u
int", SubStr(A_LoopField, 1, 5)) ; calls DestroyCursor
}
}
}
}
return
return
}
}
throw Exception("Error: Invalid file path or cursor name")
throw Exception("Error: Invalid file path or cursor name")
}
}
RestoreCursor() {
RestoreCursor() {
static SPI_SETCURSORS := 0x57
static SPI_SETCURSORS := 0x57
return DllCall("SystemParametersInfo", "uint", SPI_SETCURSORS, "uint", 0, "uint", 0, "uint", 0)
return DllCall("SystemParametersInfo", "uint", SPI_SETCURSORS, "uint", 0, "uint", 0, "uint", 0)
}
}
已保存差異
原始文本
開啟檔案
; Source: Serenity - https://autohotkey.com/board/topic/32608-changing-the-system-cursor/ ; Modified: iseahound SetSystemCursor(Cursor := "", cx := 0, cy := 0) { SystemCursors := "32512IDC_ARROW,32513IDC_IBEAM,32514IDC_WAIT,32515IDC_CROSS,32516IDC_UPARROW" . ",32640IDC_SIZE,32641IDC_ICON,32642IDC_SIZENWSE,32643IDC_SIZENESW,32644IDC_SIZEWE" . ",32645IDC_SIZENS,32646IDC_SIZEALL,32648IDC_NO,32649IDC_HAND,32650IDC_APPSTARTING,32651IDC_HELP" if (Cursor = "") { VarSetCapacity(AndMask, 128, 0xFF), VarSetCapacity(XorMask, 128, 0) Loop Parse, SystemCursors, % "," { CursorHandle := DllCall("CreateCursor", "ptr", 0, "int", 0, "int", 0, "int", 32, "int", 32, "ptr", &AndMask, "ptr", &XorMask) DllCall("SetSystemCursor", "ptr", CursorHandle, "int", SubStr(A_LoopField, 1, 5)) ; calls DestroyCursor } return } if SubStr(Cursor, 1, 4) = "IDC_" { Loop Parse, SystemCursors, % "," { CursorName := SubStr(A_LoopField, 6, 15) ; get the cursor name, no trailing space with substr CursorID := SubStr(A_LoopField, 1, 5) ; get the cursor id } until (CursorName = Cursor) if !(CursorShared:= DllCall("LoadCursor", "uint", 0, "int", CursorID)) throw Exception("Error: Invalid cursor name") Loop Parse, SystemCursors, % "," { CursorHandle := DllCall("CopyImage", "uint", CursorShared, "uint", 2, "int", cx, "int", cy, "uint", 0) DllCall("SetSystemCursor", "ptr", CursorHandle, "int", SubStr(A_LoopField, 1, 5)) ; calls DestroyCursor } return } if FileExist(Cursor) { SplitPath, Cursor,,, Ext ; auto-detect type if ((uType := (Ext = "ani" || Ext = "cur") ? 2 : (Ext = "ico") ? 1 : (Ext = "bmp") ? 0 : "") == "") throw Exception("Error: Invalid file type") if (Ext = "ani") { Loop Parse, SystemCursors, % "," { CursorHandle := DllCall("LoadImage", "uint", 0, "str", Cursor, "uint", uType, "int", cx, "int", cy, "uint", 0x10) DllCall("SetSystemCursor", "ptr", CursorHandle, "int", SubStr(A_LoopField, 1, 5)) ; calls DestroyCursor } } else { if !(CursorShared := DllCall("LoadImage", "uint", 0, "str", Cursor, "uint", uType, "int", cx, "int", cy, "uint", 0x00008010)) throw Exception("Error: Corrupted file") Loop Parse, SystemCursors, % "," { CursorHandle := DllCall("CopyImage", "uint", CursorShared, "uint", 2, "int", 0, "int", 0, "uint", 0) DllCall("SetSystemCursor", "ptr", CursorHandle, "int", SubStr(A_LoopField, 1, 5)) ; calls DestroyCursor } } return } throw Exception("Error: Invalid file path or cursor name") } RestoreCursor() { static SPI_SETCURSORS := 0x57 return DllCall("SystemParametersInfo", "uint", SPI_SETCURSORS, "uint", 0, "uint", 0, "uint", 0) }
更改後文本
開啟檔案
; Source: Serenity - https://autohotkey.com/board/topic/32608-changing-the-system-cursor/ ; Modified: iseahound SetSystemCursor(Cursor := "", cx := 0, cy := 0) { SystemCursors := "32512IDC_ARROW,32513IDC_IBEAM,32514IDC_WAIT,32515IDC_CROSS,32516IDC_UPARROW" . ",32640IDC_SIZE,32641IDC_ICON,32642IDC_SIZENWSE,32643IDC_SIZENESW,32644IDC_SIZEWE" . ",32645IDC_SIZENS,32646IDC_SIZEALL,32648IDC_NO,32649IDC_HAND,32650IDC_APPSTARTING,32651IDC_HELP" if (Cursor = "") { VarSetCapacity(AndMask, 128, 0xFF), VarSetCapacity(XorMask, 128, 0) Loop Parse, SystemCursors, % "," { CursorHandle := DllCall("CreateCursor", "ptr", 0, "int", 0, "int", 0, "int", 32, "int", 32, "ptr", &AndMask, "ptr", &XorMask) DllCall("SetSystemCursor", "ptr", CursorHandle, "uint", SubStr(A_LoopField, 1, 5)) ; calls DestroyCursor } return } if SubStr(Cursor, 1, 4) = "IDC_" { Loop Parse, SystemCursors, % "," { CursorName := SubStr(A_LoopField, 6, 15) ; get the cursor name, no trailing space with substr CursorID := SubStr(A_LoopField, 1, 5) ; get the cursor id } until (CursorName = Cursor) if !(CursorShared:= DllCall("LoadCursor", "uint", 0, "uint", CursorID)) throw Exception("Error: Invalid cursor name") Loop Parse, SystemCursors, % "," { CursorHandle := DllCall("CopyImage", "ptr", CursorShared, "uint", 2, "int", cx, "int", cy, "uint", 0) DllCall("SetSystemCursor", "ptr", CursorHandle, "uint", SubStr(A_LoopField, 1, 5)) ; calls DestroyCursor } return } if FileExist(Cursor) { SplitPath, Cursor,,, Ext ; auto-detect type if ((uType := (Ext = "ani" || Ext = "cur") ? 2 : (Ext = "ico") ? 1 : (Ext = "bmp") ? 0 : "") == "") throw Exception("Error: Invalid file type") if (Ext = "ani") { Loop Parse, SystemCursors, % "," { CursorHandle := DllCall("LoadImage", "ptr", 0, "str", Cursor, "uint", uType, "int", cx, "int", cy, "uint", 0x10) DllCall("SetSystemCursor", "ptr", CursorHandle, "uint", SubStr(A_LoopField, 1, 5)) ; calls DestroyCursor } } else { if !(CursorShared := DllCall("LoadImage", "ptr", 0, "str", Cursor, "uint", uType, "int", cx, "int", cy, "uint", 0x00008010)) throw Exception("Error: Corrupted file") Loop Parse, SystemCursors, % "," { CursorHandle := DllCall("CopyImage", "ptr", CursorShared, "uint", 2, "int", 0, "int", 0, "uint", 0) DllCall("SetSystemCursor", "ptr", CursorHandle, "uint", SubStr(A_LoopField, 1, 5)) ; calls DestroyCursor } } return } throw Exception("Error: Invalid file path or cursor name") } RestoreCursor() { static SPI_SETCURSORS := 0x57 return DllCall("SystemParametersInfo", "uint", SPI_SETCURSORS, "uint", 0, "uint", 0, "uint", 0) }
尋找差異