Search found 31 matches

by 2_05
04 Aug 2023, 06:17
Forum: Ask for Help (v1)
Topic: FileSelectFile - Ignore file in use
Replies: 6
Views: 383

Re: FileSelectFile - Ignore file in use

In my situation another program does lock the file for reading. I have no interest in reading the file via ahk though, I only want to obtain the file path. I use FileSelectFile because it is a more user friendly way to provide the path, but this method fails when another program has locked the file....
by 2_05
03 Aug 2023, 17:18
Forum: Ask for Help (v1)
Topic: FileSelectFile - Ignore file in use
Replies: 6
Views: 383

Re: FileSelectFile - Ignore file in use

This script demonstrates the issue. It will not allow you to obtain the path of Test.txt via the file dialog. f := FileOpen("Test.txt", "a-") ; Simulates locking of the file. In my case an external program locks the file so this line cannot be altered and the variable f is not accessible. FileSelect...
by 2_05
31 Jul 2023, 04:23
Forum: Ask for Help (v1)
Topic: FileSelectFile - Ignore file in use
Replies: 6
Views: 383

FileSelectFile - Ignore file in use

I have a script where the user needs to provide a path name of a file. To simplify inserting the path name, I added a FileSelectFile FileSelectFile, FileName, 1 This works as long as the file is not in use. When the file is in use, the dialog cannot be closed and the message "This file is in use." a...
by 2_05
25 Jul 2023, 01:35
Forum: Wish List
Topic: MouseSpeed when SendInput reverts to SendEvent
Replies: 0
Views: 425

MouseSpeed when SendInput reverts to SendEvent

SetDefaultMouseSpeed is ignored for SendInput/Play modes; they move the mouse instantaneously (except when SendInput reverts to SendEvent; also, SetMouseDelay has a mode that applies to SendPlay). Why not apply DefaultMouseSpeed of 0 to SendInput at all times, also when SendInput reverts to SendEve...
by 2_05
18 Jul 2023, 00:37
Forum: Ask for Help (v1)
Topic: Reinstalling Keyboard or mouse hook?
Replies: 2
Views: 233

Re: Reinstalling Keyboard or mouse hook?

Are you using AHK 32-bit? Then have a look at this topic . That topic was also the reason for that particular change. It's not possible to detect if the system is ready to set the hotkey, without knowing the actual cause of why the hotkeys are failing. This may well be caused by another program, tha...
by 2_05
13 Jul 2023, 15:41
Forum: Ask for Help (v1)
Topic: TimeIdle for artificial keyboard input (ignoring mouse events)
Replies: 1
Views: 170

TimeIdle for artificial keyboard input (ignoring mouse events)

I'm trying to perform certain mouse click actions in an application. I noticed that these mouse actions fail if the application has recently (<1s) received (artificial) keyboard input. This keyboard input can be created by physical keyboard presses but can also originate from Send commands in my scr...
by 2_05
13 Jul 2023, 13:59
Forum: Bug Reports
Topic: Hotkeys stop working after some time with 32-bit AHK on 64bit OS
Replies: 21
Views: 4416

Re: Hotkeys stop working after some time with 32-bit AHK on 64bit OS

Guillaume TheBeginner Thank you for kicking this thread. It took me a lot of frustration and time to pinpoint the issue and to try and find a solution for it. I'm glad that my report about it was of help. lexikos Thank you for looking into it. I noticed in the changelog that: Fixed an issue where a...
by 2_05
16 Sep 2022, 03:19
Forum: Wish List
Topic: FileInstall support for variables in Source parameter
Replies: 0
Views: 436

FileInstall support for variables in Source parameter

As of v1.1.30.01, the compiler supports a wide range of variables in the parameter for #include. Is it possible to expand this to the Source parameter for the FileInstall command as well? E.g. I include some files in my script which I reference to using variables. Within these included files I use F...
by 2_05
01 Oct 2021, 13:09
Forum: Ask for Help (v1)
Topic: Continue script while system is in modern standby
Replies: 1
Views: 482

Continue script while system is in modern standby

I have a script to turn off the video signal to the monitor, so the monitor automatically switches to a different video-input. SendMessage, 0x112, 0xF170, 2, , Program Manager When the monitor has had time to switch, the following script should turn the video signal back on. SetTimer, WakeMonitor, -...
by 2_05
05 Feb 2021, 06:52
Forum: Ask for Help (v1)
Topic: Gosub with conditional hotkey
Replies: 2
Views: 184

Gosub with conditional hotkey

I was trying some code to call a hotkey routine inside the code. Gosub works for this, but it does not seem to work with conditional hotkeys. Is there a way to call a specific conditional hotkey? In the case below call the second hotkey? Suspend, On #IF false a::MsgBox, Not this one #IF true a::MsgB...
by 2_05
28 Nov 2020, 16:08
Forum: Bug Reports
Topic: Keybd hook breaks with AHK 32-bit
Replies: 3
Views: 1507

