ç§ã¯äŒç€Ÿå¡ã§ãã ç§ã®è·å Žã¯ãªãã£ã¹ã§ã6人ãç§ã®ãã°ã«åº§ã£ãŠããŸãã éäžãå¿ èŠãªäœæ¥ããã»ã¹ãé€ããé³æ¥œã¯åžžã«ããã¯ã°ã©ãŠã³ãã§åçããããšããäºå®ã«é·ãéæ £ããŠããŸããã ããããã©ã³ã§é³æ¥œãèŽãããšã¯ãªããšãªãäžå¿«ã§ãããããã«é ãçããªãå§ããŸãã ãããã£ãŠãç§ã¯ãã€ã圌女ã®è©±ãèããŠããã®ã§ãç§ã®ãé£äººãã圌女ã®å£°ãèããªãããšã¯äžå¯èœã§ããã 圌ãã¯ç§ãscããŸãã...ããããç§ã¯é³æ¥œãã®ãã®ã«å¹²æžããããã§ã¯ãªããééã£ãé³æ¥œãèããããã§ãã ããããã誰ããèªåã®å Žæããç«ã¡äžããããšãªããã³ã³ãã¥ãŒã¿ãŒã«ãªãæ²ã§ãæ²ããªã³ã«ã§ããããã«ãã¿ããªãåã°ããããšæã£ãŠããŸããã
ã¹ããŒã
äžèŠãããšãèªååã«ã¯æ¬¡ã®æ©èœãå«ãŸããŠããå¿ èŠããããŸãïŒãããã¯ãŒã¯ããã®ä»»æã®ãã©ãã¯ã®ãªã³ã©ã€ã³åããã©ãã¯ã®å€æŽãé³éã®èª¿æŽãåçãäžæåæ¢ããæ©èœããããã£ãŠãäžæåæ¢ããæ©èœãããã³ã³ã³ãã¥ãŒã¿ãŒäžã®ããŒã«ã«ã«ãããã©ãã¯ãæå¹ã«ããããšãå¯èœã«ãªããŸãã AutoITããã¥ã¢ã«ãèªãããšãé€ããŠãç§ã¯ããã°ã©ãã³ã°èªäœã«ã¯ããŸã粟éããŠããŸããïŒWindowsã·ã¹ãã ã®ããã»ã¹ãåžžã«èªååã§ããããã«ãããã£ãã®ã§ãïŒã ã¹ããŒã ãããã«ç§ã®é ã«çŸããŸããïŒAutoIT + ICQ + Foobar + Plugin for Foobarãããã«ãããVKontakteãœãŒã·ã£ã«ãããã¯ãŒã¯ãããªã³ã©ã€ã³ã§é³æ¥œãæ€çŽ¢ããã³èŽãããšãã§ããŸãïŒã¹ã¯ãªãŒã³ã·ã§ããã«ãŠã£ã³ããŠã衚瀺ãããŸãïŒã äžçªäžã®è¡ã¯ç°¡åã§ããååãç¹å®ã®ã¡ãã»ãŒãžã«ã¡ãã»ãŒãžãéä¿¡ããAutoITã¹ã¯ãªãããããããããã¯ã¢ããããã¡ãã»ãŒãžã«åŸã£ãŠFoobarã§æäœãå®è¡ããŸãã
å®è£
AutoITã®å®è¡äžã«ããã¹ãŠã®ã¹ã¯ãªããæäœãç»é¢ã«è¡šç€ºãããããããŠã£ã³ããŠãéãããã©ãã¯ãéžæãããªã©ãåœåã¯ä»®æ³ãã·ã³ã䜿çšããäºå®ã§ããããæ¯ãè¿ã£ãŠã¿ããšãæè¿èŸä»»ããåŸæ¥å¡ã®ã¢ã€ãã«ã³ã³ãã¥ãŒã¿ãŒãèŠãŠãä»ã®ãšãããã¡ãã£ã¢ã»ã³ã¿ãŒãããããšæ±ºããŸãã圌ã§ãã
ãŸãããããã®æ°ããICQã¢ã«ãŠã³ããç»é²ããŸããã 圌ã®ããã«ããã¯ããŒã ãçºæããã®ã«ããã»ã©æéã¯ããããŸããã§ãã-ããªã¢ãŒããã 次ã«ãéžæããã³ã³ãã¥ãŒã¿ãŒã«QIP 8095ãã€ã³ã¹ããŒã«ããŸããããã®ã¯ã©ã€ã¢ã³ããéžæããã®ã¯ããã®äžã®ã¡ãã»ãŒãžãtxtãã¡ã€ã«ãšããŠä¿åãããŠããããã§ãã 次ã®ããã«èšå®ããŸããïŒãµãŒãã¹ã¡ãã»ãŒãžã®å±¥æŽã®ä¿åããªãã«ãïŒé£çµ¡å ãªã¹ãã®èª°ãããããã¯ãŒã¯ã«å ¥ã£ããå€åºãããªã©ïŒããã¹ãŠã®ãµãŠã³ãããªãã«ããŠãååãä»äºããæ°ãæ£ãããªãããã«ããŸãã 次ã«ãå¿ èŠãªãã©ã°ã€ã³ã§Foobarãã€ã³ã¹ããŒã«ãããããããŒã§åäœããããã«èšå®ããŸããã ãããŠæåŸã«ã圌ã¯ãããèªèº«ãšç§ãšäžç·ã«ãªãã£ã¹ã«åº§ã£ãŠãããã¹ãŠã®åŸæ¥å¡ã®é£çµ¡å ãªã¹ãã«å ¥ããŸããã
æºåäœæ¥ããã¹ãŠå®äºããåŸãã¹ã¯ãªããèªäœã®äœæãéå§ããŸããã ãã®åäœã®åçã¯åçŽã§ãïŒ2ç§ããšã«ãQIPãéä¿¡ã®å±¥æŽãä¿åãããã©ã«ããŒã確èªããå¿ èŠããããŸããtxtãã¡ã€ã«ãååšããå Žåããã¡ã€ã«ãèŠã€ãã£ãå Žåãã¡ãã»ãŒãžãèªã¿åããå±¥æŽãã¡ã€ã«èªäœãåé€ããæžã蟌ãŸããå 容ã«åŸã£ãŠã¡ãã»ãŒãžå ã®Foobar'omã§æäœãè¡ããŸãã
çµæãšããŠäœãèµ·ãã£ãã®ã
ã¹ã¯ãªããïŒ
Func Terminate ïŒ ïŒ ; ç¡éã«ãŒãã§åäœãããšãã«ã¹ã¯ãªããããªãã«ããæ©èœ
0 çªåºå£
Endfunc
HotKeySet ïŒ "{ESC}" ã "Terminate" ïŒ ; ã·ã£ããããŠã³æ©èœãESCããŒã«ãã€ã³ãããŸã
FileChangeDir ïŒ "CïŒProgram FilesQIPUsersXXXXXXXXXHistory" ïŒ ; äœæ¥ãã£ã¬ã¯ããªãå€æŽããŸã
äžæ¹ 1 ã¹ã¯ãªããäœæ¥ã®ç¡éã«ãŒããéå§ããŸã
$ Search = FileFindFirstFile ïŒ "* .txt" ïŒ ; äœæ¥ãã£ã¬ã¯ããªã§txtãã¡ã€ã«ãæ€çŽ¢ããè¿ãããæ€çŽ¢å€ã$ Searchå€æ°ã«å ¥ããŸã
$ Search = -1 thenã®å Žå ; å€æ°ã®å 容ã«ãããã¡ã€ã«ã®ç¢ºèª
ç¡ç ïŒ 1000 ïŒ ; ãã¡ã€ã«ãèŠã€ãããªãå Žåã¯ã1ç§åŸ æ©ããŠãããµã€ã¯ã«ãåéããŸã
ãã®ä» ; txtãã¡ã€ã«ãèŠã€ãã£ãå Žåã...
$ File = FileFindNextFile ïŒ $ Search ïŒ ; å€æ°ã«ãã¡ã€ã«åãå ¥åããŸã$ File
$ Log = FileRead ïŒ $ File ïŒ ; ãã¡ã€ã«ã®å 容ã$ logå€æ°ã«å ¥åããŸã
$ Log = StringSplit ïŒ $ Log ã @LF ïŒ ; QIPã§ã¯1ã€ã®ã¡ãã»ãŒãžã¯3è¡ã§æ§æãããŠããããïŒã¡ãã»ãŒãžãåä¿¡ãŸãã¯éä¿¡ãäœæè å/ã¡ãã»ãŒãžã®éä¿¡æ¥æ/ã¡ãã»ãŒãžèªäœãšããŒã¯ïŒãåèŠçŽ ã1è¡ã«çããå€æ°ããé åãäœæããŸã
$ Mess = $ log [ 3 ] ; ã¡ãã»ãŒãžèªäœã¯$ Messå€æ°ã«å ¥ããŸã
FileDelete ïŒ $ãã¡ã€ã« ïŒ ; å±¥æŽãã¡ã€ã«ãåé€ããŸã
MsgBox ïŒ "0" ã "" ã $ Mess ã 1 ïŒ ; å°ãã®éãã¹ã¯ãªãããå®è¡ããã³ãã³ããå«ãã¡ãã»ãŒãžã衚瀺ããŸã-ããã¯ãããã°çšã«å®è£ ãããŠããŸã
WinActivate ïŒ '[REGEXPCLASS :(ïŒIïŒ{97E27FAA-C0B3-4b8e-A693-ED7881E99FC1}]' ïŒ ; FoobarãŠã£ã³ããŠãã¢ã¯ãã£ãã«ããŸããããã¯ãã¯ã©ã¹ã®åŒã³åºãã«ãã£ãŠå®è£ ãããŸãããã¬ãŒã€ãŒã®ã¿ã€ãã«ã¯ãåçäžã®æ¥œæ²ã«å¿ããŠå€åããããã§ãã
WinWaitActive ïŒ '[REGEXPCLASS :(ïŒIïŒ{97E27FAA-C0B3-4b8e-A693-ED7881E99FC1}]' ïŒ ; FoobarãŠã£ã³ããŠãã¢ã¯ãã£ãã«ãªãã®ãåŸ ã¡ãŸã
$ Check = StringInStr ïŒ $ Mess ã "local" ïŒ ; ã¡ãã»ãŒãžæ¬æã§ãããŒã«ã«ããšããåèªããã§ãã¯ããŸã
if $ Check = 1 then ; ãããŒã«ã«ããã¡ãã»ãŒãžã®å é ã«ããå Žåã...
$ Mess = StringTrimLeft ïŒ $ Mess ã 6 ïŒ ; ã¡ãã»ãŒãžã®æåã®6æåããåãæšãŠããŸãïŒåèªããŒã«ã«ããã³åŸç¶ã®ã¹ããŒã¹ïŒ
éä¿¡ ïŒ "^ f" ïŒ ; CTRL + Fãéä¿¡ããŸã
WinWaitActive ïŒ '[REGEXPCLASS :(ïŒIïŒ{483DF8E3-09E3-40d2-BEB8-67284CE3559F}]' ïŒ ; ãã©ãã¯æ€çŽ¢ãŠã£ã³ããŠãéãã®ãåŸ ã£ãŠããŸãã
éä¿¡ ïŒ $æ··ä¹± ïŒ ; ã¡ãã»ãŒãžã®å 容ããªã¯ãšã¹ãã«å ¥åããŸã
ç¡ç ïŒ 500 ïŒ ; åç§åŸ ã£ãŠããŸã
éä¿¡ ïŒ "{TAB}" ïŒ ; TABããŒãæŒããŸã
ç¡ç ïŒ 500 ïŒ ; åŸ ã£ãŠããŸã
éä¿¡ ïŒ "{TAB}" ïŒ ; TabããŒãæŒããŸãïŒæ€çŽ¢çµæã衚瀺ããããŠã£ã³ããŠèŠçŽ ãã¢ã¯ãã£ãã«ãªããŸãïŒã
ç¡ç ïŒ 500 ïŒ ; åŸ ã£ãŠããŸã
éä¿¡ ïŒ "{DOWN}" ïŒ ; DOWNããŒãæŒããŸãïŒæ€çŽ¢ã§èŠã€ãã£ãæåã®ãã©ãã¯ã匷調衚瀺ãããŸãïŒã
ç¡ç ïŒ 500 ïŒ ; åŸ ã£ãŠããŸã
éä¿¡ ïŒ "{ENTER}" ïŒ ; èŠã€ãã£ããã©ãã¯ãå«ã
ç¡ç ïŒ 500 ïŒ ; åŸ ã£ãŠããŸã
WinClose ïŒ '[REGEXPCLASS :(ïŒIïŒ{483DF8E3-09E3-40d2-BEB8-67284CE3559F}]' ïŒ ; æ€çŽ¢ããã¯ã¹ãéããŸã
continueloop ; ç¡éwhileã«ãŒãã®å é ã«æ»ããŸã
endif ; ãããŒã«ã«ããšããåèªãã¡ãã»ãŒãžã®å é ã«ãªãå Žåãã¹ã¯ãªããã¯ããããèªã¿ç¶ããŸã...
$ Stop = StringRegExp ïŒ $ Mess ã "stop" ïŒ ; ...ã¡ãã»ãŒãžå ã®åèªã¹ããããæ¢ããŠãã
$ VolUp = StringRegExp ïŒ $ Mess ã " louder " ïŒ ; ã¡ãã»ãŒãžå ã§ãã倧ããªåèªãæ€çŽ¢ããŸã
$ VolDown = StringRegExp ïŒ $ Mess ã " quieter " ïŒ ; ã¡ãã»ãŒãžå ã®ãšã³ããªãquieterããæ€çŽ¢ããŸã
$ VolMax = StringRegExp ïŒ $ Mess ã "loud" ïŒ ; ã¡ãã»ãŒãžã§ã倧声ã§ããšã³ããªãæ€çŽ¢ããŸã
$ VolMin = StringRegExp ïŒ $ Mess ã "quiet" ïŒ ; ã¡ãã»ãŒãžå ã®ãquietããšããåèªãæ€çŽ¢ããŸã
$ Stop = 1 thenã®å Žå ; ã¯ãŒãã¹ããããéä¿¡ãããå Žåã..
éä¿¡ ïŒ "ïŒX" ïŒ ; ... ALT + Xãéä¿¡ããäžæåæ¢/åçãç¶ç¶ããŸã
continueloop ; ç¡éwhileã«ãŒãã®å é ã«æ»ããŸã
ãšã³ãã£ã
$ VolUp = 1ã® å Žå ; 倧声ã§èšèãéä¿¡ãããå Žåã...
éä¿¡ ïŒ "ïŒ{UP}" ïŒ ; ...
éä¿¡ ïŒ "ïŒ{UP}" ïŒ ; ...
éä¿¡ ïŒ "ïŒ{UP}" ïŒ ; ...
éä¿¡ ïŒ "ïŒ{UP}" ïŒ ; ...
éä¿¡ ïŒ "ïŒ{UP}" ïŒ ; ALT + UPããŒã®çµã¿åããã5åæŒããšãé³éããããã«å¢å ããŸã
continueloop ; ç¡éwhileã«ãŒãã®å é ã«æ»ããŸã
ãšã³ãã£ã
$ VolDown = 1 thenã®å Žå ; 倧声ã§èšèãéä¿¡ãããå Žåã...
éä¿¡ ïŒ "ïŒ{DOWN}" ïŒ ; ...
éä¿¡ ïŒ "ïŒ{DOWN}" ïŒ ; ...
éä¿¡ ïŒ "ïŒ{DOWN}" ïŒ ; ...
éä¿¡ ïŒ "ïŒ{DOWN}" ïŒ ; ...
éä¿¡ ïŒ "ïŒ{DOWN}" ïŒ ; ALT + DOWNããŒã®çµã¿åããã5åæŒããšãé³éããããã«æžå°ããŸã
continueloop ; ç¡éwhileã«ãŒãã®å é ã«æ»ããŸã
ãšã³ãã£ã
$ VolMax = 1ã® å Žå ; ãéšã ããããšããèšèãéããããã...
éä¿¡ ïŒ "ïŒC" ïŒ ; ... ALT + CããŒããŒãã·ã§ãŒãã«ãããéä¿¡ããŠãæ倧é³éããªã³ã«ããŸã
continueloop ; ç¡éwhileã«ãŒãã®å é ã«æ»ããŸã
ãšã³ãã£ã
$ VolMin = 1 thenã®å Žå ; ãéãã«ããšããèšèãéããããã...
éä¿¡ ïŒ "ïŒZ" ïŒ ; ...æå°é³éããªã³ã«ããALT + ZããŒããŒãã·ã§ãŒãã«ãããéä¿¡ããŸãïŒå®å šã«ã¯ãªãã«ãªããŸããïŒ
continueloop ; ç¡éwhileã«ãŒãã®å é ã«æ»ããŸã
ãšã³ãã£ã
; ã¹ã¿ã³ãã£ã³ã°ifsã®ãããããæ©èœããªãã£ãå Žåã...
éä¿¡ ïŒ "^ q" ïŒ ; CTRL + QããŒããŒãã·ã§ãŒãã«ãããéä¿¡ããŸããããã¯VKã§é³æ¥œãæ€çŽ¢ããFoobarãã©ã°ã€ã³ãŠã£ã³ããŠãéã圹å²ãæãããŸãã
WinWaitActive ïŒ "vk.com audio Search" ïŒ ; ãã©ã°ã€ã³ãŠã£ã³ããŠãã¢ã¯ãã£ãã«ãªããŸã§åŸ æ©ããŸã
ControlCommand ïŒ "vk.com audio Search" ã "" ã "ComboBox1" ã "SetCurrentSelection" ã 6 ïŒ ; ããããããŠã³ãªã¹ãã®[æ€çŽ¢ãããµãŒãã¹]ããvk.comïŒVKïŒãéžæããŸã
ç¡ç ïŒ 500 ïŒ ; åç§åŸ ã£ãŠããŸã
ControlFocus ïŒ "vk.com audio Search" ã "" ã "Edit1" ïŒ ; ã¯ãšãªå ¥åè¡ãæå¹ã«ããŸã
ç¡ç ïŒ 500 ïŒ ; åŸ ã£ãŠããŸã
éä¿¡ ïŒ $æ··ä¹± ïŒ ; ã¡ãã»ãŒãžã®å 容ãQIPããå ¥åè¡ã«éä¿¡ããŸã
ç¡ç ïŒ 5000 ïŒ ; ãã©ã°ã€ã³ããã©ãã¯ãæ€çŽ¢ããéã5ç§éåŸ æ©ããŸã
äžæ¹ 1 ç¡éã«ãŒãã䜿çšããå Žåãé€ããŠã次ã«èµ·ããããšãå®è£ ããæ¹æ³ãããããªã
$ i = ControlListView ïŒ "vk.com audio Search" ã "" ã "SysListView321" ã "GetItemCount" ïŒ ; èŠã€ãã£ããã©ãã¯ã®æ°ãå€æ°$ iã«è¿œå ããŸã
$ i = 0ã® å Žå ; ãã©ãã¯ãèŠã€ãããªãå ŽåïŒãã©ã°ã€ã³ãæåã«çµæãèŠã€ããããªãå ŽåããããŸãïŒ
ControlClick ïŒ "vk.com audio Search" ã "" ã "Button1" ïŒ ; [æ€çŽ¢ã®åæ¢]ãã¿ã³ãã¯ãªãã¯ããŸã
ç¡ç ïŒ 500 ïŒ ; åŸ ã£ãŠããŸã
ControlClick ïŒ "vk.com audio Search" ã "" ã "Button1" ïŒ ; [æ€çŽ¢]ãã¿ã³ãã¯ãªãã¯ããŸã
ç¡ç ïŒ 5000 ïŒ ; åŸ ã£ãŠããŸã
exitloop ; å åŽã®ç¡éwhileã«ãŒããçµäºããŸãïŒåžžã«2åç®ãèŠã€ããŸãïŒ
ä»ã«
exitloop ; åããŠãããèŠã€ããããªãã£ãå Žåããããããã©ãã¯åãééã£ãŠå ¥åãããã¹ã¯ãªããã¯å éšç¡éwhileã«ãŒããçµäºããŸãã
ãšã³ãã£ã
æž©ãã
ControlListView ïŒ "vk.com audio Search" ã "" ã "SysListView321" ã "Select" ã 1 ïŒ ; æ€çŽ¢çµæãã2çªç®ã®ãã©ãã¯ãéžæããŸãïŒæåã®ãã©ãã¯ã¯äœããã®çç±ã§00:00ã§ããããšãå€ããåçãããŸããïŒ
ControlClick ïŒ "vk.com audio Search" ã "" ã "Button3" ïŒ ; 2çªç®ã®ãã©ãã¯ããã¬ã€ãªã¹ãã«è¿œå ããŸã
WinClose ïŒ "vk.com audio Search" ïŒ ; ãã©ã°ã€ã³ãŠã£ã³ããŠãéããŸã
WinWaitActive ïŒ '[REGEXPCLASS :(ïŒIïŒ{97E27FAA-C0B3-4b8e-A693-ED7881E99FC1}]' ïŒ ; FoobarãŠã£ã³ããŠãã¢ã¯ãã£ãã«ãªããŸã§åŸ æ©ããŸã
ç¡ç ïŒ 500 ïŒ ; åç§åŸ ã£ãŠããŸã
éä¿¡ ïŒ "{END}" ïŒ ; éä¿¡ãã
ç¡ç ïŒ 500 ïŒ ; åŸ ã£ãŠããŸã
éä¿¡ ïŒ "{ENTER}" ïŒ ; ãã©ãã¯ãå«ãENTERããŒãæŒããŠéä¿¡ããŸã
ãšã³ãã£ã
æž©ãã ç¡éã«ãŒãã®å é ã«æ»ããŸã
ä»çµã¿
éå§ããåã«ãããŒã«ã«ã®é³æ¥œã©ã€ãã©ãªãFoobarã®ãã¬ã€ãªã¹ãã«è¿œå ããå¿ èŠããããŸãã 誰ããåã«ãã¡ã¿ãªã«ãé»ã«ãã§ãŒãã€ã³ããšæžããšãã¹ã¯ãªããã¯VKã§ãã®æ²ããèŠã€ããããããå«ããŸãã ãlocal joe satriani crowd chantããšæžããå Žåãã¹ã¯ãªããã¯ãã¬ã€ãªã¹ãå ã®ãã©ãã¯ãèŠã€ããŠããããå«ããŸãã 次ã®ã³ãã³ãã䜿çšã§ããŸãïŒãéããããéšã ãããããéããããéšã ãããããåæ¢ãã
ãããã«
ç§ã¯ãããæ°æéè¡ããŸããããã¹ã¯ãªãããçæ³ããã»ã©é ãããšãå€ãã®æ¬ é¥ãããããšãç¥ã£ãŠããŸããããšãã°ãã³ãŒããäœããã®æ¹æ³ã§çãããå¿ èŠããããŸãïŒããããããæ£ç¢ºãªæ¹æ³ã§ã³ãã³ãã®ãã£ãããåçã§ããŸãïŒãŸãã¯ãããŒã«ã«ããšããåèªãæã€äººããã¬ã€ãªã¹ãã«ãªãå Žåã¯ããªã³ã©ã€ã³ãªã©ã§æ¢ãå¿ èŠããããŸãã ç§ã¯ããã°ã©ããŒã§ã¯ãªãã®ã§ãé£ãããªãå Žåã¯ãã³ãŒããã«ããšã©ãŒã«ã€ããŠæžããŠããã ããã°å¹žãã§ãã