XIM Community

Recoil Compensation AHK Script  (Read 17007 times)

Offline havoxxx

  • Member
  • *
  • Posts: 383
    • View Profile
Recoil Compensation AHK Script
« on: 03:21 PM - 11/29/15 »
These codes are made for educational purposes only.
Rapid fire is also in this script.



Once you have Auto Hot Key Installed, right click on your desktop and create a new AHK script. Copy the code and paste it in your Ahk script. Now take your AHK file and put it inside of;

C:\Users\USERNAMEHERE\OneDrive\Documents\SandhawC\Scripts
or
C:\Users\USERNAMEHERE\Documents\SandhawC\Scripts

Code: [Select]


#NoEnv
#InstallKeybdHook
#InstallMouseHook
SetDefaultMouseSpeed, 0
SetMouseDelay, -1
SetKeyDelay, -1
SetWinDelay, -1
SetBatchLines, -1
SetControlDelay -1
#MaxThreads 30
#MaxThreadsBuffer on
#KeyHistory 0
SendMode Input
#UseHook

_auto := true

~LButton::autofire()
WheelUp::_auto := ! _auto

autofire()
{
global _auto
if _auto
{
Loop
{
if GetKeyState("LButton", "P")
{
SendInput {LButton DownTemp}
Sleep 40
mouseXY(0, 5)
SendInput {LButton Up}
Sleep 20
}
else
break
} ;; loop
} ;; if
} ;; autofire()

mouseXY(x,y)
{
DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
}

WheelDown::Suspend


Now for you to understand the Recoil Compensation, you have to edit the mouseXY(0, 0)
mouseXY(0, 0) = Stock recoil
mouseXY(0, 1) = Low Antirecoil
mouseXY(0, 2) = Moderate Antirecoil
mouseXY(0, 3) = High Antirecoil
mouseXY(0, 4) = Higher Antirecoil
mouseXY(0, 5) = Gun starts pull to floor lol
etc...



Depending on your gun, you might need a different rapid fire rate per gun you are using.  Go in increments of 5 example. Sleep 40, Sleep 45


Now to change the button to turn on and off the script.


Where it shows;
WheelUp::_auto := ! _auto
WheelDown::Suspend


WheelUp::_auto := ! _auto = Wheel up makes the Rapid fire for your gun.
WheelDown::Suspend = Makes the script suspend it self from working, until WheelDown is pressed again.

All you have to do is select a button you want here is a list of the buttons.

https://autohotkey.com/docs/KeyList.htm



Also if you would like to learn a lot more about AHK take a look here.

https://github.com/ahkscript/awesome-AutoHotkey
« Last Edit: 07:08 PM - 08/29/16 by havoxxx »

Offline Lord Of The Sith

  • MVP
  • *
  • Posts: 8134
  • Made up from mostly non toxic materials.
    • View Profile
Re: Anti Recoil & No Recoil
« Reply #1 on: 03:29 PM - 11/29/15 »
You know MODs gonna come down on you so hard bruh.
Click > Here < for my COD4:RM / BOPs3 XIM4 Setup.

XIM4: FAQ - Downloads - Hardware Compatibility

Offline havoxxx

  • Member
  • *
  • Posts: 383
    • View Profile
Re: Anti Recoil & No Recoil
« Reply #2 on: 03:31 PM - 11/29/15 »
You know MODs gonna come down on you so hard bruh.

Its part of AutoHotKey, AHK scripts are not ban-able, or against the terms of usage.

Offline Od1n

  • Global Moderator
  • MVP
  • *
  • Posts: 25639
    • View Profile
Re: Anti Recoil & No Recoil AHK Scripts
« Reply #3 on: 03:34 PM - 11/29/15 »
You know MODs gonna come down on you so hard bruh.

scripts should be fine in this forum, one of SandhawCs/Commanders purpose is to support scripts
eg think of disabled people that have to rely on scrips, or people that use (non)complex input devices from the PC that work better or more efficient when being used together with a script
PS4 & X1 | C: MS | XIM4 | FW: the latest ofc! :) | Mon: BenQ XL2420Z | Pad: Zowie G-SR | KB: Ducky DK1008L Cherry Red O-Rings| A: AKG K701 Creative X7 Antlion Modmic | M: Zowie EC1-A | D: 3200 | P: 1000hz | BF4 4 HIP: 35 ADS: 20

