Search found 1908 matches

by Xtra
06 Oct 2020, 20:06
Forum: Gaming
Topic: AHK Autoclicker glitching
Replies: 7
Views: 161

Re: AHK Autoclicker glitching

That version posted by w0z seems to work fine i cant reproduce your issue.
You have something else going on is there more code to your script? an issue with your computer? the game cant handle that kinda of inputs? etc
by Xtra
06 Oct 2020, 03:47
Forum: Ask For Help
Topic: Unable to toggle off loop Topic is solved
Replies: 6
Views: 124

Re: Unable to toggle off loop Topic is solved

#MaxThreadsperHotkey 2 is not needed when using the timer method but is needed for the loop method. Key down sleep key up is good for games. Most games require the key pressed duration to be 20ms-50ms. The 2 scripts you posted in the OP have mistakes: if (NumLock = "w") is incorrect so the loop nev...
by Xtra
05 Oct 2020, 22:58
Forum: Gaming
Topic: Really easy script Topic is solved
Replies: 7
Views: 124

Re: Really easy script Topic is solved

Try:

Code: Select all

1::
2::
3::
4::
5::
    Loop % A_ThisHotkey
    {
        Send, {Space Down}
        Sleep 1000
    }
    Send, {Space Up}
return
by Xtra
05 Oct 2020, 22:47
Forum: Gaming
Topic: Can someone help me making this autofire script? Topic is solved
Replies: 2
Views: 77

Re: Can someone help me making this autofire script? Topic is solved

Code: Select all

~rbutton & lbutton::
While GetKeyState("rbutton","P"){    ; <<<< Should be  P not D
Click
Random, time, 10, 30
Sleep time ; milliseconds
}
return
KeyWait lbutton, T0.1 is 100ms see: KeyWait

HTH
by Xtra
05 Oct 2020, 22:29
Forum: Gaming
Topic: MINIMIZED BUTTON PRESSES, ENDLESS
Replies: 1
Views: 29

Re: MINIMIZED BUTTON PRESSES, ENDLESS

You can use ControlSend but the window can not be minimized.
by Xtra
05 Oct 2020, 22:27
Forum: Gaming
Topic: Really easy script Topic is solved
Replies: 7
Views: 124

Re: Really easy script Topic is solved

Code: Select all

1::
2::
3::
4::
5::Send, {Space %A_ThisHotkey%}
by Xtra
05 Oct 2020, 22:23
Forum: Ask For Help
Topic: Long Press on "s" key becomes "ş"
Replies: 3
Views: 71

Re: Long Press on "s" key becomes "ş"

Give this a try:

Code: Select all

$*s::
    KeyWait, s, T0.3
    If ErrorLevel
    {
        if GetKeyState("CapsLock", "T")
        {
            Send, % GetKeyState("Shift", "P") ? "Ş" : "ş"
            return
        }
    }
    Send, {Blind}s
return
by Xtra
05 Oct 2020, 16:18
Forum: Gaming
Topic: Stuck with toggled SetTimer
Replies: 5
Views: 59

Re: Stuck with toggled SetTimer

Code: Select all

#if Toggle1	
	lbutton::
	While GetKeyState("lbutton","P")
	{
	    Send, {space down}
	    Sleep 100
	}
	Send, {space up}
	Return
#if
You probably want to run the loop every 100ms. See: blocks (lines enclosed in braces)
This will help prevent interupting the timers.
by Xtra
05 Oct 2020, 14:53
Forum: Ask For Help
Topic: keybinding with UP and DOWN
Replies: 5
Views: 105

Re: keybinding with UP and DOWN

You got a typo and some syntax errors:

try:

Code: Select all

#ifwinactive ahk_class Notepad
r::
ControlSend, Edit1, r, Untitled - Notepad
return

r up::
ControlSend, Edit1, r, Untitled - Notepad
return
#ifwinactive
For a single key add KeyWait to the 1st hotkey before return
by Xtra
05 Oct 2020, 11:30
Forum: Ask For Help
Topic: Unable to toggle off loop Topic is solved
Replies: 6
Views: 124

Re: Unable to toggle off loop Topic is solved

Timer is a good option because it doesnt need #MaxThreadsPerHotkey 2 it should be removed.
by Xtra
05 Oct 2020, 11:28
Forum: Ask For Help
Topic: Unable to toggle off loop Topic is solved
Replies: 6
Views: 124

Re: Unable to toggle off loop Topic is solved

Code: Select all

#MaxThreadsperHotkey 2

~NumLock::
Toggle := !Toggle
loop
{
    Send, w
    Sleep, 10 ; Sleep for 10 msec
} until !Toggle
return
by Xtra
05 Oct 2020, 02:29
Forum: Ask For Help
Topic: Shorten file names
Replies: 3
Views: 75

Re: Shorten file names

ext := ".Ba2" ; File ext Loop, Files, % "*" . ext ; Loop all with extension { for each, filePart in StrSplit(StrReplace(A_LoopFileName, ext), [A_Space, "-"]) ; Remove file ext and split on space and dash if (filePart != "") ; Skip empty fileParts shortName .= SubStr(filePart, 1, 1) ; Save 1st lette...
by Xtra
03 Oct 2020, 21:06
Forum: Ask For Help
Topic: 2 actions one click Topic is solved
Replies: 8
Views: 89

Re: 2 actions one click Topic is solved

As usual everything is in the Docs:
the characters ^+!#{} have a special meaning. The characters ^+!# represent the modifier keys Ctrl, Shift, Alt and Win. They affect only the very next key
Thanks @gregster
by Xtra
03 Oct 2020, 19:11
Forum: Ask For Help
Topic: 2 actions one click Topic is solved
Replies: 8
Views: 89

Re: 2 actions one click Topic is solved

Code: Select all

Send, {+}        ; is not shift
Send, +          ; is shift
Send, {Shift}    ; is shift
Remap example to try:

Code: Select all

~LButton::Shift
~MButton::Ctrl
~RButton::Enter
by Xtra
03 Oct 2020, 18:01
Forum: Ask For Help
Topic: How to disable/suppress unwanted key inputs to the last opened program
Replies: 3
Views: 68

Re: How to disable/suppress unwanted key inputs to the last opened program

Try changing Send to ControlSend and send to the window directly instead of blindly.

HTH
by Xtra
03 Oct 2020, 17:32
Forum: Gaming
Topic: Need Help with a Gaming Script
Replies: 1
Views: 61

Re: Need Help with a Gaming Script

Code: Select all

Loop
{
	Send, {Space}
	Send, x
	Sleep, 200
}
Click command names in the code box to bring up the help file for them.
by Xtra
03 Oct 2020, 16:48
Forum: Gaming
Topic: If var between with 2 variables?
Replies: 1
Views: 61

Re: If var between with 2 variables?

Example:

Code: Select all


if (isBetween(xis, 2085.500000, 2109.500000) and isBetween(ypis, 2090.500000, 2100.500000))
    MsgBox true!

isBetween(var, num1, num2)
{
    return ((var >= num1) and (var <= num2)) ? true : false
}
by Xtra
02 Oct 2020, 23:29
Forum: Ask For Help
Topic: Delay any other click after Right Click
Replies: 15
Views: 138

Re: Delay any other click after Right Click

That's how the OP had it setup.
Dll calls are fine to use if you know how to.
I'm pretty sure this is for a game.

Go to advanced search