Search found 7614 matches

by Rohwedder
Today, 08:31
Forum: Ask for Help (v2)
Topic: Executing ahk from the window of last mouse click
Replies: 10
Views: 210

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

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

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

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

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: 10
Views: 210

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: 10
Views: 210

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

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

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

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:42
Forum: Ask for Help (v2)
Topic: Keyboard a4tech kv-300h and FN-key
Replies: 2
Views: 37

Re: Keyboard a4tech kv-300h and FN-key

Hallo,
unfortunately you have to try it yourself:
https://www.autohotkey.com/docs/v2/KeyList.htm#SpecialKeys
by Rohwedder
10 Apr 2024, 03:01
Forum: Ich brauche Hilfe
Topic: Deutsche Hilfe für AHK v2 und v1
Replies: 326
Views: 170889

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

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

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

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

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...
by Rohwedder
09 Apr 2024, 00:50
Forum: Gaming Help (v1)
Topic: Mouse to WASD Topic is solved
Replies: 15
Views: 2960

Re: Mouse to WASD Topic is solved

Hallo, 1. I corrected errors in this script 2. Maybe with admin rights?: #SingleInstance, Force If !A_IsAdmin Try Run *RunAs "%A_ScriptFullPath%" Directions := ["sd","s","as","a","wa","w","wd","d"] ; down+right,right,up+right,up,... counterclockwise keypress := "" RButton:: CoordMode, Mouse, Screen ...

Go to advanced search