Rank: Advanced Member
Groups: Approved
Joined: 5/6/2019(UTC) Posts: 111  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
|
|
|
|
Rank: Advanced Member
Groups: Moderators, Approved Joined: 4/23/2020(UTC) Posts: 161  Thanks: 46 times Was thanked: 22 time(s) in 17 post(s)
|
|
|
|
|
Rank: Advanced Member
Groups: Approved
Joined: 5/6/2019(UTC) Posts: 111  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
|
|
|
|
Rank: Advanced Member
Groups: Approved
Joined: 5/6/2019(UTC) Posts: 111  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
|
|
|
|
Rank: Advanced Member
Groups: Moderators, Approved Joined: 4/23/2020(UTC) Posts: 161  Thanks: 46 times Was thanked: 22 time(s) in 17 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
|
|
|
|
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.
Important Information:
The StrokesPlus.net Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close