Search found 7689 matches
- Today, 04:04
- Forum: Ask for Help (v1)
- Topic: Trying to press keys based on color.
- Replies: 1
- Views: 116
Re: Trying to press keys based on color.
Hallo, try: key := {0x161015: 12, 0x0000FF: 3, 0x00FF00: 1, 0xFF0000: 2} [:: SetTimer, Spam, % (on := !on) ? 1000 : "Off" SoundBeep, 1000 + 500 * on Return Spam: PixelGetColor, bgr, 184, 711 ; Blue-green-red; coordinates relative to the active window Loop, Parse,% key[bgr] Send, {%A_LoopField%} Retu...
- Today, 02:51
- Forum: Ask for Help (v1)
- Topic: Can't make key be held down Topic is solved
- Replies: 2
- Views: 244
Re: Can't make key be held down Topic is solved
Hallo, see: https://www.autohotkey.com/docs/v1/misc/RemapController.htm#auto-repeating-controller-buttons Some programs or games might require a key to be sent repeatedly (as though you are holding it down on the keyboard) Try: \::Repeat("o", 30) ; a Timer sends {Blind}{o DownR} every 30 ms q::Repea...
- Yesterday, 06:28
- Forum: Ask for Help (v1)
- Topic: Hotkeys heriarcal priority
- Replies: 2
- Views: 209
Re: Hotkeys heriarcal priority
Hallo, or: !^f10:: Hotkey, IfWinActive, ahk_exe notepad.exe Hotkey, f10, f10, Off Hotkey, *f10, myLabel return myLabel: msgbox, I’d like this to take precedence while random.exe is active return #IFwinactive, ahk_exe notepad.exe f10:: msgbox, this will be triggered instead return #IF
- Yesterday, 03:10
- Forum: Gaming Help (v1)
- Topic: WoW with AHK PixelGetColor
- Replies: 2
- Views: 182
Re: WoW with AHK PixelGetColor
Hallo,
you could replace all If Color!=000000 with If Color
and all if exiter = 1 with if exiter, but I don't think that would help much.
Maybe it helps to split the big loop into several scripts which are switched on and off by the main script.
@joedf this is an Autohotkey v1.1 script.
you could replace all If Color!=000000 with If Color
and all if exiter = 1 with if exiter, but I don't think that would help much.
Maybe it helps to split the big loop into several scripts which are switched on and off by the main script.
@joedf this is an Autohotkey v1.1 script.
- Yesterday, 02:34
- Forum: Gaming
- Topic: search AHK V2 for EMCol
- Replies: 1
- Views: 64
- Yesterday, 00:32
- Forum: Ask for Help (v2)
- Topic: script that makes it so when a key is pressed, it remains activated until I press it again Topic is solved
- Replies: 2
- Views: 83
Re: script that makes it so when a key is pressed, it remains activated until I press it again Topic is solved
Hallo, try: #Requires AutoHotkey v2.0 *a:: { Static A := False Send (A:=!A)?"{Blind}{a down}":"{Blind}{a up}" KeyWait "a" } or with AutoRepeat: #Requires AutoHotkey v2.0 *a:: { Static A := False, T:=()=>Send("{Blind}{a downR}") SetTimer(T, 30*A:=!A), A?T():Send("{Blind}{a up}") KeyWait "a" } Other k...
- 09 May 2024, 09:07
- Forum: Ask for Help (v1)
- Topic: AutoHotkeyH vs AutoHotkeyL vs AutoHotkey2
- Replies: 21
- Views: 4758
Re: AutoHotkeyH vs AutoHotkeyL vs AutoHotkey2
Hallo,
no! There is no such thing as q & w & e:: in any Autohotkey.
no! There is no such thing as q & w & e:: in any Autohotkey.
- 09 May 2024, 01:38
- Forum: Gaming
- Topic: Clicking a position without releasing rightclick
- Replies: 3
- Views: 134
Re: Clicking a position without releasing rightclick
Hallo,
instead of using PostMessage, I would have tried clicking with ControlClick first!
instead of using PostMessage, I would have tried clicking with ControlClick first!
- 08 May 2024, 11:15
- Forum: Ask for Help (v1)
- Topic: Simple remap script consultation
- Replies: 1
- Views: 293
Re: Simple remap script consultation
Hallo,
according to your requirement, it should work like this:
according to your requirement, it should work like this:
Code: Select all
Space::
Send, {Ctrl down}{Shift down}{w down}
sleep 30
Send, {Blind}{x down}
sleep 30
Send, {Ctrl up}{Shift up} ; hold w and x only, releasing Shift and Ctrl
KeyWait, Space
Send, {w up}{x up}
return
- 08 May 2024, 02:51
- Forum: Ask for Help (v1)
- Topic: Hook for window
- Replies: 2
- Views: 319
Re: Hook for window
Hallo, try: DllCall("RegisterShellHookWindow", "UInt", A_ScriptHwnd) OnMessage(DllCall("RegisterWindowMessage", "Str", "SHELLHOOK"), "act") Return act(wParam, lParam) { If (wParam = WINDOWCREATED := 1) SoundBeep } but when "an existing Window is moving" could be a problem for a WinHook. https://www....
- 06 May 2024, 05:05
- Forum: Ask for Help (v1)
- Topic: How to disable enable a portion of ahk scrip on pressing hotkey? Topic is solved
- Replies: 2
- Views: 248
Re: How to disable enable a portion of ahk scrip on pressing hotkey? Topic is solved
Hallo, F4 toggles all Hotkeys between #IF SpecialHotkeys and #IF on/off: F4::SpecialHotkeys:=!SpecialHotkeys Numpad1::SoundBeep, 4000, 20 Numpad2::SoundBeep, 2000, 20 Numpad3::SoundBeep, 1000, 20 #IF SpecialHotkeys Numpad4::SoundBeep, 4000, 20 Numpad5::SoundBeep, 2000, 20 Numpad6::SoundBeep, 1000, 2...
- 06 May 2024, 02:30
- Forum: Ask for Help (v1)
- Topic: sub script no working
- Replies: 2
- Views: 330
Re: sub script no working
Hallo,
try:
try:
Code: Select all
#s up::
send,% (ClipBoard:="") "^c"
ClipWait, 0
run, http://www.google.com/search?q=%clipboard%
return
- 06 May 2024, 00:54
- Forum: Ask for Help (v2)
- Topic: Remapping Asus laptop Fn keys
- Replies: 9
- Views: 562
Re: Remapping Asus laptop Fn keys
Hallo,
but F1-F11 can be configured back via this MyAsus software?
If so, then gradually replace them with Autohotkey functions. You will discover a new world of possibilities. Otherwise, stay in your (not really) golden cage.
but F1-F11 can be configured back via this MyAsus software?
If so, then gradually replace them with Autohotkey functions. You will discover a new world of possibilities. Otherwise, stay in your (not really) golden cage.
- 05 May 2024, 12:44
- Forum: Ask for Help (v1)
- Topic: Long press is not working Topic is solved
- Replies: 78
- Views: 3208
Re: Long press is not working Topic is solved
Just to clarify! My backslash Hotkey script above does not require anything in the auto-execute section.
- 05 May 2024, 12:39
- Forum: Gaming Help (v1)
- Topic: Looking for help on how to not make my key sends redundant and how I could toggle this on and off. Topic is solved
- Replies: 3
- Views: 201
Re: Looking for help on how to not make my key sends redundant and how I could toggle this on and off. Topic is solved
Hallo,
try:
try:
Code: Select all
^k::wdxa:=!wdxa
#IF wdxa
$w::Send n{enter}
$d::Send e{enter}
$x::Send s{enter}
$a::Send w{enter}
$s::Send r{enter}
$z::Send sw{enter}
$c::Send se{enter}
$q::Send nw{enter}
$e::Send ne{enter}
$Space::Send a{enter}
$f::Send cure{enter}
#IF
- 05 May 2024, 12:08
- Forum: Ask for Help (v1)
- Topic: Long press is not working Topic is solved
- Replies: 78
- Views: 3208
Re: Long press is not working Topic is solved
Maybe the definition of the commands and the initialization of the counter are not in the auto-execute section (at the beginning of the script)? Try: \::Send,% ["command 1", "command 2", "command 3" , "command 4", "command 5"][++BSL:=Mod(0 BSL, 5)] Explanation of: ++BSL:=Mod(0 BSL, 5) BSL is the cou...
- 05 May 2024, 04:40
- Forum: Ask for Help (v1)
- Topic: How to magnify an area in the middle?
- Replies: 1
- Views: 244
Re: How to magnify an area in the middle?
Hallo, your Timer does not zoom the area under the magnification window but the magnification window itself. Marcgii had found a solution for the same problem himself using DllCall("user32.dll\SetWindowDisplayAffinity", UInt, hWnd, UInt,0x00000011) See https://www.autohotkey.com/boards/viewtopic.php...
- 04 May 2024, 01:51
- Forum: Gaming
- Topic: If the game shuts down, shut down OBS too
- Replies: 1
- Views: 205
Re: If the game shuts down, shut down OBS too
Hallo, start Wordpad, Notepad and this script: #Requires AutoHotkey v2.0 Persistent Timer := () => !WinExist("ahk_exe wordpad.exe") And WinExist("ahk_exe notepad.exe")?WinClose():"" SetTimer Timer, 1000 ; every second If you exit Wordpad, the script also exits Notepad. Replace Wordpad with your game...
- 04 May 2024, 01:24
- Forum: Ask for Help (v1)
- Topic: need help switching keybinds
- Replies: 1
- Views: 216
Re: need help switching keybinds
Hallo, I interpret this as follows: If you press LShift + d, your game should only see the pressed d. Try: #Warn #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. #SingleInstance Force ; Ensures only one instance of the script is running. SetBatchLines, -1 ; Set...
- 04 May 2024, 00:43
- Forum: Ask for Help (v1)
- Topic: Help executing/running a function
- Replies: 1
- Views: 236
Re: Help executing/running a function
Hallo, try: TeleportPosX = 1536 TeleportPosY = 39 TeleportSearchPosX = 1351 TeleportSearchPosY = 250 AreaToGoToX = 956 AreaToGoToY = 353 ^F1::GoToArea("Void Spiral", false) GoToArea(Area, AutoFarm) { Global ; <<<<<< MouseMove, TeleportPosX, TeleportPosY Click Click MouseMove, TeleportSearchPosX, Tel...