LightbulbAHK QS + aimbot

Posts 1–15 of 24 · Page 1 of 2
AHK QS + aimbot
I have my own quick scope Autohotkey script, it supports COD4, MW2 and BO. When I faced sph4ck's external for BO, I thought it would be nice to combine its aimbot feature with my script. So, I did it. The script has 2 modes: for l96a1 and for semi-auto snipes. It works in this way:
  1. You run BO windowed and turn on sph4ck's aimbot. I use this script to get rid of borders (as I remember, zygorator is its author):
    Code:
    #NoEnv
    #SingleInstance force
    
    GroupAdd,gamewindow ,ahk_class CoDBlackOps
    
    #IfWinActive ahk_group gamewindow
    
    window_title = ahk_group gamewindow
    
    noborders:
    Loop
    {
    	WinWaitClose, %window_title%
    	{
    		fullscreen := 0
    	}
    	WinWait, %window_title%
    	{	
    		if not fullscreen = 1
    		{
    			WinActivate
    			fullscreen := 1
    			WinSet, Style, -0xC00000
    			WinMove, , , 0, 0
    			WinMaximize
    		}
    	}
    sleep 10000
    }
    return
  2. You press toggle key to activate the script (I use F8)
  3. You press the right button once and get 1 frag, or if there are a lot of enemies you may hold it down and it will QS repeatedely as quick as possible. (I don't like pressing middle/scroll button or any other, so I binded the script to right button and so it has to be to be toggleable)

Here is the code (semi-auto support commented):
Code:
#NoEnv
#SingleInstance force
#MaxThreadsPerHotkey 1

GroupAdd,gamewindow ,ahk_class CoDBlackOps
#IfWinActive ahk_group gamewindow

Qs = 0

~F8::
	If Qs < 1 ;2 for semi-auto
	{
		Qs += 1
		if Qs = 1
		{
			SoundBeep, 600, 100
		}
;		else if Qs = 2
;		{
;			SoundBeep, 1000, 100
;		}
	}
	else
	{
		Qs := 0
		SoundBeep, 200, 100
		SoundBeep, 200, 100
	}
	return

~rButton::
	if Qs = 1  
	{ 
		Loop 
		{ 
			if not GetKeyState("rButton", "P") 
				break 
			MouseClick,right
			send {home Down}
			sleep 350
			MouseClick,left
			send {home Up}
			MouseClick,right
			Sleep, 740
		} 
	}
;	else if Qs = 2  
;	{ 
;		Loop 
;		{ 
;			if not GetKeyState("rButton", "P") 
;				break 
;			MouseClick,right
;			send {home Down}
;			sleep 350
;			MouseClick,left
;			send {home Up}
;			MouseClick,right
;			Sleep, 500
;		} 
;	} 
	return
I also modified sph4ck's aimbot configuration and made 2 versions for 2 different kinds of gameplay. Using the first one gives you tons of frags and needs no skill at all. Also, it's obvious and you will be surely accused of hacking.
Code:
BOT_MOTION_COMPENSATE = -1.5

BOT_STAND_Z = 50 

BOT_MAX_TO_CENTER = 2
BOT_HOP_MIN_TO_CENTER = 0.5
BOT_FRAME_COLOR = 0xFF00FFFF
KEY_BOT_DRAW_SPOT = "ON"

BOT_SPEED_1 = 2.0
BOT_SPEED_TICK_1 = 15
BOT_SPEED_2 = 1.6
BOT_SPEED_TICK_2 = 30
BOT_SPEED_3 = 1.2
The second one is useless if you have no aiming skills at all, because all it does is just helping you to get headshots if your crosshair is already pointed at the enemy. Nobody will accuse you of hacking, or at least they won't be able to prove it even with the help of theater mode.
Code:
BOT_MOTION_COMPENSATE = -1.5

BOT_STAND_Z = 55

BOT_MAX_TO_CENTER = 0.01
BOT_HOP_MIN_TO_CENTER = 0.002
BOT_FRAME_COLOR = 0xFF00FFFF
KEY_BOT_DRAW_SPOT = "ON"

BOT_SPEED_1 = 3.5
BOT_SPEED_TICK_1 = 15
BOT_SPEED_2 = 3.0
BOT_SPEED_TICK_2 = 30
BOT_SPEED_3 = 2.2
I would like to release the script, but I don't know how to implement it as far as it needs sphack's source version of aimbot, which is constantly updating and needs svn client to download from googlecode. Moreover, I don't know how to create convenient shell to change the bindings. Finally, I don't use this script because I don't need spikes to pwn with the sniper rifle, but I'm not sure I want to be owned with my own script at some sniper only server
So, what do you guys think? Any suggestion for improving the code or advices how to make it easier to use are appreciated. Also, should I really release it?..

P.S. I used parts of code from many other scripts for this as I'm newbie in coding, but I don't remember everybody, so no "credits" for now, sorry
P.P.S. Also excuse my grammar mistakes, i'm not native english-speaker
Here is an update for my script:

AHK script:

Code:
#NoEnv
#SingleInstance force
#MaxThreadsPerHotkey 1

GroupAdd,gamewindow ,ahk_class CoDBlackOps
#IfWinActive ahk_group gamewindow

Qs = 0

~F8::
	If Qs < 2
	{
		Qs += 1
		if Qs = 1
		{
			SoundBeep, 600, 100
		}
		else if Qs = 2
		{
			SoundBeep, 1000, 100
		}
	}
	else
	{
		Qs := 0
		SoundBeep, 200, 100
		SoundBeep, 200, 100
	}
	return

$rButton::
	if Qs = 1  
	{ 
		Loop 
		{ 
			if not GetKeyState("rButton", "P") 
			break 
			MouseClick,right
			send {home Down}
			sleep 350
			MouseClick,left
			send {home Up}
			MouseClick,right
			Sleep, 740
		} 
	}
	else
	{
		send {rbutton}
	}
	return

$lbutton::
	if Qs = 2
	{ 
		Loop 
		{ 
			send {home Down}
			sleep 50
			MouseClick,left
			send {home Up}
			keywait, lbutton, u
			if not GetKeyState("lButton", "P") 
			break 
		} 
	}
	else
	{
		send {lbutton}
	}
	return
Aimbot config -light-:

Code:
BOT_MOTION_COMPENSATE = -1.5

BOT_STAND_Z = 55

BOT_MAX_TO_CENTER = 0.01
BOT_HOP_MIN_TO_CENTER = 0.002
BOT_FRAME_COLOR = 0xFF00FFFF
KEY_BOT_DRAW_SPOT = "ON"

BOT_SPEED_1 = 3.5
BOT_SPEED_TICK_1 = 15
BOT_SPEED_2 = 3.0
BOT_SPEED_TICK_2 = 30
BOT_SPEED_3 = 2.2

F1_LABEL = "display"
F2_LABEL = "crosshair"
F3_LABEL = "wallhack"
F4_LABEL = "aimbot"
F5_LABEL = ""
F6_LABEL = ""
F7_LABEL = ""
F8_LABEL = ""
F9_LABEL = ""
F10_LABEL = ""
F11_LABEL = ""
F12_LABEL = ""

KEY_STATUS =                "-VK_F1"
KEY_STATUS_UP =             "ON"
KEY_CROSSHAIR =     		"+VK_F2"
KEY_EXPLOSIVES =    		"+VK_F3"
KEY_AIMBOT_ACTIVE =        	"+VK_F4"
KEY_TUBEBOT_ACTIVE =       	"OFF"
KEY_WEAPON_ESP =            "ON"
KEY_KNIFEBOT_ACTIVE =      	"OFF"
KEY_AUTOSTAB =      		"OFF"
KEY_TRIGGERBOT =    		"OFF"
KEY_RADAR =         		"OFF"
KEY_BOXESP =        		"+VK_F3"
KEY_BOX_SNAPLINE =   		"OFF"

KEY_BOT = "VK_HOME"
Aimbot config -extreme-:

Code:
BOT_MOTION_COMPENSATE = -1.5

BOT_STAND_Z = 50 

BOT_MAX_TO_CENTER = 2
BOT_HOP_MIN_TO_CENTER = 0.5
BOT_FRAME_COLOR = 0xFF00FFFF
KEY_BOT_DRAW_SPOT = "ON"

BOT_SPEED_1 = 1.0
BOT_SPEED_TICK_1 = 15
BOT_SPEED_2 = 1.0
BOT_SPEED_TICK_2 = 30
BOT_SPEED_3 = 1.0

F1_LABEL = "display"
F2_LABEL = "crosshair"
F3_LABEL = "wallhack"
F4_LABEL = "aimbot"
F5_LABEL = ""
F6_LABEL = ""
F7_LABEL = ""
F8_LABEL = ""
F9_LABEL = ""
F10_LABEL = ""
F11_LABEL = ""
F12_LABEL = ""

KEY_STATUS =                "-VK_F1"
KEY_STATUS_UP =             "ON"
KEY_CROSSHAIR =     		"+VK_F2"
KEY_EXPLOSIVES =    		"+VK_F3"
KEY_AIMBOT_ACTIVE =        	"+VK_F4"
KEY_TUBEBOT_ACTIVE =       	"OFF"
KEY_WEAPON_ESP =            "ON"
KEY_KNIFEBOT_ACTIVE =      	"OFF"
KEY_AUTOSTAB =      		"OFF"
KEY_TRIGGERBOT =    		"OFF"
KEY_RADAR =         		"OFF"
KEY_BOXESP =        		"+VK_F3"
KEY_BOX_SNAPLINE =   		"OFF"

KEY_BOT = "VK_HOME"
Changelog:
  • Sphack's external hack functions were limited to the required minimum;
  • The right mouse button was unbinded from activating aimbot to avoid glitches;
  • Semi-auto support was deleted to make the script more clean and easy to operate;
  • Added alternative firing mode, which will also be useful with hardscope and noscope.


Description:

Now pressing F8 2 times will cause activating the script by pressing not right, but left mouse button. So, it can be used with hardscope or noscope as well. However, the new mode will cause 50 milliseconds delay between pressing the fire button and the shot, but you won't likely even notice that

To sum up, we now have 4 different combinations:
  1. Primary mode + light aimbot = nice QS, no HS and NS advantage (full-auto)
  2. Primary mode + extreme aimbot = insane QS, no HS and NS advantage (full-auto)
  3. Alternative mode + light aimbot = nice QS, HS and NS advantage (half-manual*)
  4. Alternative mode + extreme aimbot = insane QS, HS and NS advantage (half-manual*)

*"half-manual" means that you have to scope in manually, aimbot will be activated after you press fire button.
Update is coming...

BTW this is release for testing, and feedback with bugreports will be appreciated. Of course I'm pleased to hear comments like
Quote Originally Posted by xbeatsszzx View Post
Nice gj.
and
Quote Originally Posted by JamesA1994 View Post
Nice Job ;D
but I also hope to get responses to
Quote Originally Posted by 63OR63 View Post
I would like to release the script, but I don't know how to implement it as far as it needs sphack's source version of aimbot, which is constantly updating and needs svn client to download from googlecode. Moreover, I don't know how to create convenient shell to change the bindings. Finally, I don't use this script because I don't need spikes to pwn with the sniper rifle, but I'm not sure I want to be owned with my own script at some sniper only server
So, what do you guys think? Any suggestion for improving the code or advices how to make it easier to use are appreciated. Also, should I really release it?..
Thanks.
Update for the script:

Code:
#NoEnv
#SingleInstance force
#MaxThreadsPerHotkey 1

GroupAdd,gamewindow ,ahk_class CoDBlackOps
#IfWinActive ahk_group gamewindow

Qs := 0
foolproof = off

F8::
	If Qs < 2
	{
		Qs += 1
		if Qs = 1
		{
			SoundBeep, 600, 100
		}
		else if Qs = 2
		{
			SoundBeep, 800, 100
		}
	}
	else
	{
		Qs := 0
		SoundBeep, 200, 100
		SoundBeep, 200, 100
	}
	return

F7::
	if foolproof = off
	{
		foolproof = on
		SoundBeep, 1000, 300
	}
	else
	{
		foolproof = off
		SoundBeep, 200, 100
		SoundBeep, 200, 100
	}
	
*$rButton::
	if Qs = 1  
	{ 
		Loop 
		{ 
			MouseClick,right
			if foolproof = on
			{
				BlockInput MouseMove
			}
			send {home Down}
			sleep 350
			MouseClick,left
			if foolproof = on
			{
				BlockInput MouseMoveOff
			}
			send {home Up}
			MouseClick,right
			sleep 740
			if not GetKeyState("rButton", "P") 
			break
		} 
	}
	else
	{
		MouseClick,right
	}
	return

*$lbutton::
	if Qs = 3
	{ 
		Loop 
		{
			send {home Down}
			sleep 50
			MouseClick,left
			send {home Up}
			keywait, lbutton, u
			if not GetKeyState("lButton", "P") 
			break 
		} 
	}
	else
	{
		MouseClick,left
	}
	return
Changelog:

  • Fixed a glitch when "shift" was pressed while quickscoping in auto mode;
  • Added new "foolproof" function for full-auto mode.


Description:

With new "foolproof" function activated (F7) the user's mouse movement are disabled while performing zooming, autoaim and shot, so your unconscious hand gestures won't interfere with the accuracy of aimbot.
Note: the function is meant to be used with "Aimbot config -extreme-" only!

Update: a final version released!
wow... nice job!
Quote Originally Posted by Janjaum View Post
wow... nice job!
Wow... necroposting ftw?
This script was alterted heavily since my last post here, the latest version for BO you can DL here and for MW2 here.
Also, source code for BO:
Code:
;===============================================================================
;	QuickScope plugin for ExternalHack, Black Ops Edition
;	Version 1.0, 18 January 2011
;===============================================================================


;===============================================================================
;	Copyright © 2011 Георгий Минулин (also known as 63OR63)

;	This file is part of QuickScope plugin for ExternalHack, Black Ops Edition.

;	QuickScope plugin for ExternalHack, Black Ops Edition is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by	the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

;	QuickScope plugin for ExternalHack, Black Ops Edition is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

;	You should have received a copy of the GNU General Public License along with QuickScope plugin for ExternalHack, Black Ops Edition. If not, see <http://www.gnu.org/licenses/>.
;===============================================================================


;===============================================================================
;	AutoIt: Copyright © 1999-2003 Jonathan Bennett

;	AutoHotkey: Copyright © 2003-2009 Chris Mallett
;===============================================================================


;-------------------------------------------------------------------------------
;	Settings					
;-------------------------------------------------------------------------------

#NoEnv
#SingleInstance force
#MaxThreadsPerHotkey 1

SetWorkingDir %A_ScriptDir%

#IfWinActive ahk_class CoDBlackOps


;-------------------------------------------------------------------------------
;	Variables					
;-------------------------------------------------------------------------------

Qs := 0
Fp := 0


;-------------------------------------------------------------------------------
;	Preferences	Loading 		
;-------------------------------------------------------------------------------

IniRead, EnableQuickscopeToggle, settings.ini, General, EnableQuickscopeToggle
IniRead, EnableFoolproofToggle, settings.ini, General, EnableFoolproofToggle
IniRead, EnableFullautoQuickscope, settings.ini, General, EnableFullautoQuickscope
IniRead, EnableHalfmanualQuickscope, settings.ini, General, EnableHalfmanualQuickscope
IniRead, EnableNoBorders, settings.ini, General, EnableNoBorders

IniRead, h_QuickscopeToggle, settings.ini, Hotkeys, QuickscopeToggle
IniRead, h_FoolproofToggle, settings.ini, Hotkeys, FoolproofToggle
IniRead, h_FullautoQuickscope, settings.ini, Hotkeys, FullautoQuickscope
IniRead, h_HalfmanualQuickscope, settings.ini, Hotkeys, HalfmanualQuickscope

IniRead, g_Aim, settings.ini, GameKeyBindings, Aim
IniRead, g_Fire, settings.ini, GameKeyBindings, Fire

IniRead, a_Aimbot, settings.ini, ExternalHackKeyBindings, Aimbot


;-------------------------------------------------------------------------------
;	Hotkeys					
;-------------------------------------------------------------------------------

if EnableQuickscopeToggle
{
	HotKey, %h_QuickscopeToggle%, QuickscopeToggle
}

if EnableFoolproofToggle
{
	HotKey, %h_FoolproofToggle%, FoolproofToggle
}

if EnableFullautoQuickscope
{
	HotKey, $*%h_FullautoQuickscope%, FullautoQuickscope
}

if EnableHalfmanualQuickscope
{
	HotKey, $*%h_HalfmanualQuickscope%, HalfmanualQuickscope
}

if EnableNoBorders
{
	NoBorders:
		Loop
		{
			WinWaitClose, ahk_class CoDBlackOps
			{
				FullScreen := 0
			}
			WinWait, ahk_class CoDBlackOps
			{	
				if not FullScreen = 1
				{
					FullScreen := 1
					WinActivate
					WinSet, Style, -0xC00000
					WinMove, 0, 0
					WinMaximize
				}
			}
		sleep 10000
		}
		return
}
		
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
}
		