Check out my Youtube Channel: XIMGameplay
Du sprichst Deutsch? Hier gehts zum deutschen Forum

Offline Od1n

  • Global Moderator
  • MVP
  • *
  • Posts: 25639
    • View Profile
Re: Anti Recoil & No Recoil AHK Scripts
« Reply #4 on: 03:36 PM - 11/29/15 »
havoxxx i think your script missed the #UseHook command but i havent really read through your script and how its coded, maybe you use the hook way somewhere within the script
PS4 & X1 | C: MS | XIM4 | FW: the latest ofc! :) | Mon: BenQ XL2420Z | Pad: Zowie G-SR | KB: Ducky DK1008L Cherry Red O-Rings| A: AKG K701 Creative X7 Antlion Modmic | M: Zowie EC1-A | D: 3200 | P: 1000hz | BF4 4 HIP: 35 ADS: 20

Check out my Youtube Channel: XIMGameplay
Du sprichst Deutsch? Hier gehts zum deutschen Forum

Offline Lord Of The Sith

  • MVP
  • *
  • Posts: 8134
  • Made up from mostly non toxic materials.
    • View Profile
Re: Anti Recoil & No Recoil AHK Scripts
« Reply #5 on: 03:59 PM - 11/29/15 »
You know MODs gonna come down on you so hard bruh.

scripts should be fine in this forum, one of SandhawCs/Commanders purpose is to support scripts
eg think of disabled people that have to rely on scrips, or people that use (non)complex input devices from the PC that work better or more efficient when being used together with a script

Well that's news to me, i was sure scrip talk was always pushed off the forums.
Especially things like "Anti recoil" lmfao
Click > Here < for my COD4:RM / BOPs3 XIM4 Setup.

XIM4: FAQ - Downloads - Hardware Compatibility

Offline Od1n

  • Global Moderator
  • MVP
  • *
  • Posts: 25639
    • View Profile
Re: Anti Recoil & No Recoil AHK Scripts
« Reply #6 on: 04:19 PM - 11/29/15 »
Well that's news to me, i was sure scrip talk was always pushed off the forums.
Especially things like "Anti recoil" lmfao

and it will still be pushed off the forum except for within this sub-forum
but i dont know how other mods like tuff and especially obsiv do see it

i mean we can also rename this topic to make it look less obsivous, like "Recoil Compensation" or something like that
PS4 & X1 | C: MS | XIM4 | FW: the latest ofc! :) | Mon: BenQ XL2420Z | Pad: Zowie G-SR | KB: Ducky DK1008L Cherry Red O-Rings| A: AKG K701 Creative X7 Antlion Modmic | M: Zowie EC1-A | D: 3200 | P: 1000hz | BF4 4 HIP: 35 ADS: 20

Check out my Youtube Channel: XIMGameplay
Du sprichst Deutsch? Hier gehts zum deutschen Forum

Offline Od1n

  • Global Moderator
  • MVP
  • *
  • Posts: 25639
    • View Profile
Re: Recoil Compensation AHK Scripts
« Reply #7 on: 04:25 PM - 11/29/15 »
i guess now its absolutly fine :)
PS4 & X1 | C: MS | XIM4 | FW: the latest ofc! :) | Mon: BenQ XL2420Z | Pad: Zowie G-SR | KB: Ducky DK1008L Cherry Red O-Rings| A: AKG K701 Creative X7 Antlion Modmic | M: Zowie EC1-A | D: 3200 | P: 1000hz | BF4 4 HIP: 35 ADS: 20

Check out my Youtube Channel: XIMGameplay
Du sprichst Deutsch? Hier gehts zum deutschen Forum

Offline MathiasIvey

  • Member
  • *
  • Posts: 28
    • View Profile
  • Gamertag: MathiasIvey
