Search found 7608 matches

by Rohwedder
Yesterday, 06:55
Forum: Ask for Help (v2)
Topic: Executing ahk from the window of last mouse click
Replies: 6
Views: 161

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

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

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

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

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

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 ...
by Rohwedder
08 Apr 2024, 10:53
Forum: Scripts and Functions (v1)
Topic: [LIB] MDMF - Multiple Display Monitor Functions
Replies: 26
Views: 12502

Re: [LIB] MDMF - Multiple Display Monitor Functions

Hallo,
the v2-a108 example does not run with v2.0.12
Is there already an update?
by Rohwedder
08 Apr 2024, 02:24
Forum: Ask for Help (v1)
Topic: Get the monitor number that the mouse is in? Topic is solved
Replies: 4
Views: 102

Re: Get the monitor number that the mouse is in? Topic is solved

Hallo, try: Monitors := MDMF_Enum() q::ToolTip,% Monitors[MDMF_FromPoint()].Num "`nmonitor number that the mouse is in" ; iPhilip: https://www.autohotkey.com/boards/viewtopic.php?f=6&t=4606&p=266388#p266388 ; -------------------------------------------------------------------------------------------...
by Rohwedder
08 Apr 2024, 01:13
Forum: Ask for Help (v1)
Topic: Checking WinActive in terms of #x
Replies: 2
Views: 50

Re: Checking WinActive in terms of #x

Hallo,
the Autohotkey analogue to your send #%winx% is ControlSend
by Rohwedder
08 Apr 2024, 00:56
Forum: Ask for Help (v1)
Topic: How to press a button every X seconds without changing window focus?
Replies: 3
Views: 69

Re: How to press a button every X seconds without changing window focus?

Edit fields are window elements designed for entering text. In contrast to Send , ControlSend requires addressing elements so that Autohotkey can tell the operating system to which window and window element (Control) the keystrokes should be sent. When you're face to face with someone and want to sa...
by Rohwedder
07 Apr 2024, 09:19
Forum: Ask for Help (v1)
Topic: Long press is not working Topic is solved
Replies: 19
Views: 264

Re: Long press is not working Topic is solved

Laszlo's original has been in the scripts and functions section since time immemorial! https://www.autohotkey.com/board/topic/15574-morse-find-hotkey-press-and-hold-patterns/ but it failed with Hotkeys like ~LButton & w:: (Select text with the Lbutton down and then morse with w) I use ~LButton & ......
by Rohwedder
07 Apr 2024, 03:47
Forum: Ask for Help (v1)
Topic: Long press is not working Topic is solved
Replies: 19
Views: 264

Re: Long press is not working Topic is solved

Then try: #IFWinActive, ahk_exe notepad.exe $d:: Switch, Morse() { Case "0":Send d ;single short press sends d Case "1":Send e ; single long press sends e Case "00":Send f ; send "f" with double tapping of "d" key Default:MsgBox,, Pattern without Case,% Pattern, 3 } Return #IFWinActive Morse(Timeout...

Go to advanced search