QuickscopeToggle:
	if Qs < 2
	{
		Qs += 1
		if Qs = 1
		{
			if not EnableFullautoQuickscope
			{
				Qs := 2
				SoundBeep, 800, 100
				FeatureOn("HALF-MANUAL ACTIVATED")
			}
			else
			{
				SoundBeep, 600, 100
				FeatureOn("FULL-AUTO ACTIVATED")
			}
		}
		else if Qs = 2
		{
			if not EnableHalfmanualQuickscope
			{
				Qs := 0
				SoundBeep, 200, 100
				SoundBeep, 200, 100
				FeatureOff("SCRIPT DEACTIVATED")
			}
			else
			{
				SoundBeep, 800, 100
				FeatureOn("HALF-MANUAL ACTIVATED")
			}
		}
	}
	else
	{
		Qs := 0
		SoundBeep, 200, 100
		SoundBeep, 200, 100
		FeatureOff("SCRIPT DEACTIVATED")
	}
	return

FoolproofToggle:
	if Fp < 1
	{
		Fp += 1
		if Fp = 1
		{
			SoundBeep, 1000, 300
			FeatureOn("FOOLPROOF ACTIVATED")
		}
	}
	else
	{
		Fp := 0
		SoundBeep, 200, 100
		SoundBeep, 200, 100
		FeatureOff("FOOLPROOF DEACTIVATED")
	}
	return

