Sign in to follow this  
Followers 0
FuryCell

Numeric IDs for scite

5 posts in this topic

#1 ·  Posted (edited)

I'm currently extending the functionality in one my apps and am using the menucommand: interface in Scite. I've found various people using the command on the forum but do not know where to find the numeric id of a command for a command in the tools menu (Run). Anyone with any insight into this info?

_SciTE_Send_Command(0, $Scite_hwnd, "menucommand:?");I dont know the numeric id
Func _SciTE_Send_Command($My_Hwnd, $Scite_hwnd, $sCmd)
    Local $CmdStruct = DllStructCreate('Char[' & StringLen($sCmd) + 1 & ']')
    If @error Then Return
    DllStructSetData($CmdStruct, 1, $sCmd)
    Local $COPYDATA = DllStructCreate('Ptr;DWord;Ptr')
    DllStructSetData($COPYDATA, 1, 1)
    DllStructSetData($COPYDATA, 2, StringLen($sCmd) + 1)
    DllStructSetData($COPYDATA, 3, DllStructGetPtr($CmdStruct))
    Local $sss = _SendMessage($Scite_hwnd, 0x004A, $My_Hwnd, DllStructGetPtr($COPYDATA), 0, "hwnd", "ptr")
    $CmdStruct = 0
    Return $sss
EndFunc   ;==>_SciTE_Send_Command

Edit:Typo

Edited by FuryCell

HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Reshacker: MENUITEM "&Go\tF5", 303

Or you could use GUIMenu.au3

