Hey guys, I wrote some short and simple AutoHotkey script for switching to sniper rifles faster. Here it is:
Code:
#NoEnv
#SingleInstance force
#IfWinActive ahk_class CoDBlackOps
FeatureOn(PopupText)
{
Gui, Destroy
Gui, +AlwaysOnTop +ToolWindow +LastFound -SysMenu -Caption
Gui, Color, 000000
WinSet, Transparent, 200
Gui, Font, s8, norm, Verdana
Gui, Add, Text, x5 y5 c00ff00, %PopupText%
Gui, Show, NoActivate X0 Y18
sleep 300
Gui, Destroy
}
FeatureOff(PopupText)
{
Gui, Destroy
Gui, +AlwaysOnTop +ToolWindow +LastFound -SysMenu -Caption
Gui, Color, 000000
WinSet, Transparent, 200
Gui, Font, s8, norm, Verdana
Gui, Add, Text, x5 y5 cff0000, %PopupText%
Gui, Show, NoActivate X0 Y18
sleep 300
Gui, Destroy
}
F6::
if Sw < 1
{
Sw += 1
if Sw = 1
{
SoundBeep, 1000, 300
FeatureOn("QUICKSWITCH ACTIVATED")
}
}
else
{
Sw := 0
SoundBeep, 200, 100
SoundBeep, 200, 100
FeatureOff("QUICKSWITCH DEACTIVATED")
}
return
*$1::
if Sw = 1
{
send {1}
sleep 350
send {1}
send {1}
}
else
{
send {1}
}
return
*$2::
if Sw = 1
{
send {2}
sleep 350
send {2}
send {2}
}
else
{
send {2}
}
return
Toggle key is temporary F6, but I believe you know how to change it.
Here is the demonstration:
[YOUTUBE]2xlTKpuJiGQ[/YOUTUBE]
I'm planning to add this script to my next
QuickScope plugin for ExternalHack release, but it needs testing first. Anyway, you can use it right now if you like it, it already works.
Virus Scans:
VirusTotal - Free Online Virus, Malware and URL Scanner
QuickSwitch.rar - Jotti's malware scan