The following post, the use of global hot keys and dialog boxes, definition AutoText, for beginners are very friendly, I hope to add this feature in the new version
How to write code to achieve: The above file opens, only when I (Ctrl + j) hotkey, the following command can be executed, otherwise, wait for me to press :)
int i k vk mod rep ,i=QmKeyCodeToVK(qmKeyCode k) ,if(i=0)break ,qmKeyCode+i ,sel k ,,caseVK_CONTROL mod|MOD_CONTROL ,,caseVK_SHIFT mod|MOD_SHIFT ,,caseVK_MENU mod|MOD_ALT ,,caseVK_LWIN mod|MOD_WIN ,,caseelse vk=k if(vk=0)end"no key"
__RegisterHotKey hk if(!hk.Register(045227 mod vk))end"failed to register the hotkey, probably it is taken be some other application or Windows"
How to call this user-defined function? How to write code to the second line of the location
Just learning programming, not too understand :oops:
thank you very much
int i k vk mod rep ,i=QmKeyCodeToVK(qmKeyCode k) ,if(i=0)break ,qmKeyCode+i ,sel k ,,caseVK_CONTROL mod|MOD_CONTROL ,,caseVK_SHIFT mod|MOD_SHIFT ,,caseVK_MENU mod|MOD_ALT ,,caseVK_LWIN mod|MOD_WIN ,,caseelse vk=k if(vk=0)end"no key"
__RegisterHotKey hk if(!hk.Register(045227 mod vk))end"failed to register the hotkey, probably it is taken be some other application or Windows"
int i k vk mod rep ,i=QmKeyCodeToVK(qmKeyCode k) ,if(i=0)break ,qmKeyCode+i ,sel k ,,caseVK_CONTROL mod|MOD_CONTROL ,,caseVK_SHIFT mod|MOD_SHIFT ,,caseVK_MENU mod|MOD_ALT ,,caseVK_LWIN mod|MOD_WIN ,,caseelse vk=k if(vk=0)end"no key"
__RegisterHotKey hk if(!hk.Register(045227 mod vk))end"failed to register the hotkey, probably it is taken be some other application or Windows"
I defined a sub-process, and then repeat the implementation of 10 sub-process, run-time error: window not found, but a separate test sub-process is normal, Where is the problem? hock:
Hello,
I have encountered a situation, using the above method, can not wait for the window Thanks in advance
I found that each step of the window title is the same, but the text in the window is not the same, I can use the text in each window to distinguish the window? How to write code? Any suggestions are welcome
Software installation of the recording, have the same problem: the window title is the same, always in the playback can not find the window, hoping to have an office to solve this problem
The recorder is not good when recording setup process. In this case need to insert command "wait for check box 'Run CHM Editor Demo' ". Look in floating toolbar, use dialog Wait, or Find Accessible Object, or Find Image.