FullautoQuickscope:
	if Qs = 1  
	{ 
		Loop 
		{ 
			Send {%g_Aim%}
			if Fp = 1
			{
				BlockInput MouseMove
			}
			Send {%a_Aimbot% down}
			Sleep 350
			Send {%g_Fire%}
			if Fp = 1
			{
				BlockInput MouseMoveOff
			}
			Send {%a_Aimbot% up}
			Send {%g_Aim%}
			Sleep 740
			if not GetKeyState(h_FullautoQuickscope, "P") 
			break
		} 
	}
	else
	{
		Send {%h_FullautoQuickscope%}
	}
	return

HalfmanualQuickscope:
	if Qs = 2
	{ 
		Loop 
		{
			Send {%a_Aimbot% down}
			Sleep 50
			Send {%g_Fire%}
			Send {%a_Aimbot% up}
			keywait, %g_Fire%, u
			if not GetKeyState(h_HalfmanualQuickscope, "P") 
			break 
		} 
	}
	else
	{
		Send {%h_HalfmanualQuickscope%}
	}
	return
Code:
;===============================================================================
;	QuickScope plugin for ExternalHack, Black Ops Edition
;	Version 1.0, 18 January 2011
;===============================================================================


;===============================================================================
;	Copyright © 2011 Георгий Минулин (also known as 63OR63)
	