Re: Recoil Compensation AHK Scripts
« Reply #8 on: 04:27 PM - 11/29/15 »
Im sorry but this is for xim4??

Offline Od1n

  • Global Moderator
  • MVP
  • *
  • Posts: 25639
    • View Profile
Re: Recoil Compensation AHK Scripts
« Reply #9 on: 04:29 PM - 11/29/15 »
yes read the "SandhawC Readme"

its a software that connects your PC with your XIM
that way you benefit from the large compatibility and functions of a PC + you can have mouse and keyboard connected to the PC so no unplugging for XIM needed (or KVM switch)
PS4 & X1 | C: MS | XIM4 | FW: the latest ofc! :) | Mon: BenQ XL2420Z | Pad: Zowie G-SR | KB: Ducky DK1008L Cherry Red O-Rings| A: AKG K701 Creative X7 Antlion Modmic | M: Zowie EC1-A | D: 3200 | P: 1000hz | BF4 4 HIP: 35 ADS: 20

Check out my Youtube Channel: XIMGameplay
Du sprichst Deutsch? Hier gehts zum deutschen Forum

Offline Lord Of The Sith

  • MVP
  • *
  • Posts: 8134
  • Made up from mostly non toxic materials.
    • View Profile
Re: Recoil Compensation AHK Scripts
« Reply #10 on: 06:50 PM - 11/29/15 »
Well that's news to me, i was sure scrip talk was always pushed off the forums.
Especially things like "Anti recoil" lmfao

and it will still be pushed off the forum except for within this sub-forum
but i dont know how other mods like tuff and especially obsiv do see it

i mean we can also rename this topic to make it look less obsivous, like "Recoil Compensation" or something like that

OK so this snuck up on me, when i made my replies i hadn't seen nor read the part of the forum this was under, i hadn't seen the new commander.

But that being said, (aside from scripts to clearly help people with disabilities) are we really allowing "Anti Recoil" scripts? I mean i guess so right..?

Feels a bit shady to allow that on the forums tbh.. But who am i to comment.
Click > Here < for my COD4:RM / BOPs3 XIM4 Setup.

XIM4: FAQ - Downloads - Hardware Compatibility

Offline Dannytk

  • Member
  • *
  • Posts: 14
    • View Profile
  • PSN ID: Danny_tk
Re: Recoil Compensation AHK Scripts
« Reply #11 on: 06:26 AM - 11/30/15 »
Anti recoil is cheating.. so.. dunno why this would be allowed maybe next time we'll see aimbots etc here in this forum.

Offline toqy

  • MVP
  • *
  • Posts: 1291
  • (✌゚∀゚)☞ ( ͡ ͜ʖ ͡)
    • View Profile
Re: Recoil Compensation AHK Scripts
« Reply #12 on: 09:29 PM - 11/30/15 »

Anti recoil is cheating.. so.. dunno why this would be allowed maybe next time we'll see aimbots etc here in this forum.

No more than a mouse on console fam
That "natural curve" you [roads] are talking about was me taking a wild guess what the game was doing (which was completely wrong of course).

😂😂😭

Offline Lord Of The Sith

  • MVP
  • *
  • Posts: 8134
  • Made up from mostly non toxic materials.
    • View Profile
Re: Recoil Compensation AHK Scripts
« Reply #13 on: 05:08 AM - 12/01/15 »
I would have agreed with you, but Sony don't seem to think so...

http://www.gamespot.com/articles/officially-licensed-ps4-mouse-and-keyboard-control/1100-6429210/

But having a Toysrme MW2 Fal'esq anti recoil script is cheating.
Click > Here < for my COD4:RM / BOPs3 XIM4 Setup.

XIM4: FAQ - Downloads - Hardware Compatibility

Offline Tonester

  • MVP
  • *
  • Posts: 1336
    • View Profile
  • Gamertag: EpicNerd
  • PSN ID: A_McCulley
Re: Recoil Compensation AHK Scripts
« Reply #14 on: 07:20 PM - 12/02/15 »
Yea. Honestly. This is disappointing. XIM was starting to gain some traction and acceptance. Knowing that there is a way to script things.... that sucks.