@@ -1619,6 +1619,8 @@ Retry:
1619
1619
End Sub
1620
1620
1621
1621
# End Region
1622
+
1623
+ # Region "CompFavorites | 收藏"
1622
1624
Class CompFavorites
1623
1625
1624
1626
''' <summary>
@@ -1732,23 +1734,27 @@ Retry:
1732
1734
Return Res
1733
1735
End Function
1734
1736
End Class
1737
+ # End Region
1735
1738
1739
+ # Region "CompClipboard | 剪贴板识别"
1736
1740
Class CompClipboard
1737
1741
'剪贴板已读取内容
1738
1742
Public Shared CurrentText As String = Nothing
1739
1743
'识别剪贴板内容
1740
1744
Public Shared Sub ClipboardListening()
1741
1745
While Setup.Get( "ToolDownloadClipboard" )
1746
+ Thread.Sleep( 700 )
1742
1747
Dim Text As String = Nothing
1743
1748
Dim Slug As String = Nothing
1744
1749
Dim ProjectId As String = Nothing
1745
1750
Dim CategoryURL As String = Nothing
1746
1751
Dim ReturnData = Nothing
1747
1752
RunInUiWait( Sub ()
1748
- Text = My.Computer.Clipboard.GetText().Replace( "https://" , "" ).Replace( "http://" , "" )
1753
+ Text = My.Computer.Clipboard.GetText()
1749
1754
End Sub )
1750
1755
If Text = CurrentText Then Continue While
1751
1756
CurrentText = Text
1757
+ Text = Text.Replace( "https://" , "" ).Replace( "http://" , "" )
1752
1758
1753
1759
If Text.Contains( "curseforge.com/minecraft/" ) Then 'e.g. www.curseforge.com/minecraft/mc-mods/jei
1754
1760
Dim ClassIds As List( Of String ) = New List( Of String ) From { "6" , "4471" , "12" , "6552" }
@@ -1805,9 +1811,8 @@ Retry:
1805
1811
RunInUi( Sub () FrmMain.PageChange( New FormMain.PageStackData With {.Page = FormMain.PageType.CompDetail,
1806
1812
.Additional = {CompProjects.First(), New List( Of String ), String .Empty, CompModLoaderType.Any}}))
1807
1813
End If
1808
-
1809
- Thread.Sleep( 700 )
1810
1814
End While
1811
1815
End Sub
1812
1816
End Class
1817
+ # End Region
1813
1818
End Module
0 commit comments