Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hotkey opens a specific window
#1
Hello everyone, I want to open the dialog box with a custom hotkey(ctrl+shift+d). It's in position 12, but I can't open it. I hope someone can guide me, how to set up the value of the next two parameters quickly, thanks in advance.

Macro screen display
Trigger CSd     Help - how to add the trigger to the macro
Code:
Copy      Help
TO_Fav "TO_Text" 3 12 ;;open on-screen display dialog


Attached Files Image(s)
   
#2
The following code can run successfully, and the position of the item in the list is decremented by 1.   Smile
QM scripting language, too flexible and too powerful Tongue ,Thanks to the hard work of the developers Heart

Macro screen display
Trigger CSd     Help - how to add the trigger to the macro
Code:
Copy      Help
TO_Fav "TO_Text" 11 1 ;;open on-screen display dialog

I generated the exe file with the following code and could not display the text on the screen. Does the OnScreenDisplay function not support exe? Huh

Macro Macro1
Code:
Copy      Help
int ok=inp(_s)
OnScreenDisplay _s
#3
Need flag 2 (synchronous), or let the macro wait after calling OnScreenDisplay.
#4
Thank you for your reminder

I am now experiencing an unsolvable problem.

 Use the hotkey to open the wait for picture dialog, the wait time parameter is not displayed

 Manually open the wait picture dialog from the toolbar, the wait time parameter can be displayed Huh

[Image: hot.gif]
Macro wait img
Trigger CSi     Help - how to add the trigger to the macro
Code:
Copy      Help
TO_Fav "TO_Scan" 1 0 ;;Waiting for image
#5
It's a bug in the tool dialog. Workaround - open "Find" and select "Wait for" in the combobox.
#6
.I found a solution: added wait and arrow keys  Big Grin


Macro wait img
Trigger CSi     Help - how to add the trigger to the macro
Code:
Copy      Help
TO_Fav "TO_Scan" 0 0; 0.5; key D ;;Waiting for image

I often encounter the case where the file Main.qml becomes 0. The open software is empty, sometimes some macros are lost. I don't know what caused it. How to solve this problem? Huh


Attached Files Image(s)
   
#7
The computer sleeps, the above problem may occur after waking up

How to set the QM file to be saved every 3 minutes Huh (not the scheduled backup in the option settings)
#8
a better way to do the workaround no keys needed


Code:
Copy      Help
TO_Fav "TO_Scan" 0 0
int w=wait(0 WC win("Find Image" "#32770"))
CB_SelectItem(id(23 w) 1)

as for your other problem that is very strange have you tried reinstalling qm?
#9
To save QM files every 3 minutes you can use some backup software. Or create a function that every 3 minutes copies your main QM file somewhere. Also need to backup the wal file. For example, if your main file is Main.qml, also need to backup Main.qml-wal.

Difficult to find why the file becomes empty. It never happened here.
#10
@kevin @gintaras

Thank you for your reminder, 

I reinstalled QM, but there will still be problems.

I have been using shadow defender(http://www.shadowdefender.com/), I have excluded the QM file directory, I think the error may be related to this software.

I recorded the manual backup operation, I want to know, manual backup will be deleted automatically? Huh

Manual backup will be more and more, how to keep only the last three files?

Toolbar QM2
Trigger !a"" "QM_Editor" "" "" "" 0x2     Help - how to add the trigger to the macro
Code:
Copy      Help
Close all :men 33485 _hwndqm
;add more here
backup :sub.Sub1


#sub Sub1 m ;;Recorded 2018-11-24 07:06:02
int w1=act(win("" "QM_Editor"))
lef 175 12 id(2051 w1) 1 
int w2=wait(15 win("Options" "#32770"))
lef 74 11 id(12320 w2) 1 
lef 53 13 id(1063 w2) 1 
lef 35 9 id(1 w2) 1 
mou


Attached Files Image(s)
   
#11
try to change settings in qm options backup

   
#12
Thank you for your reminder, The automatic backup button does not delete the manually backed up files. I only set a value of 3m and automatically back up every 3 minutes. Smile


Forum Jump:


Users browsing this thread: 1 Guest(s)