鼠标指针INF制作方法
鼠标指针INF制作方法
爱学习的小伙伴们,你们知道鼠标指针INF制作方法吗?不知道的话跟着学习啦小编一起来学习了解鼠标指针INF制作方法。
鼠标指针INF制作方法详解
很多鼠标指针都使用inf文件进行安装,我们也可以为自己制作的指针制作安装文件,先来熟悉一下:
;INF文件头,提供有效INF文件的版本信息
;在[Version]节中"Signature"项定义了该INF文件需要运行在何种操作系统版本中。有$Windows NT$, $Chicago$, or $Windows 95$三个值供选择,一般选择$Chicago$即可
[Version]
signature="$CHICAGO$"
;安装包含所关联动作(文件拷贝或删除,注册表键值更新、子键增删等)在INF文件内的节名指针,默认情况下首先执行该节内容
[DefaultInstall]
;复制文件
CopyFiles = Scheme.Cur, Scheme.Txt
;增加注册表键或键值
AddReg = Scheme.Reg
;指定罗列于一个节内将被拷贝、删除或重命名的文件在硬盘上的位置
[DestinationDirs]
;FileList1=10 ;安装到Windows目录
Scheme.Cur = 10,"%CUR_DIR%"
Scheme.Txt = 10,"%CUR_DIR%"
;定义Scheme.Reg
[Scheme.Reg]
HKCU,"Control Panel\Cursors\Schemes","%SCHEME_NAME%",,"%10%\%CUR_DIR%\%pointer%,%10%\%CUR_DIR%\%help%,%10%\%CUR_DIR%\%work%,%10%\%CUR_DIR%\%busy%,%10%\%CUR_DIR%\%Cross%,%10%\%CUR_DIR%\%Text%,%10%\%CUR_DIR%\%Hand%,%10%\%CUR_DIR%\%Unavailiable%,%10%\%CUR_DIR%\%Vert%,%10%\%CUR_DIR%\%Horz%,%10%\%CUR_DIR%\%Dgn1%,%10%\%CUR_DIR%\%Dgn2%,%10%\%CUR_DIR%\%move%,%10%\%CUR_DIR%\%alternate%,%10%\%CUR_DIR%\%link%"
; -- Common Information
;定义Scheme.Cur
[Scheme.Cur]
"Cursor.cur"
"Help.cur"
"Working.ani"
"Busy.ani"
"Cross.cur"
"Beam.cur"
"Pen.cur"
"Unavailable.cur"
"Size Horz.cur"
"Size Vert.cur"
"Resize Right.cur"
"Resize Left.cur"
"Resize All.cur"
"Alternate.cur"
"Hand.cur"
;定义一个或多个本地化字符串
[Strings]
CUR_DIR = "Cursors\Vista"
SCHEME_NAME = "Vista"
pointer = "Cursor.cur"
help = "Help.cur"
work = "Working.ani"
busy = "Busy.ani"
cross = "Cross.cur"
text = "Beam.cur"
hand = "Pen.cur"
unavailiable = "Unavailable.cur"
vert = "Size Horz.cur"
horz = "Size Vert.cur"
dgn1 = "Resize Right.cur"
dgn2 = "Resize Left.cur"
move = "Resize All.cur"
alternate = "Alternate.cur"
link = "Hand.cur"
一个完整的inf文件,稍加改动,就可以使用了:
[Version]
signature="$CHICAGO$"
[DefaultInstall]
CopyFiles = Scheme.Cur, Scheme.Txt
AddReg = Scheme.Reg
[DestinationDirs]
Scheme.Cur = 10,"%CUR_DIR%"
Scheme.Txt = 10,"%CUR_DIR%"
[Scheme.Reg]
HKCU,"Control Panel\Cursors\Schemes","%SCHEME_NAME%",,"%10%\%CUR_DIR%\%pointer%,%10%\%CUR_DIR%\%help%,%10%\%CUR_DIR%\%work%,%10%\%CUR_DIR%\%busy%,%10%\%CUR_DIR%\%Cross%,%10%\%CUR_DIR%\%Text%,%10%\%CUR_DIR%\%Hand%,%10%\%CUR_DIR%\%Unavailiable%,%10%\%CUR_DIR%\%Vert%,%10%\%CUR_DIR%\%Horz%,%10%\%CUR_DIR%\%Dgn1%,%10%\%CUR_DIR%\%Dgn2%,%10%\%CUR_DIR%\%move%,%10%\%CUR_DIR%\%alternate%,%10%\%CUR_DIR%\%link%"
; -- Common Information
[Scheme.Cur]
"Cursor.cur"
"Help.cur"
"Working.ani"
"Busy.ani"
"Cross.cur"
"Beam.cur"
"Pen.cur"
"Unavailable.cur"
"Size Horz.cur"
"Size Vert.cur"
"Resize Right.cur"
"Resize Left.cur"
"Resize All.cur"
"Alternate.cur"
"Hand.cur"
[Strings]
CUR_DIR = "Cursors\Vista"
SCHEME_NAME = "Vista"
pointer = "Cursor.cur"
help = "Help.cur"
work = "Working.ani"
busy = "Busy.ani"
cross = "Cross.cur"
text = "Beam.cur"
hand = "Pen.cur"
unavailiable = "Unavailable.cur"
vert = "Size Horz.cur"
horz = "Size Vert.cur"
dgn1 = "Resize Right.cur"
dgn2 = "Resize Left.cur"
move = "Resize All.cur"
alternate = "Alternate.cur"
link = "Hand.cur"用记事本另存为"安装文件.inf",就可以使用了~
鼠标指针INF制作方法相关文章: