helpppp

Ask gaming related questions (AHK v1.1 and older)
bryantan179
Posts: 74
Joined: 29 Mar 2017, 01:55

helpppp

24 May 2017, 01:11

how do i fix the script , it keeps making the letters that i type in capital letter after i click capslock.i wan it to remain in small letter even if i click or hold it many times


Capslock::
{
Send {RButton Down}
;ensuring that the player doesn't interfere with the macro
Send {SC011 Up} ;W
Send {SC01E Up} ;A
Send {SC01F Up} ;S
Send {SC020 Up} ;D
Send {SC021 Up} ;F
;the actual inputs
Send {Space Down}
DllCall("kernel32.dll\Sleep", "UInt", 20)
Send {SC020 Down}
Send {Space Up}
Send {SC020 Up}
Send {3 Down}
DllCall("kernel32.dll\Sleep", "UInt", 20)
Send {SC01F Down}
Send {Space Down}
Send {3 Up}
DllCall("kernel32.dll\Sleep", "UInt", 20)
Send {Space Up}
Send {SC01F Up}
;ensuring that the macro doesn't interfere with the player
if GetKeyState("SC011","P")
Send {SC011 Down}
if GetKeyState("SC01E","P")
Send {SC01E Down}
if GetKeyState("SC01F","P")
Send {SC01F Down}
if GetKeyState("SC020","P")
Send {SC020 Down}
if GetKeyState("SC021","P")
Send {SC021 Down}
DllCall("kernel32.dll\Sleep", "UInt", 0)
if GetKeyState("RButton","P")
Send {Click Right Down}
else
Send {Click Right Up}

Loop,1
{
if not GetKeyState("Capslock","P")
break
Send {Click Right Down}

}
return


return
}


Capslock Up::
{
Send {RButton Up}
}
return
3600
Posts: 16
Joined: 20 May 2017, 11:42

Re: helpppp

24 May 2017, 08:28

SetCapsLockState, alwaysoff
bryantan179
Posts: 74
Joined: 29 Mar 2017, 01:55

Re: helpppp

24 May 2017, 09:03

it works on that script but not on this script :
also when i hold or click this script below for too many times , it will keep spamming until i click the button again . how to fix this ?


SetCapsLockState, AlwaysOff
#NoEnv
#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
#KeyHistory 0
ListLines Off
Process, Priority, , H
SetBatchLines, -1
SetKeyDelay, -1, -1
SetMouseDelay, -1
SetDefaultMouseSpeed, 0
SetWinDelay, -1
SetControlDelay, -1
SendMode Input

$*Capslock::
Loop
{
if GetKeyState("Capslock","P")
Send {s Down}
else
Send {s Up}
if GetKeyState("Capslock","P")
Send {Click Right Down}
else
Send {Click Right Up}



if not GetKeyState("Capslock","P")
break
Send {s Down}
Sleep 0
Send {Space Down}
Sleep 1
Send {Space Up}
Sleep 1
Send {3 Down}
Sleep 0
Send {s Up}
Sleep 0
Send {d down}
Sleep 1
Send {Space Down}
Sleep 1
Send {d Up}
Sleep 1
Send {Space Up}
Sleep 1
Send {3 Up}
Sleep 0

Loop,1
{
if not GetKeyState("RButton","P")
break
Send {Click Right Down}
}


}
return
3600
Posts: 16
Joined: 20 May 2017, 11:42

Re: helpppp

25 May 2017, 10:00

i dont know how to make it to ignore in AHK you can make it with X-mouse and it will allow you to push any button with the auto keys
bryantan179
Posts: 74
Joined: 29 Mar 2017, 01:55

Re: helpppp

25 May 2017, 11:19

how about the ''when i hold or click this script below for too many times , it will keep spamming until i click the button again . how to fix this ?'' part ?
3600
Posts: 16
Joined: 20 May 2017, 11:42

Re: helpppp

25 May 2017, 11:39

did you tried IF ?
User avatar
Delta Pythagorean
Posts: 627
Joined: 13 Feb 2017, 13:44
Location: Somewhere in the US
Contact:

Re: helpppp

25 May 2017, 11:52

I don't see what you want out of this script, but this works well for me.
Please be more specific with what you're needing help with.

Code: Select all

#HotkeyInterval 10
#Warn
#NoEnv
#Persistent
#SingleInstance Force
#InstallKeybdHook
#InstallMouseHook
#MaxThreads 30
#MaxHotKeysPerInterval 1000
#MaxThreadsBuffer On
#KeyHistory 0

SetCapsLockState, AlwaysOff
SetTitleMatchMode 2
DetectHiddenWindows, On
CoordMode, Mouse, Screen
SendMode Input
SetDefaultMouseSpeed, 0
SetMouseDelay, -1
SetKeyDelay, -1
SetWinDelay, -1
SetBatchLines, -1
SetControlDelay -1