Re: Keybd hook breaks with AHK 32-bit

If it is caused by Windows 10 it may not be preventable from AHKs side, though I cannot understand why Windows 10 would by design cancel the Keybd hook when AHK is not actually the source of the delay. And why it does so only for 32-bit software but not for 64-bit software. Is it a Windows 10 bug? A...
by 2_05
15 Nov 2020, 06:20
Forum: Bug Reports
Topic: Keybd hook breaks with AHK 32-bit
Replies: 3
Views: 1507

Keybd hook breaks with AHK 32-bit

I've been using AHK 32-bit as I am hooking it with a 32-bit dll. After migrating to Windows 10 I've noticed that hotkeys that require the keybd hook stop working after some time. Also Suspend stops working. After a lot of testing I discovered that this happens when other applications slow the proces...
by 2_05
15 Nov 2020, 04:38
Forum: Ask for Help (v1)
Topic: Right-click Menu Item not Recognised Correctly Topic is solved
Replies: 3
Views: 1055

Re: Right-click Menu Item not Recognised Correctly Topic is solved

WM_MENURBUTTONUP is interrupted by the MenuHandler before rbc is set. You can see this by printing messages as demonstrated below. The solution is to move the rbc:=1 to the beginning of the function or make the WM_MENURBUTTONUP critical by adding the Critical command after local w MenuHandler: Outp...
by 2_05
20 Oct 2020, 12:00
Forum: Bug Reports
Topic: Hotkeys stop working after some time with 32-bit AHK on 64bit OS
Replies: 21
Views: 4416

Re: Hotkeys stop working after some time with 32-bit AHK on 64bit OS

I have identified why the hotkeys stop working despite the use of #IfTimeout (with AHK 32-bit). I have found that some applications (not ahk script) on my computer can sporadically cause keyboard delay, even when these applications do not have focus. Even though the other application is responsible ...
by 2_05
19 Oct 2020, 06:26
Forum: Bug Reports
Topic: Hotkeys stop working after some time with 32-bit AHK on 64bit OS
Replies: 21
Views: 4416

Re: Hotkeys stop working after some time with 32-bit AHK on 64bit OS

Thank you for your comprehensive answer swagfag . It provides a lot of clarity. Very informative to see what suspend is doing behind the scenes. If I understand it correctly: Windows 10 treats 32-bit applications differently than 64-bit applications when it comes to slow hotkey response. It is uncle...
by 2_05
18 Oct 2020, 05:37
Forum: Bug Reports
Topic: Hotkeys stop working after some time with 32-bit AHK on 64bit OS
Replies: 21
Views: 4416

Re: Hotkeys stop working after some time

Thanks for confirming. I know the script looks silly. I do not have a problem with missing hotkeys. I wrote it like this because I'm trying to understand why there is a difference with AHK 32-bit and AHK 64-bit. The problem as you've also seen is that the script cannot count past 15 or so with AHK 3...
by 2_05
17 Oct 2020, 09:26
Forum: Bug Reports
Topic: Hotkeys stop working after some time with 32-bit AHK on 64bit OS
Replies: 21
Views: 4416

Re: Hotkeys stop working after some time

Ran a few more tests. Rebooted in safe mode: Problem still occurs Full memory test: No issues found Then did a reinstall of Autohotkey. Both my computers are x64 - AHK installed as 64-bit AHK. No issues with the script I posted above. - AHK installed as 32-bit AHK. Issues on both my computers. I'm f...
by 2_05
17 Oct 2020, 02:08
Forum: Bug Reports
Topic: Hotkeys stop working after some time with 32-bit AHK on 64bit OS
Replies: 21
Views: 4416

Re: Hotkeys stop working after some time

I did a test with a different computer and I can not reproduce it there. Looks like it is some problem with my laptop but what could it be? On my laptop the hotkeys will stop working within 20 Ctrl presses. The presses can be 1s apart so missed presses is not an issue. After hotkeys stop working the...
by 2_05
16 Oct 2020, 15:56
Forum: Bug Reports
Topic: Hotkeys stop working after some time with 32-bit AHK on 64bit OS
Replies: 21
Views: 4416

Hotkeys stop working after some time with 32-bit AHK on 64bit OS

[Moderator note: Moved topic from “Ask for Help” after it was concluded that this is a bug] I have a script that was working fine on Windows 7, but since switching to a new laptop with Windows 10 quite some time ago the hotkeys stop working after some time and I have to restart the script. I found ...
by 2_05
06 Oct 2020, 13:21
Forum: Wish List
Topic: Extra functionality for Timeouts and Threads
Replies: 2
Views: 1126

Extra functionality for Timeouts and Threads

I've been having some issues with my script not responding to hotkeys anymore. It seems like the system stops calling the script's keyboard hook. Having some Callbacks that are often fired and dynamic hotkey assignments that could prevent execution of #If Execution it is not evident where I need to ...

Go to advanced search