Search found 7718 matches

by Rohwedder
Today, 01:36
Forum: Ask for Help (v1)
Topic: How to program a "hard space"
Replies: 5
Views: 258

Re: How to program a "hard space"

Hallo,
or:

Code: Select all

:B0C*:Mr ::{Bs}{U+A0}
by Rohwedder
Yesterday, 08:43
Forum: Ask for Help (v1)
Topic: Need a double click script Topic is solved
Replies: 11
Views: 605

Re: Need a double click script Topic is solved

Then: #InstallMouseHook #IF GetKeyState("XButton1","P") *XButton2:: #IF GetKeyState("XButton2","P") *XButton1:: #IF Send, {Blind}{XButton1 Up}{XButton2 Up} SetTimer, double_clicking, 200 double_clicking: If GetKeyState("XButton1","P") And GetKeyState("XButton2","P") Click 2 Else SetTimer, double_cli...
by Rohwedder
Yesterday, 04:14
Forum: Ask for Help (v1)
Topic: Need a double click script Topic is solved
Replies: 11
Views: 605

Re: Need a double click script Topic is solved

I don't know the behavior of a physical double-click mouse button, but I assume it doesn't continuously send double-clicks when held down: Try: #Persistent #InstallMouseHook #IF GetKeyState("XButton1","P") *XButton2::Send, {Blind}{XButton1 Up}{LButton 2} #IF GetKeyState("XButton2","P") *XButton1::Se...
by Rohwedder
Yesterday, 00:51
Forum: Gaming Help (v1)
Topic: Sending key down behaves like key press (down then up)
Replies: 2
Views: 134

Re: Sending key down behaves like key press (down then up)

