10-08-2007, 09:57 PM
Hi,
I am having trouble with Dialogs.
I would like to have dialog show up with several macro option buttons. When macro button is pressed, dialog should close automatically. However, this didn't work, so I had to add
to each selection, like this....
This works but I think that I am still doing something wrong.
Secondly,
how do I keep Dialog on top OR Close Dialog if no user input after 3 seconds. Currently, if user clicks outside of screen, dialog goes to background - user doesn't know it is there and must Alt-Tab to get it backup (main application usually hides Taskbar). Since Dialog is still waiting for input, no new macro can be run!
Finally, (thanks so much Gintaras!!!), is it possible to pass Left click upon RELEASE of trigger for dialog so that it will select the dialog choice under the cursor at that time
like we talked about in Radial Gesturing Post
http://www.quickmacros.com/forum/showthr...p?tid=1927
Stuart
I am having trouble with Dialogs.
I would like to have dialog show up with several macro option buttons. When macro button is pressed, dialog should close automatically. However, this didn't work, so I had to add
to each selection, like this....
;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 134 153 "Window Layout"
;3 Button 0x54032000 0x0 0 0 66 52 "1"
;4 Button 0x54032000 0x0 0 52 68 56 "4"
;5 Button 0x54032000 0x0 66 0 68 52 "2"
;6 Button 0x54032000 0x0 68 52 66 56 "6"
;7 Button 0x54032000 0x0 0 108 68 45 "Current Only"
;8 Button 0x54032000 0x0 68 108 66 45 "Current+Prior"
;END DIALOG
;DIALOG EDITOR: "" 0x202000B "" ""
ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
,case 3
,,mac "1-on-1"
,,clo win("Window Layout" "#32770")
,case 5
,,mac "2-on-1"
,,clo win("Window Layout" "#32770")
,case 4
,,mac "4-on-1"
,,clo win("Window Layout" "#32770")
,case 6
,,mac "6-on-1"
,,clo win("Window Layout" "#32770")
,case 7
,,mac "1 Across"
,,clo win("Window Layout" "#32770")
,case 8
,,mac "1 Each"
,,clo win("Window Layout" "#32770")
ret 1
This works but I think that I am still doing something wrong.
Secondly,
how do I keep Dialog on top OR Close Dialog if no user input after 3 seconds. Currently, if user clicks outside of screen, dialog goes to background - user doesn't know it is there and must Alt-Tab to get it backup (main application usually hides Taskbar). Since Dialog is still waiting for input, no new macro can be run!
Finally, (thanks so much Gintaras!!!), is it possible to pass Left click upon RELEASE of trigger for dialog so that it will select the dialog choice under the cursor at that time
like we talked about in Radial Gesturing Post
http://www.quickmacros.com/forum/showthr...p?tid=1927
Stuart