中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net  论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

游客:  注册 | 登录 | 命令行 | 会员 | 搜索 | 上传 | 帮助 »
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » 取消/恢复XP中CS鼠标加速→VBS版
作者:
标题: 取消/恢复XP中CS鼠标加速→VBS版 上一主题 | 下一主题
baomaboy
银牌会员





积分 1513
发帖 554
注册 2005-12-30
状态 离线
『楼 主』:  取消/恢复XP中CS鼠标加速→VBS版

相信很多CS老鸟都知道,

以前在WinMe下玩CS很顺手的,后来装了XP再玩CS发现鼠标速度很难控制,怎么调也不成,原因是XP系统相对于9X系统做了鼠标加速。

用这个小东西可以很方便的取消xp的鼠标加速,退出CS时还可以随时恢复加速。
集成在“网上邻居”的右键菜单中了。

操作后要注销一下才能有效果。

http://zhenlove.com.cn/cndos/fileup/files/CS_Mouse_Quicken.rar



2007-3-18 12:31
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
baomaboy
银牌会员





积分 1513
发帖 554
注册 2005-12-30
状态 离线
『第 2 楼』:  

郁闷 这里没人玩CS啊:(

2007-3-18 13:48
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
electronixtar
铂金会员





积分 7493
发帖 2672
注册 2005-9-2
状态 离线
『第 3 楼』:  

我,那是很久以前的事情了




C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
2007-3-18 14:45
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
baomaboy
银牌会员





积分 1513
发帖 554
注册 2005-12-30
状态 离线
『第 4 楼』:  



  Quote:
Dim WshSHell,FSO
On Error Resume Next
Set WshSHell = WScript.CreateObject("WScript.Shell")
Set FSO = CreateObject("Scripting.FileSystemObject")
Set WinVer = WshSHell.Environment("Process")
Set Args = WScript.Arguments
CloseTime = 5
FileName = WScript.ScriptName
FileFullName = WScript.ScriptFullName
FilePath = FSO.GetParentFolderName(FileFullName)
InsPath = FSO.GetSpecialFolder(1)
InsFullName = FSO.BuildPath(InsPath ,FileName)
LnkPathNT = WshSHell.SpecialFolders(2)
LnkPath9X = WshSHell.SpecialFolders(14)
LnkPathAll = WshSHell.SpecialFolders("StartMenu")
OtherFileName="CS_Mouse_Quicken"
OtherFilePath=FSO.GetSpecialFolder(1)
TemFileName = "CS_Mouse_Quicken.reg"
TemFilePath = FSO.GetSpecialFolder(1)
Copyright="玲珑科技"
QQ="QQ:25926183"
Email="Email:fty1995@163.com"
InsTitle="取消XP中CS鼠标加速"
InsAnswer="取消XP中CS鼠标加速"
RegPath0="HKEY_CURRENT_USER\Control Panel\Mouse\"
RegPath1="HKEY_CLASSES_ROOT\CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}\shell\CS_Mouse_Quicken\"
RegValue1="取消/恢复XP中CS鼠标加速"
RegForm1="REG_SZ"
RegPath2="HKEY_CLASSES_ROOT\CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}\shell\CS_Mouse_Quicken\command\"
RegValue2="wscript.exe "&InsFullName
RegForm2="REG_SZ"
RegPath3="HKEY_CURRENT_USER\Control Panel\Mouse\MouseSpeed"
RegValue3="1"
RegPath4="HKEY_CURRENT_USER\Control Panel\Mouse\MouseThreshold1"
RegValue4="6"
RegPath5="HKEY_CURRENT_USER\Control Panel\Mouse\MouseThreshold2"
RegValue5="10"
RegValue6="0"
MyShortcutFolder="快捷功能"
MyShortcutName="添加/取消快捷方式字样和箭头.Lnk"
If WinVer("OS") = "Windows_NT" Then
IF FileFullName <> InsFullName then
intAnswer = MsgBox("【是】将“"+ InsAnswer +"”加入到网上邻居右键菜单,"&Chr(10)&Chr(10)&"【否】将“"+ InsAnswer +"”从网上邻居右键菜单删除。 ", vbQuestion + vbYesNoCancel, "安装 - "+ InsTitle +" - "+ Copyright)
    If intAnswer = vbYes Then
WshSHell.RegWrite RegPath1,RegValue1,RegForm1
WshSHell.RegWrite RegPath2,RegValue2,RegForm2
FSO.GetFile(FileFullName).Copy(InsFullName)
if WshSHell.RegRead(RegPath1) = "取消XP中CS鼠标加速" then
WshSHell.RegWrite RegPath1, "恢复XP中CS鼠标加速", "REG_SZ"
else
WshSHell.RegWrite RegPath1, "取消XP中CS鼠标加速", "REG_SZ"
end if
WshSHell.popup _
"添加脚本文件:"+chr(10)+InsFullName+chr(10)+chr(10)+ _
"添加注册表项:"+chr(10)+chr(34)+ RegPath1 +chr(34)+chr(10)+ _
chr(10) & CloseTime & " 秒钟后本窗口将自动关闭!" +chr(10)+chr(10)+ _
chr(10) & "Copyright(C)  " + Copyright +"   " & QQ &"   " + Email _
, CloseTime, "安装成功 - "+ InsTitle +" - "+ Copyright, 0 + 64
end if
        If intAnswer = vbNo Then
WshSHell.RegDelete RegPath2
WshSHell.RegDelete RegPath1
FSO.DeleteFile InsFullName
WshSHell.popup _
"删除脚本文件:"+chr(10)+InsFullName+chr(10)+chr(10)+ _
"删除注册表项:"+chr(10)+chr(34)+ RegPath1 +chr(34)+chr(10)+ _
chr(10) & CloseTime & " 秒钟后本窗口将自动关闭!" +chr(10)+chr(10)+ _
chr(10) & "Copyright(C)  " + Copyright +"   " & QQ &"   " + Email _
, CloseTime, "卸载成功 - "+ InsTitle +" - "+ Copyright, 0 + 64
End If
        If intAnswer = vbCancel Then
end if
ELSE
if WshSHell.RegRead(RegPath1) = "取消XP中CS鼠标加速" then
WshSHell.RegWrite RegPath3,RegValue6,RegForm1
WshSHell.RegWrite RegPath4,RegValue6,RegForm1
WshSHell.RegWrite RegPath5,RegValue6,RegForm1
Set NewRegFile = FSO.CreateTextFile(FSO.BuildPath(TemFilePath ,TemFileName), True)
NewRegFile.WriteLine("Windows Registry Editor Version 5.00")
NewRegFile.WriteLine("")
NewRegFile.WriteLine("[HKEY_CURRENT_USER\Control Panel\Mouse]")
NewRegFile.WriteLine(chr(34)&"SmoothMouseXCurve"&chr(34)&"=hex:00,00,00,00,00,00,00,00,00,a0,00,00,00,00,00,00,00,40,\")
NewRegFile.WriteLine("  01,00,00,00,00,00,00,80,02,00,00,00,00,00,00,00,05,00,00,00,00,00")
NewRegFile.WriteLine(chr(34)&"SmoothMouseYCurve"&chr(34)&"=hex:00,00,00,00,00,00,00,00,66,a6,02,00,00,00,00,00,cd,4c,\")
NewRegFile.WriteLine("  05,00,00,00,00,00,a0,99,0a,00,00,00,00,00,38,33,15,00,00,00,00,00")
NewRegFile.Close
WshSHell.Run ("regedit.exe /s "&FSO.BuildPath(TemFilePath ,TemFileName)), vbHide
WshSHell.RegWrite RegPath1, "恢复XP中CS鼠标加速", "REG_SZ"
else
WshSHell.RegWrite RegPath3,RegValue3,RegForm1
WshSHell.RegWrite RegPath4,RegValue4,RegForm1
WshSHell.RegWrite RegPath5,RegValue5,RegForm1
Set NewRegFile = FSO.CreateTextFile(FSO.BuildPath(TemFilePath ,TemFileName), True)
NewRegFile.WriteLine("Windows Registry Editor Version 5.00")
NewRegFile.WriteLine("")
NewRegFile.WriteLine("[HKEY_CURRENT_USER\Control Panel\Mouse]")
NewRegFile.WriteLine(chr(34)&"SmoothMouseXCurve"&chr(34)&"=hex:00,00,00,00,00,00,00,00,15,6e,00,00,00,00,00,00,00,40,\")
NewRegFile.WriteLine("  01,00,00,00,00,00,29,dc,03,00,00,00,00,00,00,00,28,00,00,00,00,00")
NewRegFile.WriteLine(chr(34)&"SmoothMouseYCurve"&chr(34)&"=hex:00,00,00,00,00,00,00,00,b8,5e,01,00,00,00,00,00,cd,4c,\")
NewRegFile.WriteLine("  05,00,00,00,00,00,cd,4c,18,00,00,00,00,00,00,00,38,02,00,00,00,00")
NewRegFile.Close
WshSHell.Run ("regedit.exe /s "&FSO.BuildPath(TemFilePath ,TemFileName)), vbHide
WshSHell.RegWrite RegPath1, "取消XP中CS鼠标加速", "REG_SZ"
end if
WshSHell.Run ("ShutDown -L"), vbHide
end if''
else
WshShell.popup _
"程序要求运行于 " + chr(34)+WinVer("OS")+chr(34)+" 环境,安装失败。"+chr(10)+chr(10)+ _
chr(10) & "Copyright(C)  " + Copyright +"   " & QQ &"   " + Email _
, CloseTime, "安装失败 - "+ InsTitle +" - "+ Copyright, 0 + 48
End IF
Set WshSHell = Nothing
Set FSO = Nothing
Set Args = Nothing
WScript.Quit(0)

 

[ Last edited by baomaboy on 2008-3-25 at 01:03 AM ]



好多菩提树,好多明镜台。本来好多物,好多的尘埃。
2007-4-13 13:42
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复

请注意:您目前尚未注册或登录,请您注册登录以使用论坛的各项功能,例如发表和回复帖子等。


可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题



论坛跳转: