i want to change turning speed in this script:
F12::
Loop 1000 {
DllCall("mouse_event", "UInt", 0x01, "UInt", 8, "UInt", 0) ; move 1 unit right
Sleep 10
}
return
but i dont know anything about ahk coding show can someone plz explain me how to do it, thanks .
how to change turning speed in 360 deggre turn script
Re: how to change turning speed in 360 deggre turn script
Try a higher Sleep time
Re: how to change turning speed in 360 deggre turn script
I'm not sure what you want, could you explain better?.
This is a version with SendInput (Escape=Exit):
btw: the function should be DllCall("User32.dll\mouse_event", "UInt", 1, "UInt", X, "UInt", Y, "UInt", 0, "UPtr", 0).
This is a version with SendInput (Escape=Exit):
Code: Select all
~Esc:: ExitApp
F12::
Loop
{
MoveMouse(-8, 0)
Sleep 1
}
return
MoveMouse(x, y)
{
; INPUT structure
; https://msdn.microsoft.com/en-us/library/windows/desktop/ms646270(v=vs.85).aspx
Local INPUT := "", Size := A_PtrSize == 8 ? 40 : 28
VarSetCapacity(INPUT, Size, 0)
; MOUSEINPUT structure
; https://msdn.microsoft.com/en-us/library/windows/desktop/ms646273(v=vs.85).aspx
NumPut(x, &INPUT + A_PtrSize, "Int")
NumPut(y, &INPUT + A_PtrSize + 4, "Int")
NumPut(1, &INPUT + A_PtrSize + 4 + 8, "UInt")
; SendInput function
; https://msdn.microsoft.com/en-us/library/windows/desktop/ms646310(v=vs.85).aspx
Return DllCall("User32.dll\SendInput", "UInt", 1, "UPtr", &INPUT, "Int", Size, "UInt")
}
Re: how to change turning speed in 360 deggre turn script
nope its not workingQysh wrote:Try a higher Sleep time
Re: how to change turning speed in 360 deggre turn script
i want a faster 360 degree turn thats it, and thanks for trying to help me!Flipeador wrote:I'm not sure what you want, could you explain better?.
This is a version with SendInput (Escape=Exit):btw: the function should be DllCall("User32.dll\mouse_event", "UInt", 1, "UInt", X, "UInt", Y, "UInt", 0, "UPtr", 0).Code: Select all
~Esc:: ExitApp F12:: Loop { MoveMouse(-8, 0) Sleep 1 } return MoveMouse(x, y) { ; INPUT structure ; https://msdn.microsoft.com/en-us/library/windows/desktop/ms646270(v=vs.85).aspx Local INPUT := "", Size := A_PtrSize == 8 ? 40 : 28 VarSetCapacity(INPUT, Size, 0) ; MOUSEINPUT structure ; https://msdn.microsoft.com/en-us/library/windows/desktop/ms646273(v=vs.85).aspx NumPut(x, &INPUT + A_PtrSize, "Int") NumPut(y, &INPUT + A_PtrSize + 4, "Int") NumPut(1, &INPUT + A_PtrSize + 4 + 8, "UInt") ; SendInput function ; https://msdn.microsoft.com/en-us/library/windows/desktop/ms646310(v=vs.85).aspx Return DllCall("User32.dll\SendInput", "UInt", 1, "UPtr", &INPUT, "Int", Size, "UInt") }
Re: how to change turning speed in 360 deggre turn script
Code: Select all
F12::
Loop 500 {
DllCall("mouse_event", "UInt", 0x01, "UInt", 16, "UInt", 0) ; move 1 unit right
Sleep 1
}
return
Who is online
Users browsing this forum: ReyAHK and 88 guests