Hallo, Until today, that action would generate an endless series of "x" characters just as happens when I actually press and hold the "x" key (like a game, the editor "thinks" I'm holding the key down). This behavior is called auto-repeat a driver/hardware feature https://www.autohotkey.com/docs/v2/...
by Rohwedder
Yesterday, 00:21
Forum: Ask for Help (v1)
Topic: Need a double click script Topic is solved
Replies: 11
Views: 605

Re: Need a double click script Topic is solved

Maybe this the other app doesn't like that the XButton1+2 are pressed? Try: #Persistent #InstallMouseHook SetTimer, double_clicking, 200 double_clicking: If GetKeyState("XButton1","P") And GetKeyState("XButton2","P") { Send,% GetKeyState("XButton1")?"{Blind}{XButton1 Up}{XButton2 Up}":"" Click 2 } R...
by Rohwedder
20 May 2024, 10:37
Forum: Ask for Help (v1)
Topic: Need a double click script Topic is solved
Replies: 11
Views: 605

Re: Need a double click script Topic is solved

Hallo,
perhaps?:

Code: Select all

#Persistent
#InstallMouseHook
SetTimer, double_clicking, 200
double_clicking:
If GetKeyState("XButton1","P") And GetKeyState("XButton2","P")
	Click 2
Return
by Rohwedder
20 May 2024, 02:37
Forum: Ask for Help (v2)
Topic: Reopen Last closed window script (v1 -> v2) Topic is solved
Replies: 9
Views: 492

Re: Reopen Last closed window script (v1 -> v2) Topic is solved

Hallo, only If your Explorer shows full path in Address Bar! https://www.thewindowsclub.com/make-windows-10-always-display-full-path-in-file-explorer-address-bar#:~:text=In%20the%20folder%20options%2C%20navigate%20to%20the%20tab,title%20bar.%20Click%20on%20Apply%2C%20and%20then%20OK #Requires AutoHo...
by Rohwedder
20 May 2024, 01:24
Forum: Gaming Help (v1)
Topic: Continous scroll wheel input (maybe a ffew hundred milliseconds)
Replies: 5
Views: 460

Re: Continous scroll wheel input (maybe a ffew hundred milliseconds)

I suggest the following structure: ; #Persistent ; not necessary as Hotkeys are in the script toggle := false paused := false F12::SetTimer, Minecraft,% (toggle:=!toggle)?100:"Off" ;toggles: every 100 ms/off Minecraft: WinActivate, Minecraft* 1.20.4 - Singleplayer ahk_class GLFW30 if (paused) Return...
by Rohwedder
19 May 2024, 03:05
Forum: Bug Reports
Topic: WinWaitClose blocks Timer call
Replies: 2
Views: 132

Re: WinWaitClose blocks Timer call

Should have thought of that myself!
by Rohwedder
19 May 2024, 02:10
Forum: Gaming Help (v1)
Topic: Continous scroll wheel input (maybe a ffew hundred milliseconds)
Replies: 5
Views: 460

Re: Continous scroll wheel input (maybe a ffew hundred milliseconds)

Hallo, too little code to say anything, except: Send, {LShift Up} is not executed, see: #InstallKeybdHook #InstallMouseHook Click, 1217, 462, 0 Send, {LShift Up} Sleep, 15 Click, 1218, 461, 0 Sleep, 47 Click, WheelUp Sleep, 47 KeyHistory perhaps?: *LShift::TimerOn("Continous_scroll_wheel_input", 200...
by Rohwedder
19 May 2024, 01:49
Forum: Ask for Help (v1)
Topic: WinWaitClose prevents other timer?
Replies: 3
Views: 370

Re: WinWaitClose prevents other timer?

two() is called during the runtime of one() and thus blocked one() . Try these with and without Critical : #Persistent DetectHiddenWindows, On one() { Critical ; <<< SoundBeep, 4000, 20 } two() { SoundBeep, 1000, 20 WinWaitClose, ahk_id %A_ScriptHwnd% } SetTimer, one, 1000 SetTimer, two, 2000
by Rohwedder
19 May 2024, 01:47
Forum: Bug Reports
Topic: WinWaitClose blocks Timer call
Replies: 2
Views: 132

WinWaitClose blocks Timer call

Hallo, The manual says about WinWaitClose: https://www.autohotkey.com/docs/v1/lib/WinWaitClose.htm#Remarks While the command is in a waiting state, new threads can be launched via hotkey, custom menu item, or timer. But that obviously doesn't always work!: #Requires AutoHotkey v1.1.33 #Persistent De...
by Rohwedder
17 May 2024, 00:22
Forum: Ask for Help (v1)
Topic: The window doesnt fit in the screen
Replies: 2
Views: 350

Re: The window doesnt fit in the screen

Hallo, if the Stardock app really hides the taskbar: +#z:: ;; left half screen #z:: ;; right half screen hWnd := WinExist("A") WinGet, MinMax, MinMax if MinMax WinRestore WinGetPos,, Y_TaskBar,,, ahk_class Shell_TrayWnd if !Y_TaskBar ; if Stardock App has hidden the taskbar Y_TaskBar := A_ScreenHeig...
by Rohwedder
15 May 2024, 09:52
Forum: Ask for Help (v1)
Topic: Wrong value sent
Replies: 2
Views: 442

Re: Wrong value sent

Hallo,
I have no idea how this '04' is created, but try replacing

Code: Select all

Send Athens, Greece
with

Code: Select all

Send {Text}Athens, Greece
by Rohwedder
14 May 2024, 05:43
Forum: Ask for Help (v2)
Topic: Basic hotkey translation?
Replies: 8
Views: 269

Re: Basic hotkey translation?

Hallo,
try:

Code: Select all

#Requires AutoHotkey v2.0
; instructs AHK to only do these conversions
; when an Notpad window is active
#HotIf WinActive("ahk_exe notepad.exe")
Numpad1::Alt
NumpadEnd::Alt
Numpad2::MButton
NumpadDown::MButton
#HotIf
by Rohwedder
14 May 2024, 02:07
Forum: Ask for Help (v1)
Topic: Need help with targetting a background window for spam keys Topic is solved
Replies: 2
Views: 371

Re: Need help with targetting a background window for spam keys Topic is solved

Hallo, perhaps??: F5:: ;On/Off with key F5 If SendEactive := !SendEactive SetTimer SendE, 200 ;spams every 200ms Else SetTimer SendE, Off Return SendE: ;spams key e ControlSend,, {e Down}, xyz Sleep, 30 ControlSend,, {e Up}, xyz Return F4:: ;On/Off with key F4 If Send3active := !Send3active SetTimer...
by Rohwedder
14 May 2024, 01:48
Forum: Ask for Help (v1)
Topic: Menu Which Selects Paragraphs?
Replies: 6
Views: 561

Re: Menu Which Selects Paragraphs?

Hallo, perhaps?: FilePath= C:\RunningListOClip.txt FileRead, Contents, %FilePath% Sleep, 1000 Clipboard:= Contents Sleep, 1000 Return #z:: For each, line in StrSplit(Contents, "`r", "`n") Menu, scripts, Add, %line%, Execute Menu, scripts, Show Return Execute: P1 := InStr(Contents, A_ThisMenuItem) P2...
by Rohwedder
13 May 2024, 23:45
Forum: Ask for Help (v1)
Topic: help with a script for moving in a circle when pressing "x" Topic is solved
Replies: 4
Views: 597

Re: help with a script for moving in a circle when pressing "x" Topic is solved

Perhaps the speed needs to be reduced? Try:

Code: Select all

x::
N:=0, Keys:=["w Down","a Up","d Down"
,"w Up","s Down","d Up","a Down","s Up"]
While, GetKeyState("x","P") {
	SendEvent,% "{" Keys[++N:=Mod(N, 8)] "}"
	Sleep, 50
}
SendEvent, {a Up}{w Up}{d Up}{s Up}
Return
by Rohwedder
13 May 2024, 12:46
Forum: Ask for Help (v2)
Topic: If a key is held, send [action] every [length of time]. Just send keypress if tapped.
Replies: 1
Views: 206

Re: If a key is held, send [action] every [length of time]. Just send keypress if tapped.

Hallo,
try:

Code: Select all

#Requires AutoHotkey v2.0
$Up::Send(Keywait("Up", "T.5")?"{Up}":"q"), Keywait("Up")
$Down::Send(Keywait("Down", "T.5")?"{Down}":"w"), Keywait("Down")
You have to test whether the script can press the fn key
https://www.autohotkey.com/docs/v2/KeyList.htm#SpecialKeys
by Rohwedder
13 May 2024, 11:17
Forum: Ask for Help (v1)
Topic: WinWaitClose prevents other timer?
Replies: 3
Views: 370

Re: WinWaitClose prevents other timer?

Hallo, in your timer one() is a sleep 3000 i.e. 3 seconds. With SetTimer, one, 1000 you demand that the script should sleep for three seconds every second? Do you manage to sleep 72 hours every day? A script cannot do several things at the same time! It cannot sleep (Sleep) and wait for a window to ...

Go to advanced search