Search found 7683 matches

by Rohwedder
Today, 09:07
Forum: Ask for Help (v1)
Topic: AutoHotkeyH vs AutoHotkeyL vs AutoHotkey2
Replies: 21
Views: 4620

Re: AutoHotkeyH vs AutoHotkeyL vs AutoHotkey2

Hallo,
no! There is no such thing as q & w & e:: in any Autohotkey.
by Rohwedder
Today, 01:38
Forum: Gaming
Topic: Clicking a position without releasing rightclick
Replies: 1
Views: 105

Re: Clicking a position without releasing rightclick

Hallo,
instead of using PostMessage, I would have tried clicking with ControlClick first!
by Rohwedder
Yesterday, 11:15
Forum: Ask for Help (v1)
Topic: Simple remap script consultation
Replies: 1
Views: 216

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
Yesterday, 02:51
Forum: Ask for Help (v1)
Topic: Hook for window
Replies: 2
Views: 281

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: 247

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: 322

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: 532

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: 3186

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: 186

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: 3186

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: 242

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: 201

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: 213

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: 232

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: 3186

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...
by Rohwedder
02 May 2024, 10:53
Forum: Ask for Help (v1)
Topic: Need help with a project
Replies: 4
Views: 454

Re: Need help with a project

Hallo,
use Arrays https://www.autohotkey.com/docs/v1/Objects.htm#Usage_Simple_Arrays

Code: Select all

Text := {} ; Array
Text.Push("A example","B example","C example","D example","E example")
F2::
Random, randNum, 1, Text.Length()
SendInput,% Text[randNum]
Return
by Rohwedder
02 May 2024, 10:27
Forum: Ask for Help (v2)
Topic: nested functions with assume-global
Replies: 3
Views: 354

Re: nested functions with assume-global

Hallo, the "assume global" mode of inner2() apparently causes it to regard the inner1() function as a global variable. Try: #Requires AutoHotkey v2.0 #Warn All, Off outer(1) ListVars outer(x) { inner1(y) { global SoundBeep(4000, 20) iTest := 1 } inner2(z) { global SoundBeep(1000, 20) Try inner1(1) }...
by Rohwedder
02 May 2024, 00:22
Forum: Ask for Help (v1)
Topic: Toggle NumLock ScrollLock & CapsLock Issue
Replies: 2
Views: 322

Re: Toggle NumLock ScrollLock & CapsLock Issue

Hallo, GetKeyState has no “F” mode! Try: TOGGLE_CapsLock: If GetKeyState("CapsLock", "T") = 1 SetCapsLockState, Off Else If GetKeyState("CapsLock", "T") = 0 SetCapsLockState, On Return RETURN TOGGLE_NumLock: If GetKeyState("NumLock", "T") = 1 SetNumLockState, Off Else If GetKeyState("NumLock", "T") ...
by Rohwedder
02 May 2024, 00:00
Forum: Gaming
Topic: tap left shift and r to spam f
Replies: 4
Views: 453

Re: tap left shift and r to spam f

Then try:

Code: Select all

#Requires AutoHotkey v2.0
<+r:: { ; LShift & r
 SetKeyDelay 50
 While GetKeyState("r", "P") && GetKeyState("Lshift", "P")
  SendEvent "{Blind}f"
}

Go to advanced search