$*Capslock::
Loop
{
	If GetKeyState("Capslock", "P") {
		Send {s Down}
	} Else {
		Send {s Up}
	} If GetKeyState("Capslock", "P") {
		Send {Click Right Down}
	} Else {
		Send {Click Right Up}
	}
	
	
	If not GetKeyState("Capslock", "P")
		Break
	Send {s Down}
	Sleep 0
	Send {Space Down}
	Sleep 1
	Send {Space Up}
	Sleep 1
	Send {3 Down}
	Sleep 0
	Send {s Up}
	Sleep 0
	Send {d down}
	Sleep 1
	Send {Space Down}
	Sleep 1
	Send {d Up}
	Sleep 1
	Send {Space Up}
	Sleep 1
	Send {3 Up}
	Sleep 0
	
	Loop, 1
	{
		If not GetKeyState("RButton", "P")
			break
		Send {Click Right Down}
	}	
}
Return

[AHK]......: v2.0.12 | 64-bit
[OS].......: Windows 11 | 23H2 (OS Build: 22621.3296)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat

bryantan179
Posts: 74
Joined: 29 Mar 2017, 01:55

Re: helpppp

26 May 2017, 00:35

Delta Pythagorean wrote:I don't see what you want out of this script, but this works well for me.
Please be more specific with what you're needing help with.

Code: Select all

#HotkeyInterval 10
#Warn
#NoEnv
#Persistent
#SingleInstance Force
#InstallKeybdHook
#InstallMouseHook
#MaxThreads 30
#MaxHotKeysPerInterval 1000
#MaxThreadsBuffer On
#KeyHistory 0

SetCapsLockState, AlwaysOff
SetTitleMatchMode 2
DetectHiddenWindows, On
CoordMode, Mouse, Screen
SendMode Input
SetDefaultMouseSpeed, 0
SetMouseDelay, -1
SetKeyDelay, -1
SetWinDelay, -1
SetBatchLines, -1
SetControlDelay -1

$*Capslock::
Loop
{
	If GetKeyState("Capslock", "P") {
		Send {s Down}
	} Else {
		Send {s Up}
	} If GetKeyState("Capslock", "P") {
		Send {Click Right Down}
	} Else {
		Send {Click Right Up}
	}
	
	
	If not GetKeyState("Capslock", "P")
		Break
	Send {s Down}
	Sleep 0
	Send {Space Down}
	Sleep 1
	Send {Space Up}
	Sleep 1
	Send {3 Down}
	Sleep 0
	Send {s Up}
	Sleep 0
	Send {d down}
	Sleep 1
	Send {Space Down}
	Sleep 1
	Send {d Up}
	Sleep 1
	Send {Space Up}
	Sleep 1
	Send {3 Up}
	Sleep 0
	
	Loop, 1
	{
		If not GetKeyState("RButton", "P")
			break
		Send {Click Right Down}
	}	
}
Return


my problem is that sometimes when i click or hold capslock for long time , it will turn the letters that i will type into CAPITAL LETTERS . SetCapsLockState, AlwaysOff is added into the script but its still the same . also sometimes when i click or hold capslock for a long time , it will spam the script without stopping until i click the capslock again.
bryantan179
Posts: 74
Joined: 29 Mar 2017, 01:55

Re: helpppp

27 May 2017, 12:05

your script is the same . sometime it keep spamming non stop , i have to click capslock again to cancel it.



#HotkeyInterval 10
#Warn
#NoEnv
#Persistent
#SingleInstance Force
#InstallKeybdHook
#InstallMouseHook
#MaxThreads 30
#MaxHotKeysPerInterval 1000
#MaxThreadsBuffer On
#KeyHistory 0

SetCapsLockState, AlwaysOff
SetTitleMatchMode 2
DetectHiddenWindows, On
CoordMode, Mouse, Screen
SendMode Input
SetDefaultMouseSpeed, 0
SetMouseDelay, -1
SetKeyDelay, -1
SetWinDelay, -1
SetBatchLines, -1
SetControlDelay -1

$*Capslock::
Loop
{
If GetKeyState("Capslock", "P") {
Send {s Down}
} Else {
Send {s Up}
} If GetKeyState("Capslock", "P") {
Send {Click Right Down}
} Else {
Send {Click Right Up}
}


If not GetKeyState("Capslock", "P")
Break
Send {s Down}
Sleep 0
Send {Space Down}
Sleep 1
Send {Space Up}
Sleep 1
Send {3 Down}
Sleep 0
Send {s Up}
Sleep 0
Send {d down}
Sleep 1
Send {Space Down}
Sleep 1
Send {d Up}
Sleep 1
Send {Space Up}
Sleep 1
Send {3 Up}
Sleep 0

Loop, 1
{
If not GetKeyState("RButton", "P")
break
Send {Click Right Down}
}
}
Return

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 95 guests