Search found 7687 matches

by Rohwedder
Yesterday, 06:28
Forum: Ask for Help (v1)
Topic: Hotkeys heriarcal priority
Replies: 2
Views: 175

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
by Rohwedder
Yesterday, 03:10
Forum: Gaming Help (v1)
Topic: WoW with AHK PixelGetColor
Replies: 2
Views: 175

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.
by Rohwedder
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: 81

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...
by Rohwedder
09 May 2024, 09:07
Forum: Ask for Help (v1)
Topic: AutoHotkeyH vs AutoHotkeyL vs AutoHotkey2
Replies: 21
Views: 4750

Re: AutoHotkeyH vs AutoHotkeyL vs AutoHotkey2

Hallo,
no! There is no such thing as q & w & e:: in any Autohotkey.
by Rohwedder
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!
by Rohwedder
08 May 2024, 11:15
Forum: Ask for Help (v1)
Topic: Simple remap script consultation
Replies: 1
Views: 274

Re: Simple remap script consultation

Hallo,
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
by Rohwedder
08 May 2024, 02:51
Forum: Ask for Help (v1)
Topic: Hook for window
Replies: 2
Views: 311

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....
by Rohwedder
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...
by Rohwedder
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:

Code: Select all

#s up::
send,% (ClipBoard:="") "^c"
ClipWait, 0
run, http://www.google.com/search?q=%clipboard%
return
by Rohwedder
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.
by Rohwedder
05 May 2024, 12:44
Forum: Ask for Help (v1)
Topic: Long press is not working Topic is solved
Replies: 78
Views: 3206

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.
by Rohwedder
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: 200

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:

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
by Rohwedder
05 May 2024, 12:08
Forum: Ask for Help (v1)
Topic: Long press is not working Topic is solved
Replies: 78
Views: 3206

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...
by Rohwedder
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...
by Rohwedder
04 May 2024, 01:51
Forum: Gaming
Topic: If the game shuts down, shut down OBS too
Replies: 1
Views: 203

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...
by Rohwedder
04 May 2024, 01:24
Forum: Ask for Help (v1)
Topic: need help switching keybinds
Replies: 1
Views: 215

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...
by Rohwedder
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...
by Rohwedder
03 May 2024, 03:38
Forum: Gaming Help (v1)
Topic: Hypixel Skyblock farm
Replies: 3
Views: 368

Re: Hypixel Skyblock farm

Hallo, try: x := 2, y := 3, k := 5 q:: ; Start with Key Q Loop { Loop, 3 Hold("a", x), Hold("s", y), Hold("d", x) Sleep, 1000*k } Hold(Key, Seconds) { SendEvent, {%Key% Down} Sleep, Seconds*1000 SendEvent, {%Key% Up} } ; Hold(Key, Seconds) ; { ; with AutoRepeat ; SetKeyDelay, 30 ; Loop,% Seconds*100...
by Rohwedder
03 May 2024, 02:14
Forum: Ask for Help (v1)
Topic: Long press is not working Topic is solved
Replies: 78
Views: 3206

Re: Long press is not working Topic is solved

E.g.: q:: KeyWait,% Counter() ; counts every 500 ms Switch No { Case 1:MsgBox do first Task Case 2:MsgBox do second Task Case 3:MsgBox do third Task ; ... } Return !w:: KeyWait,% Counter(1000) ; counts every 1000 ms Switch No { Case 1:MsgBox do first Task Case 2:MsgBox do second Task Case 3:MsgBox d...

Go to advanced search