Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AutoText run failed
#1
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     Help - how to add the trigger to the macro
Code:
Copy      Help
/b/i/c/m

run :sub.Sub1 ;;run dialog

#sub Sub1

int w=win("" "QM_menu")
men 1 w
#2
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
#3
The code has been changed, so it runs successfully, thank you for your reminder   Smile

Autotext Autotext
Trigger $t     Help - how to add the trigger to the macro
Code:
Copy      Help
/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
Code:
Copy      Help
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


Forum Jump:


Users browsing this thread: 1 Guest(s)