Search found 7710 matches
- Yesterday, 03:05
- Forum: Bug Reports
- Topic: WinWaitClose blocks Timer call
- Replies: 2
- Views: 90
Re: WinWaitClose blocks Timer call
Should have thought of that myself!
- Yesterday, 02:10
- Forum: Gaming Help (v1)
- Topic: Continous scroll wheel input (maybe a ffew hundred milliseconds)
- Replies: 4
- Views: 331
Re: Continous scroll wheel input (maybe a ffew hundred milliseconds)
Hallo, too little code to say anything, except: Send, {LShift Up} is not executed, see: #InstallKeybdHook #InstallMouseHook Click, 1217, 462, 0 Send, {LShift Up} Sleep, 15 Click, 1218, 461, 0 Sleep, 47 Click, WheelUp Sleep, 47 KeyHistory perhaps?: *LShift::TimerOn("Continous_scroll_wheel_input", 200...
- Yesterday, 01:49
- Forum: Ask for Help (v1)
- Topic: WinWaitClose prevents other timer?
- Replies: 3
- Views: 324
Re: WinWaitClose prevents other timer?
two() is called during the runtime of one() and thus blocked one() . Try these with and without Critical : #Persistent DetectHiddenWindows, On one() { Critical ; <<< SoundBeep, 4000, 20 } two() { SoundBeep, 1000, 20 WinWaitClose, ahk_id %A_ScriptHwnd% } SetTimer, one, 1000 SetTimer, two, 2000
- Yesterday, 01:47
- Forum: Bug Reports
- Topic: WinWaitClose blocks Timer call
- Replies: 2
- Views: 90
WinWaitClose blocks Timer call
Hallo, The manual says about WinWaitClose: https://www.autohotkey.com/docs/v1/lib/WinWaitClose.htm#Remarks While the command is in a waiting state, new threads can be launched via hotkey, custom menu item, or timer. But that obviously doesn't always work!: #Requires AutoHotkey v1.1.33 #Persistent De...
- 17 May 2024, 00:22
- Forum: Ask for Help (v1)
- Topic: The window doesnt fit in the screen
- Replies: 2
- Views: 313
Re: The window doesnt fit in the screen
Hallo, if the Stardock app really hides the taskbar: +#z:: ;; left half screen #z:: ;; right half screen hWnd := WinExist("A") WinGet, MinMax, MinMax if MinMax WinRestore WinGetPos,, Y_TaskBar,,, ahk_class Shell_TrayWnd if !Y_TaskBar ; if Stardock App has hidden the taskbar Y_TaskBar := A_ScreenHeig...
- 15 May 2024, 09:52
- Forum: Ask for Help (v1)
- Topic: Wrong value sent
- Replies: 2
- Views: 429
Re: Wrong value sent
Hallo,
I have no idea how this '04' is created, but try replacing with
I have no idea how this '04' is created, but try replacing
Code: Select all
Send Athens, Greece
Code: Select all
Send {Text}Athens, Greece
- 14 May 2024, 05:43
- Forum: Ask for Help (v2)
- Topic: Basic hotkey translation?
- Replies: 8
- Views: 259
Re: Basic hotkey translation?
Hallo,
try:
try:
Code: Select all
#Requires AutoHotkey v2.0
; instructs AHK to only do these conversions
; when an Notpad window is active
#HotIf WinActive("ahk_exe notepad.exe")
Numpad1::Alt
NumpadEnd::Alt
Numpad2::MButton
NumpadDown::MButton
#HotIf
- 14 May 2024, 02:07
- Forum: Ask for Help (v1)
- Topic: Need help with targetting a background window for spam keys Topic is solved
- Replies: 2
- Views: 360
Re: Need help with targetting a background window for spam keys Topic is solved
Hallo, perhaps??: F5:: ;On/Off with key F5 If SendEactive := !SendEactive SetTimer SendE, 200 ;spams every 200ms Else SetTimer SendE, Off Return SendE: ;spams key e ControlSend,, {e Down}, xyz Sleep, 30 ControlSend,, {e Up}, xyz Return F4:: ;On/Off with key F4 If Send3active := !Send3active SetTimer...
- 14 May 2024, 01:48
- Forum: Ask for Help (v1)
- Topic: Menu Which Selects Paragraphs?
- Replies: 6
- Views: 544
Re: Menu Which Selects Paragraphs?
Hallo, perhaps?: FilePath= C:\RunningListOClip.txt FileRead, Contents, %FilePath% Sleep, 1000 Clipboard:= Contents Sleep, 1000 Return #z:: For each, line in StrSplit(Contents, "`r", "`n") Menu, scripts, Add, %line%, Execute Menu, scripts, Show Return Execute: P1 := InStr(Contents, A_ThisMenuItem) P2...
- 13 May 2024, 23:45
- Forum: Ask for Help (v1)
- Topic: help with a script for moving in a circle when pressing "x" Topic is solved
- Replies: 4
- Views: 567
Re: help with a script for moving in a circle when pressing "x" Topic is solved
Perhaps the speed needs to be reduced? Try:
Code: Select all
x::
N:=0, Keys:=["w Down","a Up","d Down"
,"w Up","s Down","d Up","a Down","s Up"]
While, GetKeyState("x","P") {
SendEvent,% "{" Keys[++N:=Mod(N, 8)] "}"
Sleep, 50
}
SendEvent, {a Up}{w Up}{d Up}{s Up}
Return
- 13 May 2024, 12:46
- Forum: Ask for Help (v2)
- Topic: If a key is held, send [action] every [length of time]. Just send keypress if tapped.
- Replies: 1
- Views: 188
Re: If a key is held, send [action] every [length of time]. Just send keypress if tapped.
Hallo,
try:
You have to test whether the script can press the fn key
https://www.autohotkey.com/docs/v2/KeyList.htm#SpecialKeys
try:
Code: Select all
#Requires AutoHotkey v2.0
$Up::Send(Keywait("Up", "T.5")?"{Up}":"q"), Keywait("Up")
$Down::Send(Keywait("Down", "T.5")?"{Down}":"w"), Keywait("Down")
https://www.autohotkey.com/docs/v2/KeyList.htm#SpecialKeys
- 13 May 2024, 11:17
- Forum: Ask for Help (v1)
- Topic: WinWaitClose prevents other timer?
- Replies: 3
- Views: 324
Re: WinWaitClose prevents other timer?
Hallo, in your timer one() is a sleep 3000 i.e. 3 seconds. With SetTimer, one, 1000 you demand that the script should sleep for three seconds every second? Do you manage to sleep 72 hours every day? A script cannot do several things at the same time! It cannot sleep (Sleep) and wait for a window to ...
- 13 May 2024, 07:28
- Forum: Ask for Help (v1)
- Topic: help with a script for moving in a circle when pressing "x" Topic is solved
- Replies: 4
- Views: 567
Re: help with a script for moving in a circle when pressing "x" Topic is solved
Hallo,
try:
try:
Code: Select all
x::
N:=0, Keys:=["w Down","a Up","d Down"
,"w Up","s Down","d Up","a Down","s Up"]
While, GetKeyState("x","P")
SendInput,% "{" Keys[++N:=Mod(N, 8)] "}"
Send, {a Up}{w Up}{d Up}{s Up}
Return
- 12 May 2024, 11:44
- Forum: Ask for Help (v2)
- Topic: ByRef - Default value - is it possible at the same time?
- Replies: 1
- Views: 184
Re: ByRef - Default value - is it possible at the same time?
Hallo, try: #Requires AutoHotkey v2.0 #SingleInstance Force A := 1, B:= 2, Yes := "No" tstDef(&A, &B) MsgBox A "," B "," Yes ; A,100,Yes tstDef(&val1, &val2, val3:="Yes") { Global val1 := "A" val2 := 100 %val3% := val3 } Regarding %val3% := val3 see https://www.autohotkey.com/docs/v2/Variables.htm#...
- 12 May 2024, 10:57
- Forum: Ask for Help (v2)
- Topic: How to wait for the key "AltGr" to be pressed down or released ?
- Replies: 2
- Views: 183
Re: How to wait for the key "AltGr" to be pressed down or released ?
Hallo,
try:
try:
Code: Select all
#Requires AutoHotkey v2.0
F12:: {
if KeyWait("RAlt", "d")
MsgBox("AltGr or RAlt")
}
- 12 May 2024, 05:42
- Forum: Gaming Help (v1)
- Topic: How do i run on keydown
- Replies: 3
- Views: 249
Re: How do i run on keydown
Then:
Code: Select all
LAlt::SoundBeep ; left Alt Key: triggered on keydown input
RAlt::SoundBeep ; right Alt Key: triggered on keydown input
- 12 May 2024, 02:22
- Forum: Ask for Help (v2)
- Topic: About using PixelSearch for a single pixel Topic is solved
- Replies: 2
- Views: 223
Re: About using PixelSearch for a single pixel Topic is solved
Hallo, I compared it with a PixelMatchColor2() based on ImageSearch. Result: No relevant difference in speed! Try: #Requires AutoHotkey v2.0 CoordMode "Pixel", "Screen" q:: { x:=100, y:=100 , Color := 0x2D7D9B, Variance := 10 T := A_TickCount Loop 100 PixelMatchColor(x, y, Color, Variance) T1 := A_T...
- 12 May 2024, 00:24
- Forum: Ask for Help (v2)
- Topic: How to Send text as one string?
- Replies: 6
- Views: 463
- 11 May 2024, 10:56
- Forum: Ask for Help (v2)
- Topic: Subscripts
- Replies: 8
- Views: 342
Re: Subscripts
Hallo, try: #Requires AutoHotkey v2.0 #SingleInstance char := Map( 'a', Chr(8336) , 'e', Chr(8337) , 'h', Chr(8341) , 'i', Chr(7522) , 'j', Chr(11388) , 'k', Chr(8342) , 'l', Chr(8343) , 'm', Chr(8344) , 'n', Chr(8345) , 'o', Chr(8338) , 'p', Chr(8346) , 'r', Chr(7523) , 's', Chr(8347) , 't', Chr(83...
- 11 May 2024, 10:42
- Forum: Gaming Help (v1)
- Topic: ControlClick
- Replies: 1
- Views: 273
Re: ControlClick
Hallo,
try:
try:
Code: Select all
F8::
IF Down := !Down { ; toggles Left and Right mouse button down/up
ControlClick,, ahk_exe java.exe,, Left,, D
ControlClick,, ahk_exe java.exe,, Right,, D
} Else {
ControlClick,, ahk_exe java.exe,, Left,, U
ControlClick,, ahk_exe java.exe,, Right,, U
} Return