「HSPキーワード検索」の版間の差分
ナビゲーションに移動
検索に移動
<source>タグを<syntaxhighlight>タグに置き換える |
改行の修正 |
||
| 1行目: | 1行目: | ||
プログラミング言語HSP(Hot Soup Processor)のHSPキーワード検索機能を再現しました。 | プログラミング言語HSP(Hot Soup Processor)のHSPキーワード検索機能を再現しました。 | ||
カーソル付近の単語をhdl.exe(HSP Docs Library)で検索します。 | |||
カーソル付近の単語をhdl.exe(HSP Docs Library)で検索します。 | |||
==ソースコード== | [https://www.haijin-boys.com/wiki/images/8/8f/hsp_keyword_search.zip ダウンロード] | ||
== ソースコード == | |||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
#title="HSPキーワード検索"; | #title="HSPキーワード検索"; | ||
2023年5月17日 (水) 15:51時点における版
プログラミング言語HSP(Hot Soup Processor)のHSPキーワード検索機能を再現しました。
カーソル付近の単語をhdl.exe(HSP Docs Library)で検索します。
ソースコード
#title="HSPキーワード検索";
///////////////////////////////
//選択処理
///////////////////////////////
//カーソル位置保存
CursorPointX=document.selection.GetActivePointX(mePosView);
CursorPointY=document.selection.GetActivePointY(mePosView);
//単語選択
document.selection.SelectWord();
//選択文字取得
var str=document.selection.Text;
//カーソル位置復元
document.selection.SetActivePoint(mePosView,CursorPointX,CursorPointY,false);
///////////////////////////////
//ActiveX処理
///////////////////////////////
//オブジェクト取得
var obj=new ActiveXObject("WScript.Shell");
//exe起動
obj.Run("C:/hsp351p/hdl.exe "+str);
//オブジェクト解放
obj=null;
スポンサーリンク