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

Notification

Icon
Error

Options
Go to last post Go to first unread
zzm  
#1 Posted : Sunday, May 5, 2019 8:24:40 PM(UTC)
zzm

Rank: Member

Reputation:

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

Thanks: 3 times
Is it possible to achieve what is shown below?
If so, how can it be modified?


UserPostedImage


Thank you very much and apologize for my poor English!

Edited by user Monday, May 6, 2019 6:28:18 AM(UTC)  | Reason: Not specified

Rob  
#2 Posted : Monday, May 6, 2019 1:16:43 PM(UTC)
Rob

Rank: Administration

Reputation:

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

Thanks: 13 times
Was thanked: 155 time(s) in 134 post(s)
What is this screenshot from? Is this another program? What exactly is it doing, detecting text from the image?
zzm  
#3 Posted : Monday, May 6, 2019 7:38:33 PM(UTC)
zzm

Rank: Member

Reputation:

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

Thanks: 3 times
This is another program,the name is mouseInc.
https://shuax.com/project/mouseinc/

Just like default script Snip Screen Area,Copies the area within the square gesture area to the clipboard.
The program mouseInc display area within the square gesture area on the screen.

How to modify the script(Snip Screen Area) to display the area on the screen?

Thanks a lot!

Edited by user Monday, May 6, 2019 7:41:49 PM(UTC)  | Reason: Not specified

Rob  
#4 Posted : Tuesday, May 7, 2019 6:51:44 PM(UTC)
Rob

Rank: Administration

Reputation:

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

Thanks: 13 times
Was thanked: 155 time(s) in 134 post(s)
I will have to take a look at that, but it's not simple with what S+.net has built in. To display something on the screen requires a window, and the only windows in S+.net are used for other purposes.

A plug-in could likely accomplish this, but would require some development.
zzm  
#5 Posted : Tuesday, May 7, 2019 8:07:32 PM(UTC)
zzm

Rank: Member

Reputation:

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

Thanks: 3 times
Thank you. I look forward to it
Rob  
#6 Posted : Monday, May 27, 2019 8:18:40 AM(UTC)
Rob

Rank: Administration

Reputation:

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

Thanks: 13 times
Was thanked: 155 time(s) in 134 post(s)
Added a simple display image form in version 0.3.0.5.

Add this to the bottom of the Snip Screen Area script:

Code:
sp.DisplayImage(clip.GetImage());


Note that I'm having it use the image from the clipboard as that is safer, since the snip script disposes the memoryImage object, which will lead to a crash (handled in code, but no image will appear since it no longer exists).

Click and hold to drag the window around, double-click or press Escape to close the window.

This does not have any OCR (optical character recognition) to read the text inside the image like mouseInc does. Maybe someday I will make an OCR plug-in....
thanks 1 user thanked Rob for this useful post.
zzm on 6/16/2019(UTC)
zzm  
#7 Posted : Monday, May 27, 2019 9:10:21 AM(UTC)
zzm

Rank: Member

Reputation:

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

Thanks: 3 times
I am very glad to receive the update.
Thank you for your selfless dedication,Rob!
Rob  
#8 Posted : Monday, May 27, 2019 6:48:07 PM(UTC)
Rob

Rank: Administration

Reputation:

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

Thanks: 13 times
Was thanked: 155 time(s) in 134 post(s)
I've used this several times just today! It was something I didn't know that I needed :)
zyxi  
#9 Posted : Tuesday, May 28, 2019 4:36:56 AM(UTC)
zyxi

Rank: Advanced Member

Reputation:

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

Thanks: 7 times
Was thanked: 1 time(s) in 1 post(s)
Hello, Rob, if you want to make an OCR plug-in, you can refer to this software, it is a very good software.
Links are as follows:

https://github.com/AnyListen/tianruoocr/releases

https://github.com/AnyListen/tianruoocr


I hope this suggestion will help you.
2014218866  
#10 Posted : Friday, April 17, 2020 7:11:31 AM(UTC)
2014218866

Rank: Advanced Member

Reputation:

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

