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

Notification

Icon
Error

Options
Go to last post Go to first unread
zyxi  
#1 Posted : Friday, June 28, 2019 5:10:50 AM(UTC)
zyxi

Rank: Advanced Member

Reputation:

Groups: Approved
Joined: 3/30/2019(UTC)
Posts: 49
China

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
Hello, Rob.
Will the following screenshots appear in the later version?
It can move the position of the selected screenshot, and it can also change the size of the screenshot. Finally, it completes the screenshot by double-clicking.
I know it's difficult to implement, but it's really fascinating.


UserPostedImage

Rob  
#2 Posted : Friday, June 28, 2019 8:57:45 AM(UTC)
Rob

Rank: Administration

Reputation:

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

Thanks: 5 times
Was thanked: 78 time(s) in 68 post(s)
To be honest, this sounds like a plug-in as it's really stepping outside of the primary functionality of StrokesPlus.net :-)

Maybe I will work on that someday, or perhaps someone else will!
zyxi  
#3 Posted : Friday, June 28, 2019 9:30:59 PM(UTC)
zyxi

Rank: Advanced Member

Reputation:

Groups: Approved
Joined: 3/30/2019(UTC)
Posts: 49
China

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
Yeah, Rob, you're right. It's a real challenge for S+. This Dll was found by me, but I don't know how to call it in S +.
If someone wants to, try how to use it in S +.
The following is the author's call method:

URL of DLL


https://sendit.cloud/fou1v86cvze0


Code:
namespace PrintScreen { class DllClass1 { [DllImport("PrScrn.dll", EntryPoint = "PrScrn", CharSet = CharSet.Ansi)] public static extern bool Prscrn(); } }
zyxi  
#4 Posted : Friday, June 28, 2019 9:51:49 PM(UTC)
zyxi

Rank: Advanced Member

Reputation:

Groups: Approved
Joined: 3/30/2019(UTC)
Posts: 49
China

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
Another version.
https://sendit.cloud/8yyns8laa8b2

Call parameter:
Code:
rundll32 PrScrn.dll PrScrn
Rob  
#5 Posted : Saturday, June 29, 2019 2:28:25 AM(UTC)
Rob

Rank: Administration

Reputation:

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

Thanks: 5 times
Was thanked: 78 time(s) in 68 post(s)
So that looks like a native DLL, not a .NET Class Library (meaning it can't be a S+ plug-in). Though you could write a .NET wrapper class using your first example.

However, you can also just use the rundll32 command (change the path to the DLL accordingly):

Code:
sp.RunProgram("rundll32", "\"C:\\Development\\PrScrn.dll\" PrScrn", "open", "normal", true, false, false);
zyxi  
#6 Posted : Saturday, June 29, 2019 3:52:06 AM(UTC)
zyxi

Rank: Advanced Member

Reputation:

Groups: Approved
Joined: 3/30/2019(UTC)
Posts: 49
China

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
OK, thank you Rob.
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.