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 : Friday, June 7, 2019 10:25:09 AM(UTC)
2014218866

Rank: Advanced Member

Reputation:

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

Thanks: 19 times
Was thanked: 1 time(s) in 1 post(s)
Hello, friends.

I want to distinguish desktop from folder via checking the main process's EXE name. But their main processes are “Explorer.EXE”.
For example, I want to achieve this function: empty the recycle bin on the desktop, but delete a file on the D disk, or in other windows.
Can you help me achieve it? Thank you
Rob  
#2 Posted : Friday, June 7, 2019 11:23:48 AM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,349
United States
Location: Tampa, FL

Thanks: 28 times
Was thanked: 416 time(s) in 354 post(s)
Code:
if(action.Control.HWnd.ToInt32() == sp.DesktopWindowListView().HWnd.ToInt32()) {
    sp.MessageBox("Is Desktop", "Desktop");
} else {
    sp.MessageBox("Not Desktop", "Other Window");
}
2014218866  
#3 Posted : Friday, June 7, 2019 11:36:13 AM(UTC)
2014218866

Rank: Advanced Member

Reputation:

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

Thanks: 19 times
Was thanked: 1 time(s) in 1 post(s)
Dear Rob, thank you very much for answering my question again. You are kind and respectable.
Rob  
#4 Posted : Friday, June 7, 2019 12:44:25 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,349
United States
Location: Tampa, FL

Thanks: 28 times
Was thanked: 416 time(s) in 354 post(s)
You're welcome!
Users browsing this topic
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.