[表示 : 全て 最新50 1-99 101- 201- 301- 401- 501- 601- 701- 801- 901- 2chのread.cgiへ]
Update time : 07/18 04:43 / Filesize : 238 KB / Number-of Response : 957
[このスレッドの書き込みを削除する]
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧] [類似スレッド一覧]


↑キャッシュ検索、類似スレ動作を修正しました、ご迷惑をお掛けしました

docomo PRO T-01A Part24【TG01/WM6.1】



909 名前:900 mailto:sage [2009/10/19(月) 18:21:49 ID:J8Rl7QTB0]
>>883 >>900
簡単な動作チェックしかしていませんが、例えばこんな感じ。
これに加えて、Bluetoothを自動的にONにする仕組みを作れば、
良いんじゃないかな。

■start.mscr(起動用・ショートカットをスタートアップフォルダへ)
―――――――――――――――――――――――――――――――
mainscriptname = "main.mscr"
mainscriptpath = SystemPath( "ScriptPath" ) & "\" & mainscriptname

##main.mscrがすでに起動中なら一旦終了させる。
If( ScriptProcExists( mainscriptpath ))
KillScript( mainscriptpath )
SleepMessage( 3, mainscriptname & "を再起動しています。" )
EndIf

Run( mainscriptpath )
―――――――――――――――――――――――――――――――

■main.mscr(常駐スクリプト)
―――――――――――――――――――――――――――――――
scriptpath1 = SystemPath( "ScriptPath" ) & "\timer1.mscr"

Repeat( 0 )
##timer1.mscrが動いていない事を確認して実行
If( Not ScriptProcExists( scriptpath1 ))
##Notification Queueからtimer1.mscrを削除
RemoveNotifications( scriptpath1 )
##現時刻から30秒後にtimer1.mscrを実行
##ActiveSync時に意図せずに実行されて
##しまう場合は、長めに設定してください。
timeA = TimeStamp() + 30
RunAt( timeA, scriptpath1 )
EndIf
sleep( 5000 )
EndRepeat
―――――――――――――――――――――――――――――――

■timer1.mscr(スリープモードに入ったら実行させる)
―――――――――――――――――――――――――――――――
mainscriptname = "main.mscr"
mainscriptpath = SystemPath( "ScriptPath" ) & "\" & mainscriptname

##再起動時に動かないようにmain.mscrの起動をチェック
If( ScriptProcExists( mainscriptpath ))
##動作チェック用に音を鳴らす
sound1 = "\Windows\CapVideoVoice.wav"
PlaySound( sound1 )

##パケット通信を切断
##SendSpecial( 126, "down" )
##SendSpecial( 126, "up" )

##BluetoothをOFF
RunWait( "\Program Files\wifictrl\wifictrl.exe", "off /BT")

##再びスリープモードに移行
PowerOff()
EndIf
―――――――――――――――――――――――――――――――






[ 続きを読む ] / [ 携帯版 ]

全部読む 前100 次100 最新50 [ このスレをブックマーク! 携帯に送る ] 2chのread.cgiへ
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧]( ´∀`)<238KB

read.cgi ver5.27 [feat.BBS2 +1.6] / e.0.2 (02/09/03) / eucaly.net products.
担当:undef