SCITE MENU
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
{
POPUP "&File"
{
    MENUITEM "&New\tCtrl+N",  101
    MENUITEM "&Open...\tCtrl+O",  102
    MENUITEM "Open Selected &Filename\tCtrl+Shift+O",  103
    MENUITEM "&Revert\tCtrl+R",  104
    MENUITEM "&Close\tCtrl+W",  105
    MENUITEM "&Save\tCtrl+S",  106
    MENUITEM "Save &As...\tCtrl+Shift+S",  110
    MENUITEM "Save a Cop&y...\tCtrl+Shift+P",  116
    MENUITEM "Copy Pat&h",  118
    POPUP "Encodin&g"
    {
        MENUITEM "&Code Page Property",  150
        MENUITEM "UTF-16 &Big Endian",  151
        MENUITEM "UTF-16 &Little Endian",  152
        MENUITEM "UTF-8 &with BOM",  153
        MENUITEM "&UTF-8",  154
    }
    POPUP "&Export"
    {
        MENUITEM "As &HTML...",  111
        MENUITEM "As &RTF...",  112
        MENUITEM "As &PDF...",  113
        MENUITEM "As &LaTeX...",  115
        MENUITEM "As &XML...",  117
    }
    MENUITEM SEPARATOR
    MENUITEM "Page Set&up...",  130
    MENUITEM "&Print...\tCtrl+P",  131
    MENUITEM SEPARATOR
    MENUITEM "&Load Session...",  132
    MENUITEM "Sa&ve Session...",  133
    MENUITEM SEPARATOR
    MENUITEM "E&xit",  140
}
POPUP "&Edit"
{
    MENUITEM "&Undo\tCtrl+Z",  201
    MENUITEM "&Redo\tCtrl+Y",  202
    MENUITEM SEPARATOR
    MENUITEM "Cu&t\tCtrl+X",  203
    MENUITEM "&Copy\tCtrl+C",  204
    MENUITEM "&Paste\tCtrl+V",  205
    MENUITEM "Duplicat&e\tCtrl+D",  250
    MENUITEM "&Delete\tDel",  206
    MENUITEM "Select &All\tCtrl+A",  207
    MENUITEM "Copy as RT&F",  245
    MENUITEM SEPARATOR
    MENUITEM "Match &Brace\tCtrl+E",  230
    MENUITEM "Select t&o Brace\tCtrl+Shift+E",  231
    MENUITEM "S&how Calltip\tCtrl+Shift+Space",  232
    MENUITEM "Complete S&ymbol\tCtrl+I",  233
    MENUITEM "Complete &Word\tCtrl+Enter",  234
    MENUITEM "Expand Abbre&viation\tCtrl+B",  242
    MENUITEM "&Insert Abbreviation\tCtrl+Shift+R",  247
    MENUITEM "Block Co&mment or Uncomment\tCtrl+Q",  243
    MENUITEM "Bo&x Comment\tCtrl+Shift+B",  246
    MENUITEM "Stream Comme&nt\tCtrl+Shift+Q",  244
    MENUITEM "Make &Selection Uppercase\tCtrl+Shift+U",  240
    MENUITEM "Make Selection &Lowercase\tCtrl+U",  241
    POPUP "Para&graph"
    {
        MENUITEM "&Join",  248
        MENUITEM "&Split",  249
    }
}
POPUP "&Search"
{
    MENUITEM "&Find...\tCtrl+F",  210
    MENUITEM "Find &Next\tF3",  211
    MENUITEM "Find Previou&s\tShift+F3",  212
    MENUITEM "F&ind in Files...\tCtrl+Shift+F",  215
    MENUITEM "R&eplace...\tCtrl+H",  216
    MENUITEM "Incrementa&l Search...\tCtrl+Alt+I",  252
    MENUITEM SEPARATOR
    MENUITEM "&Go to...\tCtrl+G",  220
    MENUITEM "Next Book&mark\tF2",  221
    MENUITEM "Pre&vious Bookmark\tShift+F2",  223
    MENUITEM "Toggle Bookmar&k\tCtrl+F2",  222
    MENUITEM "&Clear All Bookmarks",  224
}
POPUP "&View"
{
    MENUITEM "Toggle &current fold",  235
    MENUITEM "Toggle &all folds",  236
    MENUITEM SEPARATOR
    MENUITEM "Full Scree&n\tF11",  961
    MENUITEM "&Tool Bar",  408
    MENUITEM "Tab &Bar",  410
    MENUITEM "&Status Bar",  411
    MENUITEM SEPARATOR
    MENUITEM "&Whitespace\tCtrl+Shift+8",  402
    MENUITEM "&End of Line\tCtrl+Shift+9",  403
    MENUITEM "&Indentation Guides",  404
    MENUITEM "&Line Numbers",  407
    MENUITEM "&Margin",  405
    MENUITEM "&Fold Margin",  406
    MENUITEM "&Output\tF8",  409
    MENUITEM "&Parameters\tShift+F8",  412
}
POPUP "&Tools"
{
    MENUITEM "&Compile\tCtrl+F7",  301
    MENUITEM "&Build\tF7",  302
    MENUITEM "&Go\tF5",  303
    MENUITEM "&Stop Executing\tCtrl+Break",  304
    MENUITEM SEPARATOR
    MENUITEM "&Next Message\tF4",  306
    MENUITEM "&Previous Message\tShift+F4",  307
    MENUITEM "Clear &Output\tShift+F5",  420
    MENUITEM "&Switch Pane\tCtrl+F6",  421
}
POPUP "&Options"
{
    MENUITEM "&Always On Top",  960
    MENUITEM "Open Files &Here",  413
    MENUITEM "Vertical &Split",  401
    MENUITEM "&Wrap",  414
    MENUITEM "Wrap Out&put",  415
    MENUITEM "&Read-Only",  416
    MENUITEM SEPARATOR
    POPUP "&Line End Characters"
    {
        MENUITEM "CR &+ LF",  430
        MENUITEM "&CR",  431
        MENUITEM "&LF",  432
    }
    MENUITEM "&Convert Line End Characters",  433
    MENUITEM SEPARATOR
    MENUITEM "Change Inden&tation Settings...\tCtrl+Shift+I",  440
    MENUITEM "Use &Monospaced Font\tCtrl+F11",  450
    MENUITEM SEPARATOR
    MENUITEM "Open Local &Options File",  460
    MENUITEM "Open &Directory Options File",  465
    MENUITEM "Open &User Options File",  461
    MENUITEM "Open &Global Options File",  462
    MENUITEM "Open A&bbreviations File",  463
    MENUITEM "Open Lua Startup Scr&ipt",  464
    MENUITEM SEPARATOR
}
POPUP "&Language"
{
    MENUITEM SEPARATOR
}
POPUP "&Buffers"
{
    MENUITEM "&Previous\tShift+F6",  501
    MENUITEM "&Next\tF6",  502
    MENUITEM "&Close All",  503
    MENUITEM "&Save All",  504
}
POPUP "&Help"
{
    MENUITEM "&Help\tF1",  901
    MENUITEM "&SciTE Help\tCtrl+F1",  903
    MENUITEM "&About SciTE",  902
}
}

