script required

Ask gaming related questions (AHK v1.1 and older)
afi_funky
Posts: 1
Joined: 18 Apr 2018, 02:27

script required

18 Apr 2018, 02:55

Can someone write a script for me ?


I just want to display the result as "Hi" and then it should go to the next line as soon as I click Left button on the mouse. The speed of click and script execution should be fastest. I tried below script but it takes a few seconds to display the result.


#NoEnv
#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
#KeyHistory 0
ListLines Off
Process, Priority, , A
SetBatchLines, -1
SetKeyDelay, -1, -1
SetMouseDelay, -1
SetDefaultMouseSpeed, 0
SetWinDelay, -1
SetControlDelay, -1
SendMode Input
LButton::
Send, Hi
Send {enter}
Return



Can anyone help?
Rohwedder
Posts: 7613
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: script required

23 Apr 2018, 06:58

Hallo,
try:

Code: Select all

#NoEnv
SendMode Input
~LButton:: 
;Tilde: ~ when the hotkey fires, its key's native function will not be blocked
;Lbutton is probably the most important key at all
KeyWait, LButton
Send, Hi
Send {enter}
Return

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 38 guests