;	This file is part of QuickScope plugin for ExternalHack, Black Ops Edition.

;	QuickScope plugin for ExternalHack, Black Ops Edition is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by	the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

;	QuickScope plugin for ExternalHack, Black Ops Edition is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

;	You should have received a copy of the GNU General Public License along with QuickScope plugin for ExternalHack, Black Ops Edition. If not, see <http://www.gnu.org/licenses/>.
;===============================================================================


[General]
;enable/disable specific script functions (0=disabled, 1=enabled)
EnableQuickscopeToggle=1
EnableFoolproofToggle=1
EnableFullautoQuickscope=1
EnableHalfmanualQuickscope=0
EnableNoBorders=1

[Hotkeys]
;hotkeys specific to the script
QuickscopeToggle=!VK5A ;=alt+z, virtual keys are used for compatibility with keyboards using multiple layouts.
FoolproofToggle=!VK58 ;=alt+x
FullautoQuickscope=RButton
HalfmanualQuickscope=LButton

[GameKeyBindings]
;in-game key bindings: used to tell the script what keys you use in-game; it doesn't change your in-game key bindings.
Aim=RButton
Fire=LButton

[ExternalHackKeyBindings]
;ExternalHack key bindings: used to tell the script what keys the aimbot uses; it doesn't change your aimbot key bindings.
Aimbot=Home