Edited by Mat

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I'm currently extending the functionality in one my apps and am using the menucommand: interface in Scite. I've found various people using the command on the forum but do not know where to find the numeric id of a command for a command in the tools menu (Run). Anyone with any insight into this info?

_SciTE_Send_Command(0, $Scite_hwnd, "menucommand:?");I dont know the numeric id
Func _SciTE_Send_Command($My_Hwnd, $Scite_hwnd, $sCmd)
    Local $CmdStruct = DllStructCreate('Char[' & StringLen($sCmd) + 1 & ']')
    If @error Then Return
    DllStructSetData($CmdStruct, 1, $sCmd)
    Local $COPYDATA = DllStructCreate('Ptr;DWord;Ptr')
    DllStructSetData($COPYDATA, 1, 1)
    DllStructSetData($COPYDATA, 2, StringLen($sCmd) + 1)
    DllStructSetData($COPYDATA, 3, DllStructGetPtr($CmdStruct))
    Local $sss = _SendMessage($Scite_hwnd, 0x004A, $My_Hwnd, DllStructGetPtr($COPYDATA), 0, "hwnd", "ptr")
    $CmdStruct = 0
    Return $sss
EndFunc   ;==>_SciTE_Send_Command

Edit:Typo

They are defined in IFaceTable.cxx available with the SciTE source.

Jos

