satocchiaブログ
2026
2025
2024
2023
2022
2021
2020
2019
2018
2017
2016
2015
2014
2013
1月
2月
3月
4月
5月
6月
7月
8月
9月
10月
11月
12月
全1件 (1件中 1-1件目)
1
しろまささん開設の掲示板に投稿したものと同じです。if get_UWSC_Name="deleteHistory.uws" ie =createoleobj( "internetexplorer.application" ) ie.navigate("https://www.yahoo.co.jp") ie.visible =true msgbox( "ヤフーのページが表示されたらOKを押してください" ) msgbox( "履歴を開いて「今日」のヤフーを確認してください" ) msgbox( "ヤフーの履歴をUWSCで消します" ) deleteHistorySite( "yahoo","今日" ) msgbox( "履歴を開いて「今日」の履歴にないことを確認してください" ) msgbox( "「今日」の履歴を丸ごとUWSCで消します" ) deleteHistoryDate( "今日" ) msgbox( "履歴を開いて「今日」の履歴が空(もしくは新規タブページのみ)になっていることを確認してください" )endiffunction deleteHistoryDate( DateString ) thread pressYes() with createoleobj( "shell.application" ) historyRoot=.namespace(34).items found =false for DatedHistory in historyRoot if DatedHistory.isfolder and (DatedHistory.name = DateString) found =true break endif next if !found result="" exit endif DatedHistory.invokeverb( "delete" ) endwith //dialogid =getid()fendfunction deleteHistorySite( SiteString,DateString="今日" ) thread pressYes() with createoleobj( "shell.application" ) historyRoot=.namespace(34).items found =false for DatedHistory in historyRoot if DatedHistory.isfolder and (DatedHistory.name = DateString) found =true break endif next if !found result="" exit endif websites =DatedHistory.GetFolder.Items() found =false for website in websites if pos( SiteString, website.name ) website.invokeverb( "delete" ) endif next endwith //dialogid =getid()fendprocedure pressYes() while 1 found =false for id in getallwin() if status( id, st_title )="警告" and _ status( id, st_class )="#32770" text =getstr(id,0,STR_ACC_STATIC) // = "次の履歴の項目を削除しますか? 今日" if pos( "次の履歴の項目を削除しますか?", text ) found =true break endif endif next sleep(0.05) if found clkitem(id,"はい",CLK_BTN) exit endif wendfend
2018.10.28
コメント(0)