Thanks: 13 times
Was thanked: 1 time(s) in 1 post(s)
Can S + change the size of the window where the picture is located. For example, you can adjust the size of the picture by dragging the bottom right of the picture with the left mouse button? It is expected that S + can adjust the size of the picture instead of the size of the pasted picture.Love
liuxilu  
#11 Posted : Saturday, April 18, 2020 12:52:20 AM(UTC)
liuxilu

Rank: Advanced Member

Reputation:

Groups: Translators, Moderators, Approved
Joined: 4/5/2020(UTC)
Posts: 75
China

Thanks: 1 times
Was thanked: 20 time(s) in 20 post(s)
A temporary solution. It will stuck a script engine until you close it.
Code:
function ShowImage(img, pt) {
    if (img == null) return;

    var HD = sp.GetSystemMetricsByIndex(5) + sp.GetSystemMetricsByIndex(32);
    HD *= 4; HD += sp.GetSystemMetricsByIndex(4);
    var WD = sp.GetSystemMetricsByIndex(6) + sp.GetSystemMetricsByIndex(33);
    WD *= 4;

    var form = new forms.System.Windows.Forms.Form;
    form.StartPosition = forms.System.Windows.Forms.FormStartPosition.Manual;
    form.FormBorderStyle = forms.System.Windows.Forms.FormBorderStyle.SizableToolWindow;
    form.TopMost = true;
    form.ShowInTaskbar = false;
    form.Location = pt;
    form.Width = img.Width + WD;
    form.Height = img.Height + HD;

    var pic = new forms.System.Windows.Forms.PictureBox;
    pic.SizeMode = forms.System.Windows.Forms.PictureBoxSizeMode.Zoom;
    pic.Image = img;
    pic.Width = img.Width;
    pic.Height = img.Height;

    var c1 = form.Resize.connect(function (sender, args) {
        pic.Width = form.Width - WD;
        pic.Height = form.Height - HD;
    });

    form.Controls.Add(pic);
    form.ShowDialog();
 
    c1.disconnect();
}

Example:
Code:
ShowImage(clip.GetImage(), action.End);
2014218866  
#12 Posted : Sunday, April 26, 2020 8:45:31 AM(UTC)
2014218866

Rank: Advanced Member

Reputation:

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

Thanks: 13 times
Was thanked: 1 time(s) in 1 post(s)
Yes, it's great, but how do you save the resized picture after double-clicking with the left mouse button or pressing ESC to close the screenshot?
Thank you very much,liuxilu
liuxilu  
#13 Posted : Monday, April 27, 2020 4:33:01 AM(UTC)
liuxilu

Rank: Advanced Member

Reputation:

Groups: Translators, Moderators, Approved
Joined: 4/5/2020(UTC)
Posts: 75
China

Thanks: 1 times
Was thanked: 20 time(s) in 20 post(s)
var c2 = pic.DoubleClick.connect(function (sender, args) { pic.Image.Save('z:\\test.jpg'); } );
c2.disconnect();
2014218866  
#14 Posted : Monday, April 27, 2020 6:03:25 AM(UTC)
2014218866

Rank: Advanced Member

Reputation:

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

Thanks: 13 times
Was thanked: 1 time(s) in 1 post(s)
Although this is not what I expected, thank you very much. The picture below is the effect I really want.
I hope that S + will realize this function in the future, or maybe this function will never appear.
UserPostedImage
liuxilu  
#15 Posted : Monday, April 27, 2020 6:34:35 AM(UTC)
liuxilu

Rank: Advanced Member

Reputation:

Groups: Translators, Moderators, Approved
Joined: 4/5/2020(UTC)
Posts: 75
China

Thanks: 1 times
Was thanked: 20 time(s) in 20 post(s)
哦,你是要按比例缩放啊,你讲清楚啊……
2014218866  
#16 Posted : Monday, April 27, 2020 6:53:38 AM(UTC)
2014218866

Rank: Advanced Member

Reputation:

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

Thanks: 13 times
Was thanked: 1 time(s) in 1 post(s)
Sorry...
This function is similar to the function of snipaste.exe
https://www.snipaste.com/index.html
liuxilu  
#17 Posted : Monday, April 27, 2020 6:57:11 AM(UTC)
liuxilu

Rank: Advanced Member

Reputation:

Groups: Translators, Moderators, Approved
Joined: 4/5/2020(UTC)
Posts: 75
China