{"IDM_ABBREV",242},
    {"IDM_ABOUT",902},
    {"IDM_ACTIVATE",320},
    {"IDM_BLOCK_COMMENT",243},
    {"IDM_BOOKMARK_CLEARALL",224},
    {"IDM_BOOKMARK_NEXT",221},
    {"IDM_BOOKMARK_NEXT_SELECT",225},
    {"IDM_BOOKMARK_PREV",223},
    {"IDM_BOOKMARK_PREV_SELECT",226},
    {"IDM_BOOKMARK_TOGGLE",222},
    {"IDM_BOX_COMMENT",246},
    {"IDM_BUFFER",1200},
    {"IDM_BUFFERSEP",505},
    {"IDM_BUILD",302},
    {"IDM_CLEAR",206},
    {"IDM_CLEAROUTPUT",420},
    {"IDM_CLOSE",105},
    {"IDM_CLOSEALL",503},
    {"IDM_COMPILE",301},
    {"IDM_COMPLETE",233},
    {"IDM_COMPLETEWORD",234},
    {"IDM_COPY",204},
    {"IDM_COPYASRTF",245},
    {"IDM_CUT",203},
    {"IDM_DUPLICATE",250},
    {"IDM_ENCODING_DEFAULT",150},
    {"IDM_ENCODING_UCOOKIE",154},
    {"IDM_ENCODING_UCS2BE",151},
    {"IDM_ENCODING_UCS2LE",152},
    {"IDM_ENCODING_UTF8",153},
    {"IDM_ENTERSELECTION",256},
    {"IDM_EOL_CONVERT",433},
    {"IDM_EOL_CR",431},
    {"IDM_EOL_CRLF",430},
    {"IDM_EOL_LF",432},
    {"IDM_EXPAND",235},
    {"IDM_EXPAND_ENSURECHILDRENVISIBLE",238},
    {"IDM_FILER",114},
    {"IDM_FIND",210},
    {"IDM_FINDINFILES",215},
    {"IDM_FINDNEXT",211},
    {"IDM_FINDNEXTBACK",212},
    {"IDM_FINDNEXTBACKSEL",214},
    {"IDM_FINDNEXTSEL",213},
    {"IDM_FINISHEDEXECUTE",305},
    {"IDM_FOLDMARGIN",406},
    {"IDM_FULLSCREEN",961},
    {"IDM_GO",303},
    {"IDM_GOTO",220},
    {"IDM_HELP",901},
    {"IDM_HELP_SCITE",903},
    {"IDM_IMPORT",1300},
    {"IDM_INCSEARCH",252},
    {"IDM_INS_ABBREV",247},
    {"IDM_JOIN",248},
    {"IDM_LANGUAGE",1400},
    {"IDM_LINENUMBERMARGIN",407},
    {"IDM_LOADSESSION",132},
    {"IDM_LWRCASE",241},
    {"IDM_MACROLIST",314},
    {"IDM_MACROPLAY",313},
    {"IDM_MACRORECORD",311},
    {"IDM_MACROSTOPRECORD",312},
    {"IDM_MACRO_SEP",310},
    {"IDM_MATCHBRACE",230},
    {"IDM_MONOFONT",450},
    {"IDM_MOVETABLEFT",509},
    {"IDM_MOVETABRIGHT",508},
    {"IDM_MRUFILE",1000},
    {"IDM_MRU_SEP",120},
    {"IDM_NEW",101},
    {"IDM_NEXTFILE",502},
    {"IDM_NEXTFILESTACK",507},
    {"IDM_NEXTMATCHPPC",262},
    {"IDM_NEXTMSG",306},
    {"IDM_ONTOP",960},
    {"IDM_OPEN",102},
    {"IDM_OPENABBREVPROPERTIES",463},
    {"IDM_OPENDIRECTORYPROPERTIES",465},
    {"IDM_OPENFILESHERE",413},
    {"IDM_OPENGLOBALPROPERTIES",462},
    {"IDM_OPENLOCALPROPERTIES",460},
    {"IDM_OPENLUAEXTERNALFILE",464},
    {"IDM_OPENSELECTED",103},
    {"IDM_OPENUSERPROPERTIES",461},
    {"IDM_PASTE",205},
    {"IDM_PASTEANDDOWN",208},
    {"IDM_PREVFILE",501},
    {"IDM_PREVFILESTACK",506},
    {"IDM_PREVMATCHPPC",260},
    {"IDM_PREVMSG",307},
    {"IDM_PRINT",131},
    {"IDM_PRINTSETUP",130},
    {"IDM_QUIT",140},
    {"IDM_READONLY",416},
    {"IDM_REDO",202},
    {"IDM_REPLACE",216},
    {"IDM_REVERT",104},
    {"IDM_RUNWIN",351},
    {"IDM_SAVE",106},
    {"IDM_SAVEACOPY",116},
    {"IDM_SAVEALL",504},
    {"IDM_SAVEAS",110},
    {"IDM_SAVEASHTML",111},
    {"IDM_SAVEASPDF",113},
    {"IDM_SAVEASRTF",112},
    {"IDM_SAVEASTEX",115},
    {"IDM_SAVEASXML",117},
    {"IDM_SAVESESSION",133},
    {"IDM_SELECTALL",207},
    {"IDM_SELECTTOBRACE",231},
    {"IDM_SELECTTONEXTMATCHPPC",263},
    {"IDM_SELECTTOPREVMATCHPPC",261},
    {"IDM_SELMARGIN",405},
    {"IDM_SHOWCALLTIP",232},
    {"IDM_SPLIT",249},
    {"IDM_SPLITVERTICAL",401},
    {"IDM_SRCWIN",350},
    {"IDM_STATUSWIN",353},
    {"IDM_STOPEXECUTE",304},
    {"IDM_STREAM_COMMENT",244},
    {"IDM_SWITCHPANE",421},
    {"IDM_TABSIZE",440},
    {"IDM_TABWIN",354},
    {"IDM_TOGGLEOUTPUT",409},
    {"IDM_TOGGLEPARAMETERS",412},
    {"IDM_TOGGLE_FOLDALL",236},
    {"IDM_TOGGLE_FOLDRECURSIVE",237},
    {"IDM_TOOLS",1100},
    {"IDM_TOOLWIN",352},
    {"IDM_UNDO",201},
    {"IDM_UPRCASE",240},
    {"IDM_VIEWEOL",403},
    {"IDM_VIEWGUIDES",404},
    {"IDM_VIEWSPACE",402},
    {"IDM_VIEWSTATUSBAR",411},
    {"IDM_VIEWTABBAR",410},
    {"IDM_VIEWTOOLBAR",408},
    {"IDM_WRAP",414},
    {"IDM_WRAPOUTPUT",415},
Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

I'm currently extending the functionality in one my apps and am using the menu command: interface in Scite. I've found various people using numeric ID.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0