Why sometimes some commands (Hotkeys, Hotstrings or functions) are not worked in AHK?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
yfjuu6
Posts: 124
Joined: 28 Apr 2023, 15:28

Why sometimes some commands (Hotkeys, Hotstrings or functions) are not worked in AHK?

Post by yfjuu6 » 07 Jun 2023, 18:51

I started using AHK V_1.1.36.02 a while ago and I noticed that there is a problem :

I have 2 scripts one containing Hotkeys and some functions and the other containing Hotstrings.

I noticed that sometimes some commands (Hotkeys, Hotstrings or functions) are not worked unless I open the script and Reload it.

Note : My operating system : win11 64bit

- Has anyone noticed this problem?
- Is there any solution for that?

- this is my “auto-execute section" in my both scripts :

Code: Select all

     
     #NoEnv
     ; #Warn ; Enable warnings to assist with detecting common errors
     #SingleInstance, Force
     SendMode, Input
     #Persistent
     SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
     SetBatchLines, -1
     SetTitleMatchMode, 2
     Process, Priority,, High
    FileGetTime ScriptStartModTime, %A_ScriptFullPath%
    CloseQTranslate("ahk_class SunAwtFrame")
    
    SetTimer CheckScriptUpdate, 100, 0x7FFFFFFF ; 100 ms, highest priorityj
    Menu,Tray,Icon, C:\Users\th\VSCC\Icon kha\2resum.png, , 1
    SetTimer errorr_2kha, 1000
    SetTimer VMwarecmd, 1000
    SetTimer Unicode_on_top, 1000
    SetTimer mvBrowser, 500
    SetTimer mvAdd, 500
    SetTimer otozamerican, 1000

User avatar
mikeyww
Posts: 26885
Joined: 09 Sep 2014, 18:38

Re: Why sometimes some commands (Hotkeys, Hotstrings or functions) are not worked in AHK?

Post by mikeyww » 07 Jun 2023, 18:53

1. Which commands do not work?
2. How do you know that the commands do not work?
3. Post a script that the forum reader can run to demonstrate the problem that you are experiencing.

Post Reply

Return to “Ask for Help (v1)”