Excelでデータを横にするのが意外とめんどいなぁ
マクロかなんか作るといいかも
JavaScriptからonChangeイベントを発火させる
onchange()コール
document.querySelector("select[name='samplePulldown'] option[value='b']").selected = true; document.querySelector("select[name='samplePulldown']").onchange();
C# EdgeのURLを取得
参照で
UIAutomationClient
UIAutomationTypes
追加しとくこと
Process[] procsEdge = Process.GetProcessesByName("msedge"); foreach (Process process in procsEdge) { // the chrome process must have a window if (process.MainWindowHandle == IntPtr.Zero) { continue; } AutomationElementCollection roots = AutomationElement.RootElement.FindAll(TreeScope.Element | TreeScope.Children, new AndCondition(new PropertyCondition(AutomationElement.ProcessIdProperty, process.Id), new PropertyCondition(AutomationElement.ClassNameProperty, "Chrome_WidgetWin_1"))); foreach (AutomationElement rootElement in roots) { // NamePropertyは Visual Studioについてくる inspect.exe で探す AutomationElement address = rootElement.FindFirst(TreeScope.Descendants, new PropertyCondition(AutomationElement.NameProperty, "アドレスと検索バー")); if (address == null) { // 英語対応はしとく address = rootElement.FindFirst(TreeScope.Descendants, new PropertyCondition(AutomationElement.NameProperty, "address and search bar")); if (address == null) { continue; } } ValuePattern v = (ValuePattern)address.GetCurrentPattern(ValuePattern.Pattern); if (v.Current.Value != null && v.Current.Value != "") { Console.WriteLine("URL:" + v.Current.Value); } } }
.net ファイルをダウンロードして保存する
Dim wc As New System.Net.WebClient() wc.DownloadFile("http://localhost/image.gif", "c:\test\1.gif") wc.Dispose()
ネタ元
vb.net ファイルをダウンロードして一気読み、保存する
Dim sr As StreamReader = New StreamReader("D:\test\hironimo.txt") txtRead.Text = sr.ReadToEnd sr.Close()
edge webview2でクッキー削除
CoreWebView2.CookieManager.DeleteAllCookies()
正規表現で最初のカンマのとこまで という設定
^([^,]+,){1}
[ ] 括弧内のいずれか 1 文字。 [^ ] 括弧内に含まれない 1 文字。 [^...] 角括弧に含まれる文字以外にマッチします。 {n} 直前のパターンを n 回繰り返し。
ブログやSEOなどの文章考える補佐してくれる「Rytr」
噂のGPT-3を使った自動文章作成ツール。
そんなに夢見るようなツールではないけど、プロットや下書き自動生成と考えれば結構すごいですね。
rytr.me