Search found 7625 matches
- Yesterday, 12:10
- Forum: Ask for Help (v1)
- Topic: Long press is not working Topic is solved
- Replies: 41
- Views: 527
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: 41
- Views: 527
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: 41
- Views: 527
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: 41
- Views: 527
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: 41
- Views: 527
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: 41
- Views: 527
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: 41
- Views: 527
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: 53
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: 41
- Views: 527
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: 31
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: 255
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: 255
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: 134
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: 134
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: 134
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++, ...
- 16 Apr 2024, 01:15
- Forum: Ask for Help (v2)
- Topic: Boilerplate current time Topic is solved
- Replies: 5
- Views: 80
Re: Boilerplate current time Topic is solved
Hallo,
perhaps?:
perhaps?:
Code: Select all
:?*X:,time::Send A_Hour ":" A_Min
- 16 Apr 2024, 01:07
- Forum: Ask for Help (v2)
- Topic: Executing ahk from the window of last mouse click
- Replies: 12
- Views: 255
Re: Executing ahk from the window of last mouse click
Autohotkey can recognise that you are left-clicking.
In your case, however, it must also recognise that you are left-clicking on this SCADA icon. I don't know if the required window spy infos is enough, but without it I don't see any possibility!
In your case, however, it must also recognise that you are left-clicking on this SCADA icon. I don't know if the required window spy infos is enough, but without it I don't see any possibility!
- 15 Apr 2024, 06:55
- Forum: Ask for Help (v2)
- Topic: Executing ahk from the window of last mouse click
- Replies: 12
- Views: 255
Re: Executing ahk from the window of last mouse click
Which dual monitor setup are you using? I.e. after the key combination Win + P on active desktop, which of the modes PC screen only Duplicate Extend second screen only is selected? What information shows Window Spy (right click AutoHotkey icon in tray) regarding this/these "icons(s) which can be acc...
- 11 Apr 2024, 09:57
- Forum: Gaming
- Topic: Newbie here! Need help before I pull my hair out!
- Replies: 2
- Views: 48
Re: Newbie here! Need help before I pull my hair out!
Hallo, for me, it was much more v1 than v2. Logically, Google doesn't know v2 that well yet. #Requires AutoHotkey v1.1.33 #Persistent SetTimer CheckProgram, 1000 return CheckProgram: If WinExist("ahk_exe gs2.exe") { SetTimer CheckProgram, Off ; ??? WinActivate ; ??? Send {Alt down}{Enter}{Alt up} } ...
- 11 Apr 2024, 09:35
- Forum: Ask for Help (v2)
- Topic: Issue with Building an Array Using a Loop Topic is solved
- Replies: 10
- Views: 268
Re: Issue with Building an Array Using a Loop Topic is solved
Hallo @teadrinker,
in your opinion, what would be the best translation of your v1 array example to v2?
in your opinion, what would be the best translation of your v1 array example to v2?