MS Visual C++風”次の文字列を検索”
- ページ: Macro/投稿
- 作者: 正雪?
- カテゴリー: js,vbs
- 投稿日: 2006-09-20 (水) 21:49:07
メッセージ
・文字列選択時、選択文字列を検索
・文字列未選択時、カーソル位置の単語を検索
*MS VC++のCtrl+F3検索が癖なんで強引に作成(とりあえず動作する)
http://www.kjps.net/user/koseki/ctrlF3.html
0
1
2
3
4
5
6
7
8
9
10
11
| | if( Editor.IsTextSelected() == 0 )
Editor.SelectWord();
Editor.SearchClearMark( );
Editor.Right();
Editor.SearchNext("", 0);
if( Editor.IsTextSelected() != 0 )
{ Editor.Left(); Editor.SearchNext("", 0); }
|
0
1
2
3
4
5
6
7
8
9
10
11
| | if( Editor.IsTextSelected() == 0 )
Editor.SelectWord();
Editor.SearchClearMark( );
Editor.Left();
Editor.SearchPrev("", 0);
if( Editor.IsTextSelected() != 0 )
{ Editor.Left(); Editor.SearchNext("", 0); }
|