Hallo,
ControlSend is like praying.
Either your god or game hears you and reacts, or not.
Search found 7655 matches
- Today, 10:57
- Forum: Gaming
- Topic: How to send ControlClick to game window ragardless its active state?
- Replies: 1
- Views: 71
- Today, 10:31
- Forum: Gaming
- Topic: Change left clicks to right clicks at screen border
- Replies: 1
- Views: 38
Re: Change left clicks to right clicks at screen border
Hallo,
try:
try:
Code: Select all
#Requires AutoHotkey v2.0
SetTimer TEdge, 200
#HotIf Edge
LButton::RButton
#HotIf
TEdge() {
Global Edge
CoordMode("Mouse", "Screen"), MouseGetPos(&posX, &posY)
Edge := posX < 5 or posY < 5 or posX > 3835 or posY > 2155
}
- Today, 02:16
- Forum: Ask for Help (v2)
- Topic: Block input
- Replies: 1
- Views: 106
Re: Block input
Hallo,
try (not tested with MMO mouse):or:Such a big mouse with 12 side keys should better be called a rat.
try (not tested with MMO mouse):
Code: Select all
#Requires AutoHotkey v1.1.33
+F23 Up::BlockInput,% (Block:=!Block)?"On":"Off"
Code: Select all
#Requires AutoHotkey v2.0
+F23 Up:: {
Static Block := False
BlockInput (Block:=!Block)
}
- Today, 01:58
- Forum: Ask for Help (v2)
- Topic: Shortcut to Defender Real-Time protection dialog?
- Replies: 2
- Views: 146
Re: Shortcut to Defender Real-Time protection dialog?
Hallo,
try (only tested with Windows 10):
https://www.autohotkey.com/docs/v2/misc/CLSID-List.htm
try (only tested with Windows 10):
Code: Select all
#Requires AutoHotkey v2.0
q::Run "shell:::{4026492F-2F69-46B8-B9BF-5654FC07E423}"
- Today, 01:43
- Forum: Gaming Help (v1)
- Topic: i need help about my macro
- Replies: 1
- Views: 97
- Today, 01:05
- Forum: Ask for Help (v1)
- Topic: Get inputhook to trap function keys
- Replies: 2
- Views: 189
Re: Get inputhook to trap function keys
Hallo, see https://www.autohotkey.com/docs/v1/lib/InputHook.htm#VisibleNonText Controls whether keys or key combinations which do not produce text are visible (not blocked) . CurrentSetting is NewSetting if assigned, otherwise 1 (true) by default . The V option sets this to 1 (true). Just set to fal...
- Today, 00:44
- Forum: Ich brauche Hilfe
- Topic: Deutsche Hilfe für AHK v2 und v1
- Replies: 328
- Views: 172515
Re: Deutsche Hilfe für AHK v2 und v1
Hallo, auf https://ahkde.github.io/docs/v1/lib/InputHook.htm#VisibleText und https://ahkde.github.io/docs/v2/lib/InputHook.htm#VisibleText gehört doch bestimmt statt: Bestimmt, ob Tasten oder Tastenkombinationen, die Text erzeugen, sichtbar sind (blockiert werden). Bestimmt, ob Tasten oder Tastenkom...
- Yesterday, 02:47
- Forum: Ask for Help (v1)
- Topic: Long press is not working Topic is solved
- Replies: 66
- Views: 1773
Re: Long press is not working Topic is solved
Today keys like 1,2,3 and 4 randomly stopped working like "\" yesterday. No one is perfect, least of all computers! Add to your script(s): ~$*Esc:: KeyWait, Esc, T1 IF !ErrorLevel Return ; if held for less than 1 second SoundPlay, %A_WinDir%\Media\chord.wav, 1 For all, LF in [[0x1FF,"sc{:X}"],[0xFE...
- 24 Apr 2024, 00:49
- Forum: Ask for Help (v2)
- Topic: Condense Script: Help Referencing Variable in HotIf WinActive Topic is solved
- Replies: 2
- Views: 142
Re: Condense Script: Help Referencing Variable in HotIf WinActive Topic is solved
Hallo, try: #Requires AutoHotkey v2.0 #SingleInstance force ; skips the dialog box and replaces the old instance of the script automatically GroupAdd("Microsoft", "ahk_exe ONENOTE.EXE") ; Microsoft OneNote GroupAdd("Microsoft", "ahk_exe OUTLOOK.EXE") ; Microsoft Outlook GroupAdd("Microsoft", "ahk_ex...
- 24 Apr 2024, 00:19
- Forum: Ask for Help (v2)
- Topic: Inputhook not working on remap key
- Replies: 2
- Views: 92
Re: Inputhook not working on remap key
Hallo,
here it works with v2.0.13
here it works with v2.0.13
- 23 Apr 2024, 08:01
- Forum: Ask for Help (v1)
- Topic: Long press is not working Topic is solved
- Replies: 66
- Views: 1773
Re: Long press is not working Topic is solved
No problem here with US, GB and DE keyboard. Actually, the script should only react to modifier variations of the 1 key. Which keyboard layout are you using?: ; Hotkey F4 shows the keyboard scheme valid for the active window. ; The url calculation may not fit everywhere! Lang := {0x4090409:"United S...
- 23 Apr 2024, 02:03
- Forum: Ask for Help (v2)
- Topic: play sounds like old typewriter
- Replies: 4
- Views: 136
Re: play sounds like old typewriter
it generates many Key-down and one Key-up this is because auto-repeat . See: https://www.autohotkey.com/docs/v2/lib/Send.htm#Repeating_or_Holding_Down_a_Key It shows how to imitate this behaviour When a key is held down via the method above, it does not begin auto-repeating like it would if you wer...
- 22 Apr 2024, 03:37
- Forum: Ask for Help (v1)
- Topic: WinGet ProcessName doesn't work?
- Replies: 3
- Views: 90
Re: WinGet ProcessName doesn't work?
By default, User Account Control (UAC) protects "elevated" programs (that is, programs which are running as admin) from being automated by non-elevated programs, since that would allow them to bypass security restrictions. Hotkeys are also blocked, so for instance, a non-elevated program cannot spy...
- 22 Apr 2024, 03:04
- Forum: Ask for Help (v2)
- Topic: play sounds like old typewriter
- Replies: 4
- Views: 136
Re: play sounds like old typewriter
Hallo, something like this?: #SingleInstance Force #Requires AutoHotkey v2.- TraySetIcon "Shell32.dll", 174 ih := InputHook("VL0") ih.KeyOpt("{All}", "N") ih.OnKeyDown := OnKeyDown ih.OnKeyUp := OnKeyUp ih.VisibleText := True ih.MinSendLevel := 100 ih.Start() OnKeyDown(ih, vk, sc) { SoundPlay A_WinD...
- 22 Apr 2024, 02:25
- Forum: Spiele
- Topic: Wenn {w down} dann sollte Space die Alt-Taste sein
- Replies: 6
- Views: 144
Re: Wenn {w down} dann sollte Space die Alt-Taste sein
Kommt darauf an, wo im Skript dies steht! So, sollte es eigentlich funktionieren: #SingleInstance, Force SetKeyDelay, 0, 50 SetTitleMatchMode, 2 Menu, tray, Icon, e:\Games\Fallout 4\Fallout4.exe IfWinNotExist, Fallout4 Run, e:\Games\Fallout 4\Fallout 4.lnk WinWait, Fallout4 WinWaitClose, Fallout4 Ex...
- 22 Apr 2024, 01:59
- Forum: Ask for Help (v1)
- Topic: Long press is not working Topic is solved
- Replies: 66
- Views: 1773
Re: Long press is not working Topic is solved
Either $*1:: keywait, 1, T0.5 or $*1:: Switch, Morse() ! Both methods record your tapping of key 1. If both are arranged one after the other, the second method can no longer record anything, as you have already stopped tapping. Since Morse() is "more intelligent": #IFWinExist, ahk_exe notepad.exe $...
- 21 Apr 2024, 07:51
- Forum: Ask for Help (v1)
- Topic: suspend "screen off", or "sleep computer" problem
- Replies: 4
- Views: 113
Re: suspend "screen off", or "sleep computer" problem
Firstly, to capture the correct "numbers" after "SendMessage", where should one look? Additionally, I assume you run the script for a very short time, as the keys q and w (your shortcuts) are typically needed for other inputs. where should one look? Well, for professional programmers there are site...
- 21 Apr 2024, 03:03
- Forum: Ask for Help (v1)
- Topic: suspend "screen off", or "sleep computer" problem
- Replies: 4
- Views: 113
Re: suspend "screen off", or "sleep computer" problem
I have deactivated "sleep computer" and "hibernate computer". When I don't need my monitors, my script uses: q::SendMessage, 0x112, 0xF170, 2,, Program Manager ; monitors off w::SendMessage, 0x112, 0xF170, -1,, Program Manager ; monitors on Be patient! Switching the monitors off works quickly here, ...
- 20 Apr 2024, 13:30
- Forum: Ask for Help (v1)
- Topic: Long press is not working Topic is solved
- Replies: 66
- Views: 1773
Re: Long press is not working Topic is solved
Then try: #IFWinExist, ahk_exe notepad.exe $*d:: keywait, d, T0.5 if errorlevel { ; long press SoundBeep WinActivate ; activates ahk_exe notepad.exe WinWaitActive SendTimer(1, " ( LTrim Join C {100} ; Sleep 100 ms {Ctrl Down}{m}{Ctrl Up} ; ^m {1500} ; Sleep 1500 ms {Ctrl Down}{Shift Down}{v}{Shift U...
- 20 Apr 2024, 12:34
- Forum: Ask for Help (v1)
- Topic: Long press is not working Topic is solved
- Replies: 66
- Views: 1773
Re: Long press is not working Topic is solved
Try: #IFWinExist, ahk_exe notepad.exe $*d:: keywait, d, T0.5 if errorlevel { ; = long press SoundBeep WinActivate ; activate ahk_exe notepad.exe WinWaitActive Send Hello ; or SendTimer(... } else Send d ; short press keywait, d Return After a short press of d, a "d" is sent to the currently active w...