Posts: 4
Threads: 1
Joined: Jun 2020
I created the macro via learning, below. It selects an option from an app in the System Tray. If the Taskbar is visible, it works. But if the Taskbar is hidden, it does not work.
How can I fix this?
First time user. Thanks for any help -- Vincent
#region Recorded 6/6/2020 1:01:41 PM
rig 3389 228 win("" "Shell_TrayWnd") 1 ;;tool bar 'User Promoted Notification ...', push button 'MAZDAPARDAZESH[]Screen Magn...'
men 74 win("" "TPUtilWindow") ;;Show / Hide
lef 93 536 wait(15 WV win("" "#32768")) 1 ;; 'Context'
#endregion
BEGIN PROJECT
main_function Hide|Show PixelScope
exe_file $my qm$\Hide|Show PixelScope.exe
icon <default>
manifest $qm$\default.exe.manifest
flags 6
guid {33C3DE2A-25A0-4BAB-B230-97344F6F7DE6}
END PROJECT
Posts: 12,092
Threads: 142
Joined: Dec 2002
try to activate taskbar at first:
int w1=win("" "Shell_TrayWnd")
act w1
0.5
rig 3389 228 w1 1
Posts: 4
Threads: 1
Joined: Jun 2020
Beautiful! Works perfectly.
But it leaves the Taskbar up. How can I put it down again when through?
Thanks -- Vincent
Posts: 12,092
Threads: 142
Joined: Dec 2002
Insert before:
int wActive=win
Insert after:
act wActive; err
Posts: 4
Threads: 1
Joined: Jun 2020
06-08-2020, 08:13 PM
(This post was last modified: 06-08-2020, 08:26 PM by Kruskal.)
Not really sure what "before" and "after" mean. But this still left the Taskbar visable:
#region suggested in forum
int w1=win("" "Shell_TrayWnd")
act w1
0.5
#endregion
int wActive=win
#region Recorded 6/6/2020 1:01:41 PM
rig 3389 228 win("" "Shell_TrayWnd") 1 ;;tool bar 'User Promoted Notification ...', push button 'MAZDAPARDAZESH[]Screen Magn...'
men 74 win("" "TPUtilWindow") ;;Show / Hide
lef 93 536 wait(15 WV win("" "#32768")) 1 ;; 'Context'
#endregion
BEGIN PROJECT
main_function Hide|Show PixelScope
exe_file $my qm$\Hide|Show PixelScope.exe
icon <default>
manifest $qm$\default.exe.manifest
flags 6
guid {33C3DE2A-25A0-4BAB-B230-97344F6F7DE6}
END PROJECT
act wActive; err
Posts: 1,338
Threads: 61
Joined: Jul 2006
like this
int wActive=win
#region suggested in forum
int w1=win("" "Shell_TrayWnd")
act w1
0.5
#endregion
#region Recorded 6/6/2020 1:01:41 PM
rig 3389 228 win("" "Shell_TrayWnd") 1 ;;tool bar 'User Promoted Notification ...', push button 'MAZDAPARDAZESH[]Screen Magn...'
;men 74 win("" "TPUtilWindow") ;;Show / Hide
lef 93 536 wait(15 WV win("" "#32768")) 1 ;; 'Context'
#endregion
act wActive; err
;BEGIN PROJECT
;main_function Hide|Show PixelScope
;exe_file $my qm$\Hide|Show PixelScope.exe
;icon <default>
;manifest $qm$\default.exe.manifest
;flags 6
;guid {33C3DE2A-25A0-4BAB-B230-97344F6F7DE6}
;END PROJECT
Posts: 4
Threads: 1
Joined: Jun 2020
That works -- thanks.
But it is quite slow in re-hiding the Taskbar. Probably all Windows' doing.
It would be nice to have the whole operation hidden from the user. I'd there a feature where screen refreshes are held off until the macro is done. That is have Quick Macros operate on an image of the screen without actually showing the user the stuff going on? Possible?
Vincent