;HELP: 
; - refer to this document for hotkey modifiers: http://www.autohotkey.com/docs/Hotkeys.htm
; - refer to this document for key listing: http://www.autohotkey.com/docs/KeyList.htm
; - refer to this document for virtual key listing: http://www.autohotkey.net/~goyyah/Tips-N-Tricks/InputKey/VK_NAMES.ini
And for MW2:
Code:
;===============================================================================
;	QuickScope plugin for ExternalHack, Modern Warfare 2 Edition
;	Version 1.0, 18 January 2011
;===============================================================================


;===============================================================================
;	Copyright © 2011 Георгий Минулин (also known as 63OR63)

;	This file is part of QuickScope plugin for ExternalHack, Modern Warfare 2 Edition.

;	QuickScope plugin for ExternalHack, Modern Warfare 2 Edition is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by	the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

;	QuickScope plugin for ExternalHack, Modern Warfare 2 Edition is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

;	You should have received a copy of the GNU General Public License along with QuickScope plugin for ExternalHack, Modern Warfare 2 Edition. If not, see <http://www.gnu.org/licenses/>.
;===============================================================================


;===============================================================================
;	AutoIt: Copyright © 1999-2003 Jonathan Bennett

;	AutoHotkey: Copyright © 2003-2009 Chris Mallett
;===============================================================================