Thanks: 1 times
Was thanked: 20 time(s) in 20 post(s)
var c1 = form.ResizeEnd.connect(function (sender, args) {
var scale = (form.Width - WD) / pic.Width;
pic.Height =parseInt(pic.Height * scale);
pic.Width = parseInt(pic.Width * scale);
form.Width = pic.Width + WD;
form.Height = pic.Height + HD;
});
thanks 1 user thanked liuxilu for this useful post.
2014218866 on 4/27/2020(UTC)
liuxilu  
#18 Posted : Monday, April 27, 2020 6:59:12 AM(UTC)
liuxilu

Rank: Advanced Member

Reputation:

Groups: Translators, Moderators, Approved
Joined: 4/5/2020(UTC)
Posts: 75
China

Thanks: 1 times
Was thanked: 20 time(s) in 20 post(s)
对了,你可以搜索一下 .Net 截图的 dll,作 S+ 插件用
2014218866  
#19 Posted : Monday, April 27, 2020 7:02:32 AM(UTC)
2014218866

Rank: Advanced Member

Reputation:

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

Thanks: 13 times
Was thanked: 1 time(s) in 1 post(s)
我倒是想要找一个那样的插件,无奈小白一个,却总要用的贴图功能,非常感谢
liuxilu  
#20 Posted : Monday, April 27, 2020 7:06:02 AM(UTC)
liuxilu

Rank: Advanced Member

Reputation:

Groups: Translators, Moderators, Approved
Joined: 4/5/2020(UTC)
Posts: 75
China

Thanks: 1 times
Was thanked: 20 time(s) in 20 post(s)
终于讲中文了😂😂😂
2014218866  
#21 Posted : Monday, April 27, 2020 7:07:51 AM(UTC)
2014218866

Rank: Advanced Member

Reputation:

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

Thanks: 13 times
Was thanked: 1 time(s) in 1 post(s)
讲中文,不易于后面的小白(国外)使用搜索功能
liuxilu  
#22 Posted : Monday, April 27, 2020 7:11:08 AM(UTC)
liuxilu

Rank: Advanced Member

Reputation:

Groups: Translators, Moderators, Approved
Joined: 4/5/2020(UTC)
Posts: 75
China

Thanks: 1 times
Was thanked: 20 time(s) in 20 post(s)
好吧,那你可以双语,这样能更好表达,也能让人用英语搜索到
2014218866  
#23 Posted : Monday, April 27, 2020 7:12:46 AM(UTC)
2014218866

Rank: Advanced Member

Reputation:

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

Thanks: 13 times
Was thanked: 1 time(s) in 1 post(s)
话说,这个双击关闭加在脚本哪个位置呢,总提示报错
liuxilu  
#24 Posted : Monday, April 27, 2020 7:27:09 AM(UTC)
liuxilu

Rank: Advanced Member

Reputation:

Groups: Translators, Moderators, Approved
Joined: 4/5/2020(UTC)
Posts: 75
China

Thanks: 1 times
Was thanked: 20 time(s) in 20 post(s)
按叉关闭就是了
2014218866  
#25 Posted : Monday, April 27, 2020 7:29:49 AM(UTC)
2014218866

Rank: Advanced Member

Reputation:

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

Thanks: 13 times
Was thanked: 1 time(s) in 1 post(s)
好的,看来双击是实现不了了,还有就是左键点击贴图后拖拽移动容易实现么?
lyscop  
#26 Posted : Thursday, April 30, 2020 1:11:13 AM(UTC)
lyscop

Rank: Advanced Member

Reputation:

Groups: Approved
Joined: 4/23/2020(UTC)
Posts: 39
China

Thanks: 5 times
Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: liuxilu# Go to Quoted Post
按叉关闭就是了


大佬,有好用的OCR手势脚本么
zyxi  
#27 Posted : Friday, May 1, 2020 1:47:11 AM(UTC)
zyxi

Rank: Advanced Member

Reputation:

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

Thanks: 7 times
Was thanked: 1 time(s) in 1 post(s)
I stumbled upon an OCR dll, here I leave it to anyone who needs it.
But it needs to be used online, because it uses Baidu's character recognition.LOL
https://sendit.cloud/ih92veiv9w8q
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.