C# Programing For Autolisp
C# Programing For Autolisp
Net
Imports System.Text.RegularExpressions
Imports System.Windows.Forms
'https://www.codeproject.com/Articles/38639/Get-HTML-Source-from-User-
Defined-Web-Address
'https://social.msdn.microsoft.com/Forums/vstudio/en-US/1ddb96ce-359a-4baf-
9ffc-6a87eba4fe26/how-can-i-get-html-page-source-for-websites-in-vbnet?
forum=vbgeneral
'https://snipplr.com/view/70724/get-page-source-code/
'---------------------------------------------------
''Dim SearchText As String
''SearchText = AU_Searchstring.Text
''Dim PageText As String = WebBrowser1.Document.Body.InnerText
''If InStr(PageText, SearchText) > 0 Then
''Else
'' MsgBox("Not Found") : Exit Sub
''End If
Select Case AU_tb_WebLink.Text
Case "https://www.redbubble.com/"
Searchstring = "https://www.redbubble.com/shop/" +
Replace(AU_Searchstring.Text, " ", "+") + "?ref=search_box"
End Select
ServicePointManager.Expect100Continue = True
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
''Dim sourceString As String = Nothing
''Try
'' sourceString = New
System.Net.WebClient().DownloadString(Searchstring)
''Catch ex As System.Net.WebException
'' AU_msgbox("Cann't found this keyword.")
''End Try
''----------------------------------------------------
''Dim file As System.IO.StreamWriter
''file = My.Computer.FileSystem.OpenTextFileWriter("C:
\Users\AU_Express\Desktop\mytext.txt", True)
''file.WriteLine(sourceString)
''file.Close()
''-----------------------------------------------------
'Dim regex As Regex
'regex = New Regex("(?<=<strong>)((?!(Previous|Next)))[^<>].+?(?
=<\/strong>)")
'Dim match As Array = regex.Matches(sourceString).Cast(Of Match).ToArray
'Dim a As SByte = UBound(match, 1)
'Dim value(a) As Object, i As SByte
'For Each item As Match In match
' value(i) = item.Value
' i += 1
'Next
'ClsAuribbon2.GLBExapp.Range("A1").Resize(a + 1, 1).Value2 =
ClsAuribbon2.GLBExapp.WorksheetFunction.Transpose(value)
'-----------------------------------------------
'tiep tuc trang web thu 2
Searchstring = "https://automation.merchtitans.com/tools/redbubble-tag-
generator"
Try
'Catch ex As System.Net.WebException
' AU_msgbox("Cann't found this keyword.")
'End Try
End Sub
Private Searchstring As String
'Private Sub AU_Negative_Click(sender As Object, e As EventArgs) Handles
AU_Negative.Click
' Searchstring = AU_tb_WebLink.Text '"https://www.redbubble.com/shop/" +
Replace(AU_tb_WebLink.Text, " ", "+") + "?ref=search_box"
' Try
End Sub
'https://www.youtube.com/watch?v=oXlxYj4otHo
'Private Sub AU_btn_import_Click(sender As Object, e As EventArgs) Handles
AU_btn_import.Click
'End Sub
End Class