;-------------------------------------------------------------------------------
;	Settings					
;-------------------------------------------------------------------------------

#NoEnv
#SingleInstance force
#MaxThreadsPerHotkey 1

SetWorkingDir %A_ScriptDir%

#IfWinActive ahk_class IW4


;-------------------------------------------------------------------------------
;	Variables					
;-------------------------------------------------------------------------------

Qs := 0
Fp := 0
Sn := 0


;-------------------------------------------------------------------------------
;	Preferences	Loading				
;-------------------------------------------------------------------------------

IniRead, EnableQuickscopeToggle, settings.ini, General, EnableQuickscopeToggle
IniRead, EnableFoolproofToggle, settings.ini, General, EnableFoolproofToggle
IniRead, EnableFullautoQuickscope, settings.ini, General, EnableFullautoQuickscope
IniRead, EnableHalfmanualQuickscope, settings.ini, General, EnableHalfmanualQuickscope
IniRead, EnableNoBorders, settings.ini, General, EnableNoBorders

IniRead, h_SniperRifleToggle, settings.ini, Hotkeys, SniperRifleToggle
IniRead, h_QuickscopeToggle, settings.ini, Hotkeys, QuickscopeToggle
IniRead, h_FoolproofToggle, settings.ini, Hotkeys, FoolproofToggle
IniRead, h_FullautoQuickscope, settings.ini, Hotkeys, FullautoQuickscope
IniRead, h_HalfmanualQuickscope, settings.ini, Hotkeys, HalfmanualQuickscope

