PostAutoIt NoRecoil

Posts 18 of 8 · Page 1 of 1
AutoIt NoRecoil
This is a AutoIt norecoil script code, if u wanna use it u need to install AutoIt fisrt. It can be found at the official site, just google it.

Code:
#Include <constants.au3>
#include <buttonconstants.au3>
#include <staticconstants.au3>
#include <statusbarconstants.au3>
#include <windowsconstants.au3>
#include <misc.au3>
#include <WinAPI.au3>
#include <Sound.au3>
#include <Array.au3>
#include <EditConstants.au3>
#include <MsgBoxConstants.au3>
#include <GDIPlus.au3>

;///Configurations///
;/ Here is where u change the shaking value
$shake = 10
;/ On/Off Hotkey
HotKeySet("{F1}", "nronoff")
;////////////////////

Global $shake, $nronoff, $x, $y

While 1
	If $nronoff = "1" then
		If _IsPressed(01) then
			recoil()
		EndIf
	EndIF
WEnd

Func nronoff ()
	Switch $nronoff
		Case "1"
			$nronoff = 0
		Case Else
			$nronoff = 1
	EndSwitch
EndFunc

Func recoil()
	nrmove(0, $shake)
	Sleep (10)
	nrmove($shake, 0)
	Sleep (10)
	nrmove(0, -$shake)
	Sleep (10)
	nrmove(-$shake, 0)
	Sleep (10)
EndFunc

Func nrmove($x, $y)
	_WinAPI_Mouse_Event(0x0001, $x, $y)
EndFunc
if this is the source for the original detected code, it will be detected if used.
Quote Originally Posted by RTEGRWEYHGWA$RywywG View Post
if this is the source for the original detected code, it will be detected if used.
Ur right and wrong, its the same language as my detected script but the code is different.
WHAT IF I USE IT IN A LOGITECH SCRIPTING SOFTWARE ?
Quote Originally Posted by dhabak777 View Post
WHAT IF I USE IT IN A LOGITECH SCRIPTING SOFTWARE ?
It wont work, its a different language, but u can use it as a example to create a logitec macro
Quote Originally Posted by s0p1nh3 View Post
It wont work, its a different language, but u can use it as a example to create a logitec macro
Undetected?
when i use it it shakes so much that my bullets hit everywhere but not in the center
Quote Originally Posted by damien175 View Post
when i use it it shakes so much that my bullets hit everywhere but not in the center
try changing the $shake = 10 (line 16) to something like $shake = 3

Edit: ive set it to 3 here:
Code:
#Include <constants.au3>
#include <buttonconstants.au3>
#include <staticconstants.au3>
#include <statusbarconstants.au3>
#include <windowsconstants.au3>
#include <misc.au3>
#include <WinAPI.au3>
#include <Sound.au3>
#include <Array.au3>
#include <EditConstants.au3>
#include <MsgBoxConstants.au3>
#include <GDIPlus.au3>

;///Configurations///
;/ Here is where u change the shaking value
$shake = 3
;/ On/Off Hotkey
HotKeySet("{F1}", "nronoff")
;////////////////////

Global $shake, $nronoff, $x, $y

While 1
	If $nronoff = "1" then
		If _IsPressed(01) then
			recoil()
		EndIf
	EndIF
WEnd

Func nronoff ()
	Switch $nronoff
		Case "1"
			$nronoff = 0
		Case Else
			$nronoff = 1
	EndSwitch
EndFunc

Func recoil()
	nrmove(0, $shake)
	Sleep (10)
	nrmove($shake, 0)
	Sleep (10)
	nrmove(0, -$shake)
	Sleep (10)
	nrmove(-$shake, 0)
	Sleep (10)
EndFunc

Func nrmove($x, $y)
	_WinAPI_Mouse_Event(0x0001, $x, $y)
EndFunc
Posts 18 of 8 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?