Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Taskbar
#1
How can I push the middle button mouse in the tab of taskbar and close the window associated?
#2
Get accessible object from mouse, get its name, and close window with that name.

Or, right click, wait for menu, press c.
#3
and if 2 or more windows have same name?
#4
Then use the second method.
#5
I wanted to use:

Code:
Copy      Help
Acc a=acc(mouse)
str name=a.Name
int hwnd=win(name)
ShutDownProcess hwnd


and second method is not valid with ShutDownProcess
#6
Second method also can be used to ShutDownProcess. The menu belongs to that process, not to explorer.

rig
int h=wait(10 WC "+#32768") ;;wait for menu
ShutDownProcess h
#7
Ok. Thanks.
#8
It`s slow.
Do you know a quicker way?
#9
Don't know.
#10
How can I close all windows from right of mouse on Taskbar?
#11
Code:
Copy      Help
spe
Acc a=acc(mouse)
if(a.State&STATE_SYSTEM_PRESSED=0) lef
key+ C
rep
,a.Navigate("next"); err break
,a.Mouse(1)
key- C
rig
wait 5 WV "+#32768"
key c


Forum Jump:


Users browsing this thread: 1 Guest(s)