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 : Wednesday, December 8, 2021 12:20:10 PM(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)
Forgive my ignorance, I am not sure if this is a bug in S+. Because S+ always prompts errors:access denied, which is very distressing. The worst part is that I don't know what is wrong with my code, so I specifically come to ask friends.Thanks in advance everyone for your help



https://s2.loli.net/2021/12/08/h61Fpf7dPQXicx8.png
Rob  
#2 Posted : Wednesday, December 8, 2021 1:27:53 PM(UTC)
Rob

Rank: Administration

Reputation:

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

Thanks: 28 times
Was thanked: 419 time(s) in 356 post(s)
Some processes may not be able to be accessed due to security.

Are you running S+ installer, or are you running portable?

If you're running portable, are you running as Administrator?
If not, do you get the error if you run S+ as Administrator?

Also, try replacing your filename check with this and see if it works any differently.
Code:
//if(click.Down 
//      && click.Window.Process.MainModule.ModuleName == "Acrobat.exe"){

if(click.Down 
      && sp.GetWindowMainModuleFileName(click.Window) == "Acrobat.exe"){
2014218866  
#3 Posted : Thursday, December 9, 2021 2:05:27 PM(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)
thank you for your reply. Through your prompts, I first gave S+ administrator rights, but S+ will still appear the above prompt. Later, I only replaced part of the code you provided, the error type has changed, and the S+ prompt cannot enumerate the process module (the picture below prompts). Finally, I made the above two changes at the same time (giving administrator rights and replacing part of the code. So far, no problems have been found. I will continue to track this uncertain bug later.


https://s2.loli.net/2021/12/09/MriO42APLjlwHTn.png
Users browsing this topic
Guest
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.