for the love of god can someone help me out

Ask gaming related questions
doglicker69
Posts: 1
Joined: 03 Oct 2019, 17:27

for the love of god can someone help me out

03 Oct 2019, 18:21

i have a Logitech macro on my 'o' letter on my keyboard that goes as the following :

----------------
ON PRESS :
Presses F

WHILE HOLDING :
holds i (i down)

ON RELEASE :
Release I (i up)
Presses F again
-----------------
How can i convert this to a working AHK script ?

this is what I've tried and it doesn't seem to be working that well.
i now need to send 'F' once then continue sending i down

Code: Select all



$*o::
{
	; i need to send F once here then continue sending { i down } while i'm holding O
	send {i down}
	return
}

$*o up::
{
	send {i up}
	send {F}
	return
	
}



	
	send {x}
	
	
Rohwedder
Posts: 2356
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: for the love of god can someone help me out

05 Oct 2019, 03:21

Hallo,
try without Autorepeat:

Code: Select all

*o::
;i need to send F once here then continue sending {i down} while i'm holding O
Send, {Blind}f ; i need to send F once here
Send, {Blind}{i DownR} ;then continue sending {i down}
KeyWait, o ;while i'm holding O
Send {Blind}{i Up}
Send, {Blind}f
Return
or with:

Code: Select all

*o::
; i need to send F once here then continue sending {i down} while i'm holding O
Send, {Blind}f ; i need to send F once here
While, GetKeyState("o","P") ;with AutoRepeat
{
	Send, {Blind}{i Down} ;then continue sending {i down}
	Sleep, 30
}
Send {Blind}{i Up}
Send, {Blind}f
Return

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 43 guests