XIM Community

Recoil Compensation AHK Script  (Read 17008 times)

Offline FortyOne

  • Member
  • *
  • Posts: 307
    • View Profile
  • Gamertag: Forty0ne
  • PSN ID: Forty_One
Re: Recoil Compensation AHK Script
« Reply #45 on: 11:00 AM - 08/15/16 »
if you are on a such a high moral ground for fair play why don't you play with a controller guys.  I think scripting has way too much potential to do good.  Wasn't there someone on this forum who scripted a xim so his son could play ff13 with his chin?   having a community who does have knowledge in scripting can help the community in this. 

Xim might not endorse or support scripts of this sort but it doesn't need to be shut down.  Just like Xbox or Sony doesn't support the xim.  How can you find one acceptable and not the other?

Come Join us on Discord.  Its a great way to
chat and meet up with your fellow ximmers.
Just click on the Image to your left to Join.
<------------------------------------------
Link : SandhawC Profile Loader

Offline Duke3d

  • Member
  • *
  • Posts: 207
    • View Profile
Re: Recoil Compensation AHK Script
« Reply #46 on: 11:52 AM - 08/15/16 »
Well that's an amusing argument, man.

You trying to tell me that Auto aim and Recoil Compensation is designed to help handicapped people play video games.

er... and then dropping the moral high ground issue in there as well?
sudo apt-get install GoldenPistol

Offline FortyOne

  • Member
  • *
  • Posts: 307
    • View Profile
  • Gamertag: Forty0ne
  • PSN ID: Forty_One
Re: Recoil Compensation AHK Script
« Reply #47 on: 12:09 PM - 08/15/16 »
Well that's an amusing argument, man.

You trying to tell me that Auto aim and Recoil Compensation is designed to help handicapped people play video games.

er... and then dropping the moral high ground issue in there as well?

My argument is allowing scripting has potential to allow someone with a legitimate reason to needing to use a xim other than the fact that keyboard and mouse is a preferred input device.  I believe it would be a shame if xim blocked scripting in an attemp to make it "acceptable" in the general public. 

Helping one person with disabilities by improving their quality of life probably outweighs the communities need to have the xim accepted by the everyone.

And what is this auto aim your talking about?

Come Join us on Discord.  Its a great way to
chat and meet up with your fellow ximmers.
Just click on the Image to your left to Join.
<------------------------------------------
Link : SandhawC Profile Loader

Offline Clu

  • Member
  • *
  • Posts: 216
    • View Profile
Re: Recoil Compensation AHK Scripts
« Reply #48 on: 12:31 PM - 08/15/16 »
does anyone know how to set up the no recoil mod?? im new to using the xim and setting everything up and im using it to play black ops 3 on the xbox one can someone please help me set it up, thank you.

Its not a "mod" its a script made for Autohotkey. There are lots of guides and threads out there that can help you out.

where can i find this guide? just curious  ;)

Offline havoxxx

  • Member
  • *
  • Posts: 383
    • View Profile
Re: Recoil Compensation AHK Scripts
« Reply #49 on: 12:42 PM - 08/15/16 »
does anyone know how to set up the no recoil mod?? im new to using the xim and setting everything up and im using it to play black ops 3 on the xbox one can someone please help me set it up, thank you.

Its not a "mod" its a script made for Autohotkey. There are lots of guides and threads out there that can help you out.

where can i find this guide? just curious  ;)

https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=how%20to%20use%20autohotkey

Offline havoxxx

  • Member
  • *
  • Posts: 383
    • View Profile
Re: Recoil Compensation AHK Script
« Reply #50 on: 06:39 PM - 08/29/16 »
update with a noob friendly guide.

Offline SiliconCPU

  • Member
  • *
  • Posts: 15
    • View Profile
  • Gamertag: SiliconCPU
Re: Recoil Compensation AHK Script
« Reply #51 on: 02:28 PM - 10/15/16 »
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

I love this script, however i'm noticing my gun will randomly keep firing out of control in Black Ops 3.  Any advice on how to fix that via the script?  Also, what if I want to disable the firing and only keep the recoil features? 

Offline kyle03

  • Member
  • *
  • Posts: 53
    • View Profile
Re: Recoil Compensation AHK Script
« Reply #52 on: 02:52 AM - 10/23/16 »
Love it, took my a while to figure out for auto weapons you need to set a sleep setting to 0 to keep it firing.
After that accuracy was pretty good with the deault weapon / assault class / bf1

Offline ImWeeabooTrash

  • Member
  • *
  • Posts: 2
    • View Profile
Re: Recoil Compensation AHK Script
« Reply #53 on: 11:46 AM - 01/21/17 »
So I'm slightly confused on which section of the code to edit. I see two instances of MouseXY( , ), and same for Sleep. Can someone point out which one from the original script I edit?

Offline hitman1901

  • Member
  • *
  • Posts: 14
    • View Profile
Re: Recoil Compensation AHK Script
« Reply #54 on: 11:37 AM - 02/01/17 »
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

The script is nice but can anyone do it when autofire is off the recoil still runing on that would be nice i can not do it by my self because i am a scripting no hand ;)

Offline havoxxx

  • Member
  • *
  • Posts: 383
    • View Profile
Re: Recoil Compensation AHK Script
« Reply #55 on: 03:56 PM - 02/01/17 »
delete

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

Offline billj4u2

  • Member
  • *
  • Posts: 1
    • View Profile
Re: Recoil Compensation AHK Script
« Reply #56 on: 11:43 AM - 01/01/18 »


Quote

Want to change this wheelmouse, I don't wish to use wheel mouse to turn on/off activation

Code: [Select]
WheelUp::_auto := ! _auto
would like to use the tilde ( ~ ) key instead..??? how to manage this

thanks btw script is awesome..
« Last Edit: 11:51 AM - 01/01/18 by billj4u2 »