Did you not see my comments?
; As soon as the start window is no longer active,
; the SendTimer is deactivated
To end the SendTimer, all you had to do was activate another window.
Search found 7630 matches
- Today, 09:50
- Forum: Ask for Help (v1)
- Topic: Long press is not working Topic is solved
- Replies: 47
- Views: 632
- Today, 09:30
- Forum: Spiele
- Topic: Wenn {w down} dann sollte Space die Alt-Taste sein
- Replies: 2
- Views: 36
Re: Wenn {w down} dann sollte Space die Alt-Taste sein
Hallo, nur diese Anforderung: "Es wäre schön wenn ich die w-Taste gedrückt habe und nur dann die Space -Taste die Funktion der Alt-Taste, aber auch nur dann sobald ich (w up) wieder aktiviere soll Space auch wieder Space sein.": #IF GetKeyState("w","P") ; wenn ich die w-Taste gedrückt habe #InputLev...
- Today, 07:33
- Forum: Ask for Help (v1)
- Topic: Long press is not working Topic is solved
- Replies: 47
- Views: 632
Re: Long press is not working Topic is solved
See https://www.autohotkey.com/docs/v1/lib/_IfWinActive.htm This directive is called "#IfWinActive,..." not "#If MouseOver(Win)"! #IfWinActive is only interested in which window is active and not which window the cursor is currently over. #IF MouseOver("ahk_class Notepad") LButton::SoundBeep ; beeps...
- Today, 01:35
- Forum: Ask for Help (v2)
- Topic: Can the Gui's close button be disabled
- Replies: 4
- Views: 81
Re: Can the Gui's close button be disabled
Hallo,
try:
"Min": 0xF020
"Max": 0xF030
"Close": 0xF060
try:
Code: Select all
#Requires AutoHotkey v2.0
MyGui := Gui()
DllCall("user32\DeleteMenu", "UInt", DllCall("user32\GetSystemMenu"
, "UInt", MyGui.Hwnd, "UInt", False), "UInt", 0xF060, "UInt", 0)
MyGui.Show("w200 h50")
"Max": 0xF030
"Close": 0xF060
- Today, 00:42
- Forum: Gaming Help (v1)
- Topic: Macro F4 to F1
- Replies: 2
- Views: 40
Re: Macro F4 to F1
Hallo, try: q::Send,% "{F" (++M:=Mod((!M M)+2, 4)) "}" ; F4 to F1 cyclic w::Send,% "{F" (++P:=Mod(0 P, 4)) "}" ; F1 to F4 cyclic To test this method: ; Separate counters M, P (M=Minus, P=Plus) F1::ToolTip,% "M = " ++M:=Mod((!M M)+2, 4) ; 4 to 1 cyclic F2::ToolTip,% "P = " ++P:=Mod(0 P, 4) ; 1 - 4 cy...
- Yesterday, 12:10
- Forum: Ask for Help (v1)
- Topic: Long press is not working Topic is solved
- Replies: 47
- Views: 632
Re: Long press is not working Topic is solved
I had to try to split the following line into 2 separate scripts, one for ^+V and L. Separate scripts? i.e. separate .ahk files? I do not understand! Splitting the SendTimer Output into even more lines for the purpose of commenting works like this: keywait, d, T0.5 if errorlevel { ; long press star...
- Yesterday, 09:39
- Forum: Ask for Help (v1)
- Topic: Long press is not working Topic is solved
- Replies: 47
- Views: 632
Re: Long press is not working Topic is solved
Curious. Why is command 1/3 (^M) is in one line but commands 2&3/3 are in the same line (^+V and L)? TY. Reason: I find overlong script lines unattractive! See https://www.autohotkey.com/docs/v1/Scripts.htm#continuation Method #1: A line that starts with "and", "or", ||, &&, a comma, or a period is...
- Yesterday, 01:34
- Forum: Ask for Help (v1)
- Topic: Long press is not working Topic is solved
- Replies: 47
- Views: 632
Re: Long press is not working Topic is solved
Perhaps the lower case letter {l} is required or a longer keystroke time {l Down}{50}{l Up}?
If you have found a working SendTimer Output, try to find out whether it also works without:
keywait, d ; after the D key has been released
If you have found a working SendTimer Output, try to find out whether it also works without:
keywait, d ; after the D key has been released
- 17 Apr 2024, 11:15
- Forum: Ask for Help (v1)
- Topic: Long press is not working Topic is solved
- Replies: 47
- Views: 632
Re: Long press is not working Topic is solved
I have placed a Sleep 100 before the ^m: #IFWinActive, ahk_exe notepad.exe $*d:: ; $* both modifier required! keywait, d, T0.5 if errorlevel { ; long press starts SendTimer no. 1: SoundBeep ; Sleep 100, ^m, Sleep 1500, ^+v, Sleep 500, L keywait, d ; after the D key has been released SendTimer(1, "{1...
- 17 Apr 2024, 10:32
- Forum: Ask for Help (v1)
- Topic: Long press is not working Topic is solved
- Replies: 47
- Views: 632
Re: Long press is not working Topic is solved
Have you forgotten to add or include the SendTimer functions?
- 17 Apr 2024, 10:05
- Forum: Ask for Help (v1)
- Topic: Long press is not working Topic is solved
- Replies: 47
- Views: 632
Re: Long press is not working Topic is solved
only soundbeep and ^M worked. ^+V and L did not work Perhaps your work application was disturbed by the D key still being pressed? In this version, the SendTimer is only started after the D key has been released: #IFWinActive, ahk_exe notepad.exe $*d:: ; $* both modifier required! keywait, d, T0.5 ...
- 17 Apr 2024, 07:33
- Forum: Ask for Help (v1)
- Topic: Long press is not working Topic is solved
- Replies: 47
- Views: 632
Re: Long press is not working Topic is solved
Try: #IFWinActive, ahk_exe notepad.exe $*d:: Switch, Morse() { Case "0":SendTimer(5, "single short press`n",-200) ;single short press writes "single short press" with 200ms/character Case "1":Send e ; single long press sends e Case "00":Send f ; send "f" with double tapping of "d" key Case "000":Sen...
- 17 Apr 2024, 01:57
- Forum: Ask for Help (v1)
- Topic: How to fix failing physical mouse button Topic is solved
- Replies: 2
- Views: 64
Re: How to fix failing physical mouse button Topic is solved
Hallo,
try:
try:
Code: Select all
*XButton2::
Click, X2 Down
Loop {
KeyWait, XButton2
KeyWait, XButton2, DT.2
} Until, ErrorLevel
Click, X2 Up
Return
- 17 Apr 2024, 01:06
- Forum: Ask for Help (v1)
- Topic: Long press is not working Topic is solved
- Replies: 47
- Views: 632
Re: Long press is not working Topic is solved
Then: #IFWinActive, ahk_exe notepad.exe $*d:: ; $* both modifier required! keywait, d, T0.5 if errorlevel { SoundBeep SendTimer(1, " ; long press starts SendTimer no. 1 ( LTrim Join C {Ctrl Down}{Shift Down}{h}{Shift Up}{Ctrl Up} ; ^+h {100} ; Sleep 100 {Ctrl Down}{m}{Ctrl Up} ; ^m {500} ; Sleep 500...
- 16 Apr 2024, 11:11
- Forum: Ask for Help (v1)
- Topic: how to change special function key in kinesis keyboard
- Replies: 2
- Views: 32
Re: how to change special function key in kinesis keyboard
Hallo,
Autohotkey should at least recognise this key! Try: https://www.autohotkey.com/docs/v2/KeyList.htm#SpecialKeys
In the unlikely event that it works, Autohotkey could tap it a second time after releasing the key.
Autohotkey should at least recognise this key! Try: https://www.autohotkey.com/docs/v2/KeyList.htm#SpecialKeys
In the unlikely event that it works, Autohotkey could tap it a second time after releasing the key.
- 16 Apr 2024, 10:57
- Forum: Ask for Help (v2)
- Topic: Executing ahk from the window of last mouse click
- Replies: 12
- Views: 258
Re: Executing ahk from the window of last mouse click
Just a start!: #Requires AutoHotkey v2.0 ~LButton:: { ; left click down ; The moment the user clicks on this icon an ahk script has to be executed. Static XLeft:=275, YUp:=181, XRight:=306, YDown:=212, WinOld:=0 CoordMode "Mouse", "Screen" ; X... Y... = Icon area MouseGetPos &X, &Y, &Win ; Cursor co...
- 16 Apr 2024, 08:31
- Forum: Ask for Help (v2)
- Topic: Executing ahk from the window of last mouse click
- Replies: 12
- Views: 258
Re: Executing ahk from the window of last mouse click
Only if this coordinate area (icon area) is the same each time. Otherwise, for example, a unique ClassNN would be better.
- 16 Apr 2024, 07:08
- Forum: Ask for Help (v2)
- Topic: Change screen resolution Rev. 1
- Replies: 8
- Views: 142
Re: Change screen resolution Rev. 1
Why do you want to convert this v1.1 function? Put it in a v1.1 script and call it with your v2 script via run with parameter passing.
- 16 Apr 2024, 04:06
- Forum: Ask for Help (v2)
- Topic: Change screen resolution Rev. 1
- Replies: 8
- Views: 142
Re: Change screen resolution Rev. 1
I am not a DllCall expert (otherwise I wouldn't need such help scripts) but so far it has worked like this.
- 16 Apr 2024, 03:45
- Forum: Ask for Help (v2)
- Topic: Change screen resolution Rev. 1
- Replies: 8
- Views: 142
Re: Change screen resolution Rev. 1
Hallo, when I have to do this annoying (v1: VarSetCapacity -> v2: Buffer) translation, I always look at these examples: #Requires AutoHotkey v1.1.33 OnExit("ClipCursor") Confine := False q:: ; lock mouse in place On/Off CoordMode, Mouse, Screen MouseGetPos, x, y ClipCursor(Confine := !Confine, x++, ...