IniRead, g_Aim, settings.ini, GameKeyBindings, Aim
IniRead, g_Fire, settings.ini, GameKeyBindings, Fire

IniRead, a_Aimbot, settings.ini, ExternalHackKeyBindings, Aimbot


;-------------------------------------------------------------------------------
;	Hotkeys					
;-------------------------------------------------------------------------------

HotKey, %h_SniperRifleToggle%, SniperRifleToggle

if EnableQuickscopeToggle
{
	HotKey, %h_QuickscopeToggle%, QuickscopeToggle
}

if EnableFoolproofToggle
{
	HotKey, %h_FoolproofToggle%, FoolproofToggle
}

if EnableFullautoQuickscope
{
	HotKey, $*%h_FullautoQuickscope%, FullautoQuickscope
}

if EnableHalfmanualQuickscope
{
	HotKey, $*%h_HalfmanualQuickscope%, HalfmanualQuickscope
}

if EnableNoBorders
{
	NoBorders:
		Loop
		{
			WinWaitClose, ahk_class IW4
			{
				FullScreen := 0
			}
			WinWait, ahk_class IW4
			{	
				if not FullScreen = 1
				{
					FullScreen := 1
					WinActivate
					WinSet, Style, -0xC00000
					WinMove, 0, 0
					WinMaximize
				}
			}
		sleep 10000
		}
		return
}

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
}

SniperRifleToggle:
	if Sn < 1
	{
		Sn += 1
		if Sn = 1
		{
			SoundBeep, 100, 50
			SoundBeep, 100, 50
			SoundBeep, 100, 50
			FeatureOn("BARRETT SELECTED")
		}
	}
	else
	{
		Sn := 0
		SoundBeep, 400, 200
		FeatureOn("INTERVENTION DELECTED")
	}
	return
	
QuickscopeToggle:
	if Qs < 2
	{
		Qs += 1
		if Qs = 1
		{
			if not EnableFullautoQuickscope
			{
				Qs := 2
				SoundBeep, 800, 100
				FeatureOn("HALF-MANUAL ACTIVATED")
			}
			else
			{
				SoundBeep, 600, 100
				FeatureOn("FULL-AUTO ACTIVATED")
			}
		}
		else if Qs = 2
		{
			if not EnableHalfmanualQuickscope
			{
				Qs := 0
				SoundBeep, 200, 100
				SoundBeep, 200, 100
				FeatureOff("SCRIPT DEACTIVATED")
			}
			else
			{
				SoundBeep, 800, 100
				FeatureOn("HALF-MANUAL ACTIVATED")
			}
		}
	}
	else
	{
		Qs := 0
		SoundBeep, 200, 100
		SoundBeep, 200, 100
		FeatureOff("SCRIPT DEACTIVATED")
	}
	return

FoolproofToggle:
	if Fp < 1
	{
		Fp += 1
		if Fp = 1
		{
			SoundBeep, 1000, 300
			FeatureOn("FOOLPROOF ACTIVATED")
		}
	}
	else
	{
		Fp := 0
		SoundBeep, 200, 100
		SoundBeep, 200, 100
		FeatureOff("FOOLPROOF DEACTIVATED")
	}
	return

