Search found 7616 matches

by Rohwedder
Today, 11:11
Forum: Ask for Help (v1)
Topic: how to change special function key in kinesis keyboard
Replies: 2
Views: 21

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.
by Rohwedder
Today, 10:57
Forum: Ask for Help (v2)
Topic: Executing ahk from the window of last mouse click
Replies: 12
Views: 242

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...
by Rohwedder
Today, 08:31
Forum: Ask for Help (v2)
Topic: Executing ahk from the window of last mouse click
Replies: 12
Views: 242

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.
by Rohwedder
Today, 07:08
Forum: Ask for Help (v2)
Topic: Change screen resolution Rev. 1
Replies: 8
Views: 128

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.
by Rohwedder
Today, 04:06
Forum: Ask for Help (v2)
Topic: Change screen resolution Rev. 1
Replies: 8
Views: 128

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.
by Rohwedder
Today, 03:45
Forum: Ask for Help (v2)
Topic: Change screen resolution Rev. 1
Replies: 8
Views: 128

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++, ...
by Rohwedder
Today, 01:15
Forum: Ask for Help (v2)
Topic: Boilerplate current time
Replies: 2
Views: 33

Re: Boilerplate current time

Hallo,
perhaps?:

Code: Select all

:?*X:,time::Send A_Hour ":" A_Min
by Rohwedder
Today, 01:07
Forum: Ask for Help (v2)
Topic: Executing ahk from the window of last mouse click
Replies: 12
Views: 242

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!
by Rohwedder
Yesterday, 06:55
Forum: Ask for Help (v2)
Topic: Executing ahk from the window of last mouse click
Replies: 12
Views: 242

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...
by Rohwedder
11 Apr 2024, 09:57
Forum: Gaming
Topic: Newbie here! Need help before I pull my hair out!
Replies: 2
Views: 42

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

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?
by Rohwedder
11 Apr 2024, 01:20
Forum: Gaming Help (v1)
Topic: Pause, STOP, restart.
Replies: 2
Views: 37

Re: Pause, STOP, restart.

Hallo, how to avoid long Sleep : NumpadDot:: ; on/off IF !toggle := !toggle { SetTimer, T1, Off SetTimer, T2, Off Return } Counter = 100 T0: controlsend, , {a Down}{p Down}{w up}, ahk_exe javaw.exe SetTimer, T1, -69000 Return T1: controlsend, , {a Up}{w Down}, ahk_exe javaw.exe sleep 1000 controlsen...
by Rohwedder
10 Apr 2024, 03:01
Forum: Ich brauche Hilfe
Topic: Deutsche Hilfe für AHK v2 und v1
Replies: 326
Views: 170920

Re: Deutsche Hilfe für AHK v2 und v1

Hallo,
auf https://ahkde.github.io/docs/v2/Objects.htm#Extended_Usage 2. Skript
sollte this.Width durch this.Breite ersetzt werden, um einen Fehler zu vermeiden
(und eigentlich auch this.Length durch this.Länge was jedoch hier einen Fehler erzeugt)
by Rohwedder
10 Apr 2024, 02:02
Forum: Gaming Help (v1)
Topic: Multiple Keys, but cancel each other
Replies: 1
Views: 41

Re: Multiple Keys, but cancel each other

Hallo, try: F2::SetTimer, PressTheKey, % (F2:=!F2) ? 50 : "Off" PressTheKey: Send, {Insert} Return F3::SetTimer, PressTheKey2, % (F3:=!F3) ? 50 : "Off" PressTheKey2: Send, {End} Return or: F2::SetTimer, F2 Up, % (F2:=!F2) ? 50 : "Off" F2 Up::Send,% F2 ? "{Insert}" : "" F3::SetTimer, F3 Up, % (F3:=!F...
by Rohwedder
10 Apr 2024, 01:33
Forum: Gaming Help (v1)
Topic: Mouse Movement in Game [FPS] to Target Coordinates - Help
Replies: 5
Views: 151

Re: Mouse Movement in Game [FPS] to Target Coordinates - Help

Hallo, unfortunately, I have to say no. I am a complete non-gamer and only know these problems with FPS games from the Autohotkey forum. Just to study these problems, I downloaded a few free, supposedly offline FPS games, but always got a prompt to create an account - nope, never - uninstall. Do you...
by Rohwedder
09 Apr 2024, 11:23
Forum: Ask for Help (v1)
Topic: Add a period if required
Replies: 2
Views: 38

Re: Add a period if required

Hallo,
try:

Code: Select all

str := "First sentence.`nHere is something`nThird sentence!`nHere again`nLast sentence?"
str := RegExReplace(str, "`am)([^[:punct:]]$)", "$1.")
MsgBox,% str
by Rohwedder
09 Apr 2024, 09:57
Forum: Ask for Help (v1)
Topic: Double click of mouse selects text without trailing whitespace
Replies: 3
Views: 83

Re: Double click of mouse selects text without trailing whitespace

I understood exactly what you wanted, tried out your script and lo and behold: it didn't work! Whitespace to the right of a selected word remained selected! At first I suspected that it was my file explorer setting: "Single-click to open an item (point to select)" but that was not the case. Well, wh...
by Rohwedder
09 Apr 2024, 01:07
Forum: Gaming Help (v1)
Topic: Need help with looping my script Topic is solved
Replies: 2
Views: 54

Re: Need help with looping my script Topic is solved

Hallo, try: F7::ExitApp F8:: Loop { Send {s down} Sleep, 1000 Send {s up} Sleep, 4000 Send {w down} Sleep, 3960 Send {w up} Sleep, 1000 ;HARVEST ; E double press to harvest and reseed, works perfectly Send {e down} Sleep, 1000 Send {e up} Sleep, 1000 Send {e down} Sleep, 1000 Send {e up} Sleep, 1000...

Go to advanced search