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 4:25:09 AM(UTC)
2014218866

Rank: Advanced Member

Reputation:

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

Thanks: 10 times
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 5:23:48 AM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 536
United States

Thanks: 5 times
Was thanked: 115 time(s) in 102 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 5:36:13 AM(UTC)
2014218866

Rank: Advanced Member

Reputation:

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

Thanks: 10 times
Dear Rob, thank you very much for answering my question again. You are kind and respectable.
Rob  
#4 Posted : Friday, June 7, 2019 6:44:25 AM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 536
United States

Thanks: 5 times
Was thanked: 115 time(s) in 102 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.