FullautoQuickscope:
	if Qs = 1  
	{ 
		Loop 
		{
			Send {%g_Aim%}
			if Fp = 1
			{
				BlockInput MouseMove
			}
			Send {%a_Aimbot% down}
			Sleep 280
			Send {%g_Fire%}
			if Fp = 1
			{
				BlockInput MouseMoveOff
			}
			Send {%a_Aimbot% up}
			Send {%g_Aim%}
			if Sn = 0
			{
				Sleep 600
			}
			else if Sn = 1
			{
				Sleep 300
			}
			if not GetKeyState(h_FullautoQuickscope, "P") 
			break
		} 
	}
	else
	{
		Send {%h_FullautoQuickscope%}
	}
	return

HalfmanualQuickscope:
	if Qs = 2
	{ 
		Loop 
		{
			Send {%a_Aimbot% down}
			Sleep 50
			Send {%g_Fire%}
			Send {%a_Aimbot% up}
			keywait, %g_Fire%, u
			if not GetKeyState(h_HalfmanualQuickscope, "P") 
			break 
		} 
	}
	else
	{
		Send {%h_HalfmanualQuickscope%}
	}
	return
Code:
;===============================================================================
;	QuickScope plugin for ExternalHack, Modern Warfare 2 Edition
;	Version 1.0, 18 January 2011
;===============================================================================


;===============================================================================
;	Copyright © 2011 Георгий Минулин (also known as 63OR63)
	
;	This file is part of QuickScope plugin for ExternalHack, Modern Warfare 2 Edition.

;	QuickScope plugin for ExternalHack, Modern Warfare 2 Edition is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by	the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

;	QuickScope plugin for ExternalHack, Modern Warfare 2 Edition is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

;	You should have received a copy of the GNU General Public License along with QuickScope plugin for ExternalHack, Modern Warfare 2 Edition. If not, see <http://www.gnu.org/licenses/>.
;===============================================================================


[General]
;enable/disable specific script functions (0=disabled, 1=enabled)
EnableQuickscopeToggle=1
EnableFoolproofToggle=1
EnableFullautoQuickscope=1
EnableHalfmanualQuickscope=0
EnableNoBorders=1

[Hotkeys]
;hotkeys specific to the script
SniperRifleToggle=!VK43 ;=alt+c, virtual keys are used for compatibility with keyboards using multiple layouts.
QuickscopeToggle=!VK5A ;=alt+z
FoolproofToggle=!VK58 ;=alt+x
FullautoQuickscope=RButton
HalfmanualQuickscope=LButton

[GameKeyBindings]
;in-game key bindings: used to tell the script what keys you use in-game; it doesn't change your in-game key bindings.
Aim=RButton
Fire=LButton

[ExternalHackKeyBindings]
;ExternalHack key bindings: used to tell the script what keys the aimbot uses; it doesn't change your aimbot key bindings.
Aimbot=Home

;HELP: 
; - refer to this document for hotkey modifiers: http://www.autohotkey.com/docs/Hotkeys.htm
; - refer to this document for key listing: http://www.autohotkey.com/docs/KeyList.htm
; - refer to this document for virtual key listing: http://www.autohotkey.net/~goyyah/Tips-N-Tricks/InputKey/VK_NAMES.ini
Note: I removed e-mails for contact from code here to avoid caching by spam-bots, you can still find them in the release.
Nice hack mashup. Good job!
Quote Originally Posted by sph4ck View Post
Nice hack mashup. Good job!
Wow, you finally commented my script!
Well, can't you please release the next version of ExternalHack with uncompiled alterable config-file? People are having troubles with downloading the source from GoogleCode. IDK if somebody has already asked you about it, so I'm doing it.
Thanks man
this is a safe way?
i dont have to be afraid of getting ban?
nce vry usefukl
Can I get banned (UAC) for this??
Posts 1–15 of 24 · Page 1 of 2
This thread is closed for replies.

Tags for this Thread

None

Need help?