How can i use a value below "1" on this script? (No recoil script)

Get help with using AutoHotkey and its commands and hotkeys
Tolobll
Posts: 1
Joined: 04 Feb 2020, 11:16

How can i use a value below "1" on this script? (No recoil script)

04 Feb 2020, 11:27

Hi i have a script for antirecoil, but the value of "1" is too strong, i just wanted to use a 0,5 or similar, how can i do it?
This is the script:

Code: Select all

#Include %A_AppData%\XIM Link\ScriptAdditionals\AHK_ADDITIONALS.ahk
#NoEnv
SendMode Input
 
IniRead, Key1, Settings.ini, Settings, SuspendKey, Insert
IniWrite, %Key1%, Settings.ini, Settings, SuspendKey
Hotkey, %Key1%, ~$hkWrite
 
Gui Color, 0x000000
Gui Font, c0xB4BD02
TrayTip, Entity PUBX64Build, Now Running in the Background!, 2
Gui, Add, Text, x80 y75 w75 h20 +0x200 +center, Suspend:
Gui, Add, ComboBox, x80 y95 w120 vSuspend, Insert||XButton1|Delete|F1|F2|F3|F4|F5|NumLock
Gui Add, ComboBox, x80 y40 w120 vRCT, 1||1|2|3|4|5|6|7
Gui, Add, Button, gSaveVal x80 y120, Save
Gui, Add, Button, gLoadVal x130 y120, Load
Gui Add, Text, x80 y16 w95 h23 +0x200 +center, Recoil Timing: 
Gui Show, w300 h150, Entity PUBX64 V1.0 (ALPHA)
 
~*$LButton::
Loop
{
GetKeyState, state, LButton, P
if state=u
break
Gui, Submit, nohide
mouseXY(0,1)
sleep, 10
}
return
 
mouseXY(x,y)
{
DllCall("mouse_event",int,1,int,x,int,y,uint,0,uint,0)
}
 
~$hkWrite:
Suspend, Permit
Suspend, Toggle
return
 
SaveVal:
IniDelete, Settings.ini, NoRecoil, RecoilTiming
IniRead, SaveVal1, Settings.ini, NoRecoil, RecoilTiming, %RCT%
IniWrite, %SaveVal1%, Settings.ini, NoRecoil, RecoilTiming
MsgBox, Saved Config
goSub ~$hkWrite
return
 
LoadVal:
IniRead, ReadVal1, Settings.ini, NoRecoil, RecoilTiming
IniWrite, %ReadVal1%, Settings.ini, NoRecoil, RecoilTiming
GuiControl, choosestring, RCT, %ReadVal1%
MsgBox, Loaded Config
goSub ~$hkWrite
return
 
GuiEscape:
GuiClose:
    ExitApp
The part that i want to modify is that:

Code: Select all

mouseXY(0,1)

How can i set a value below "1"? Thank's for the help!

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], nichatr and 45 guests