StrokesPlus.net
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
2014218866  
#1 Posted : Tuesday, September 6, 2022 4:46:26 AM(UTC)
2014218866

Rank: Advanced Member

Reputation:

Groups: Approved
Joined: 5/6/2019(UTC)
Posts: 107
China

Thanks: 19 times
Was thanked: 1 time(s) in 1 post(s)
Hello everyone, may I ask if S+ can capture the taskbar at the bottom of the computer, for example, while word is running, when the mouse is on the taskbar, S+ can execute to open my computer. Looking forward to your reply
soooulp  
#2 Posted : Tuesday, September 6, 2022 3:16:54 PM(UTC)
soooulp

Rank: Advanced Member

Reputation:

Groups: Moderators, Approved
Joined: 4/23/2020(UTC)
Posts: 148
China

Thanks: 45 times
Was thanked: 19 time(s) in 15 post(s)
啥意思,打开资源管理器?
2014218866  
#3 Posted : Saturday, September 10, 2022 7:14:28 AM(UTC)
2014218866

Rank: Advanced Member

Reputation:

Groups: Approved
Joined: 5/6/2019(UTC)
Posts: 107
China

Thanks: 19 times
Was thanked: 1 time(s) in 1 post(s)
In other words, how to distinguish the desktop or software interface from the taskbar. when the software is running, I can let S+ perform some functions on the taskbar, such as opening the task manager or my computer, etc. The second situation is when the computer is on the desktop, S+ can open the task manager in the taskbar area, or other functions

Edited by user Saturday, September 10, 2022 7:15:10 AM(UTC)  | Reason: Not specified

2014218866  
#4 Posted : Saturday, September 10, 2022 7:16:24 AM(UTC)
2014218866

Rank: Advanced Member

Reputation:

Groups: Approved
Joined: 5/6/2019(UTC)
Posts: 107
China

Thanks: 19 times
Was thanked: 1 time(s) in 1 post(s)
In other words, how to distinguish the desktop or software interface from the taskbar, when the software is running, I can let S+ perform some functions on the taskbar, such as opening the task manager or my computer, etc. The second situation is when the computer is on the desktop, S+ can open the task manager in the taskbar area, or other functions
soooulp  
#5 Posted : Monday, September 12, 2022 6:27:05 AM(UTC)
soooulp

Rank: Advanced Member

Reputation:

Groups: Moderators, Approved
Joined: 4/23/2020(UTC)
Posts: 148
China

Thanks: 45 times
Was thanked: 19 time(s) in 15 post(s)
I don't know whether I understood.

Use the gesture start point to judge which front Window is, and the gesture ends at the taskbar. (860 is My Macbook taskbar vertical point)

1 If you draw a DOWN(or others) gesture in the following situation then do separate actions,
Open Chrome
Open Word
Open My Computer folder
Others

2 If you just draw a gesture on the taskbar area, may the front Window will lose focus.
I think may you need the second one, and try to change wnd to var lastControl = sp.LastFocusControl();

Code:
var wnd = sp.WindowFromPoint(action.Start, true);
if(wnd.Process.ProcessName == 'chrome') {
    if(action.End.Y > 860) {
        sp.MessageBox('Action 1', 'Message');
    } else {
    }

} else if(wnd.Process.MainModule.ModuleName == "WINWORD.EXE") {
    if(action.End.Y > 860) {
        sp.MessageBox('Action 1', 'Message');
    } else {
    }

} else if(wnd.Title == '此电脑') {
    if(action.End.Y > 860) {
        sp.MessageBox('Action 2', 'Message');
    } else {
    }

} else {
    if(action.End.Y > 860) {
        sp.MessageBox('Action 3', 'Message');
    } else {
    }

}

Edited by user Monday, September 12, 2022 6:53:43 AM(UTC)  | Reason: Not specified

Users browsing this topic
Similar Topics
Super-thin Windows 10 vertical taskbar (Scripts)
by randomConstant 9/7/2021 5:37:39 PM(UTC)
StrkePlus.Net & the Taskbar (General Discussion)
by Patrick97 6/8/2021 7:11:41 AM(UTC)
How to make the lower level windows not cover the taskbar (General Discussion)
by yoko 3/14/2021 10:20:38 AM(UTC)
Can't close StrokesPlus's tab on TaskBar panel (Bug Reports)
by Ss2ng 10/21/2018 3:18:28 PM(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.