2007/6/14

在Windows mobile 中 Launch app.

FlashLite要Launch application,可透過fscommand來達成,只要能知道app.的存在路徑即可。
所以重點便是app.的路徑,這些路徑要如何得知呢?

以Windows Mobile來說,若是用PC與手機連線,即可在檔案總管中的「行動裝置」裏,瀏覽手機裏的檔案,但許多app.的執行檔或系統檔案,是無法看到的。(即使開啟顯示隱藏檔案)

不過我們可以從一些捷徑檔中得到資訊。
從檔案總管開啟手機中的"\Windows\Start Menu\",可以看到一些捷徑檔:


點"Calendar"右鍵看內容:


上圖中可看到"poutlook.exe calendar",該.exe即是app.的執行檔路徑,而後面的"calendar"則是參數。

寫在Flash中則是:
fscommand("Launch","poutlook.exe,calendar")


這樣能直接Launch pocket outlook,並直接進入Calendar中

除了"\Windows\Start Menu\",其實整個手機都可以找找看有哪些捷徑檔,例如:
\Windows\Start Menu\Programs
\Windows\
都有很多。

在此列出一些Windows Mobile中一些常用App.的位置:
  • fscommand("Launch","poutlook.exe")//Outlook(但目前測試沒反應)
  • fscommand("Launch","poutlook.exe,calendar")//行事曆
  • fscommand("Launch","poutlook.exe,contacts")//聯絡人
  • fscommand("Launch","poutlook.exe,tasks")//Tasks
  • fscommand("Launch","iexplore.exe")//Internet Exploer
  • fscommand("Launch","iexplore.exe,http://www.google.com")//進IE並連網址
  • fscommand("Launch","tmail.exe")//Email
  • fscommand("Launch","cprog.exe")//Phone
  • fscommand("Launch","wmplayer.exe")//Windows Media Player
  • fscommand("Launch","fexplore.exe")//File Manager
  • fscommand("Launch","pmsnlauncher.exe")//Pocket MSN
  • fscommand("Launch","calc.exe")//計算機
  • fscommand("Launch",":MSPIMG")//Picture &Video
  • fscommand("Launch","pimg.exe")//Picture &Video
  • fscommand("Launch","HipCam.exe")//Picture &Video-->Camera
  • fscommand("Launch","HipEdit.exe")//Photo editor
  • fscommand("Launch",":MSSYNCAPP")//Active sync
  • fscommand("Launch","async.asy")//Active sync
  • fscommand("Launch",":MSPPT")//PowerPoint
  • fscommand("Launch","pxl.exe")//PowerPoint
  • fscommand("Launch","pword.exe")//Word
  • fscommand("Launch","notes.exe")//Notes
  • fscommand("Launch","skype.exe")//Skype
  • fscommand("Launch","solitare.exe")//Game:接龍
  • fscommand("Launch","BubbleBreaker.exe")//Game:刺泡泡
  • fscommand("Launch","saplaywm.exe")//Flash Lite Standalone Player
  • fscommand("Launch","shfind.exe")//Search
  • fscommand("Launch","SMS.exe")//SMS
  • fscommand("Launch","VoiceCommander.exe")//Speech Commander

沒有留言: