Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selecting an option from the System Tray (Windows 10)
#1
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
#2
try to activate taskbar at first:

int w1=win("" "Shell_TrayWnd")
act w1
0.5
rig 3389 228 w1 1
#3
Beautiful!  Works perfectly.

But it leaves the Taskbar up.  How can I put it down again when through?
Thanks -- Vincent
#4
Insert before:
int wActive=win

Insert after:
act wActive; err
#5
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
#6
like this
Code:
Copy      Help
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
#7
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


Forum Jump:


Users browsing this thread: 1 Guest(s)