Convert mouse mouvement unit into controller mouvement unit.

Get help with using AutoHotkey and its commands and hotkeys
ap0w2
Posts: 2
Joined: 13 Feb 2017, 10:17

Convert mouse mouvement unit into controller mouvement unit.

11 Feb 2020, 16:52

Hello, i would love to know please how can i or by what i need to replace "mouse_event" for controller mouvement ( Dualshock 4, XBOX360 ).
Hope someone will take a look please, really thank you for your time in advance.


Code: Select all

		sleep, 10
		DllCall("mouse_event", "UInt", 0x01, "UInt", -2*modifier, "UInt", 10*modifier)
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		DllCall("mouse_event", "UInt", 0x01, "UInt", -2*modifier, "UInt", 10*modifier)
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		DllCall("mouse_event", "UInt", 0x01, "UInt", -2*modifier, "UInt", 10*modifier)
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		DllCall("mouse_event", "UInt", 0x01, "UInt", -2*modifier, "UInt", 10*modifier)
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		DllCall("mouse_event", "UInt", 0x01, "UInt", -2*modifier, "UInt", 10*modifier)
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
			}
		DllCall("mouse_event", "UInt", 0x01, "UInt", -8*modifier, "UInt", 8*modifier)
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		DllCall("mouse_event", "UInt", 0x01, "UInt", -8*modifier, "UInt", 8*modifier)
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
			}
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		DllCall("mouse_event", "UInt", 0x01, "UInt", -8*modifier, "UInt", 4*modifier)
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		DllCall("mouse_event", "UInt", 0x01, "UInt", -4*modifier, "UInt", 4*modifier)
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		DllCall("mouse_event", "UInt", 0x01, "UInt", -4*modifier, "UInt", 4*modifier)
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		DllCall("mouse_event", "UInt", 0x01, "UInt", -8*modifier, "UInt", 4*modifier)
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		DllCall("mouse_event", "UInt", 0x01, "UInt", -8*modifier, "UInt", 4*modifier)
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		DllCall("mouse_event", "UInt", 0x01, "UInt", 2*modifier, "UInt", 10*modifier)
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		DllCall("mouse_event", "UInt", 0x01, "UInt", 2*modifier, "UInt", 14*modifier)
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		DllCall("mouse_event", "UInt", 0x01, "UInt", 2*modifier, "UInt", 14*modifier)
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		DllCall("mouse_event", "UInt", 0x01, "UInt", 2*modifier, "UInt", 14*modifier)
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		DllCall("mouse_event", "UInt", 0x01, "UInt", -3*modifier, "UInt", 3*modifier)
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		DllCall("mouse_event", "UInt", 0x01, "UInt", -3*modifier, "UInt", 3*modifier)
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		DllCall("mouse_event", "UInt", 0x01, "UInt", -4*modifier, "UInt", 3*modifier)
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		DllCall("mouse_event", "UInt", 0x01, "UInt", -4*modifier, "UInt", 3*modifier)
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
		sleep 42
		DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
		sleep 42
		if !GetKeyState(key_shoot) {
			DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
			break
		}
	}
}

Return to “Ask For Help”

Who is online

Users browsing this forum: Google [Bot], Rohwedder, TAC109, vbroere and 103 guests