Posts: 726
	Threads: 99
	Joined: Mar 2018
	
	
 
	
	
		Hello everyone, I have set up an autotext. When I type run, I will open the dialog for running the settings, but I can't run successfully. I hope someone can guide me. Thank you very much.
Autotext 
Autotext 
Trigger 
$t      
/b/i/c/m
run :sub.Sub1 ;;run dialog
#sub Sub1
int w=win("" "QM_menu")
men 1 w
 
 
	
	
	
		
	Posts: 1,344
	Threads: 61
	Joined: Jul 2006
	
	
 
	
	
		it doesn't work because your not opening your dialog
your code just looks for a window then tries to do a menu option
but fails because the window isn't open
need to add code to open whatever dialog your trying to work with
	
	
	
	
	
 
 
	
	
	
		
	Posts: 726
	Threads: 99
	Joined: Mar 2018
	
	
 
	
		
		
		08-20-2018, 12:03 AM 
(This post was last modified: 08-20-2018, 12:05 AM by win.)
		
	 
	
		The code has been changed, so it runs successfully, thank you for your reminder   
 
 
Autotext 
Autotext 
Trigger 
$t      
/b/i/c/m
run :mac "TO_FileRun" ;;run dialog
I am having a problem with the code below, pressing F12 can't end the macro
Macro 
Macro5 
run "notepad.exe"
__RegisterHotKey hk1.Register(0 1 0 VK_F10)
__RegisterHotKey hk2.Register(0 2 0 VK_F12)
MSG m
rep
,if(GetMessage(&m 0 0 0)<1) break
,sel m.message
,,case WM_HOTKEY
,,sel m.wParam
,,,case 1
,,,mes 10
,,,
,,,case 2
,,,ret
,,,
,DispatchMessage &m