bräuchte hilfe bei "SendScite Command"

  • hallo leutz,

    bräuchte mal wieder euer Wissen :D .

    Mit hilfe dieser Function können Befehle direkt in die Site console geschrieben werden. ( gefunden in Organiceincludes )

    [autoit]

    Func SendSciTE_Command($sCmd, $Wait_For_Return_Info = 0)
    Local $WM_COPYDATA = 74
    Local $WM_GETTEXT = 0x000D
    Local $WM_GETTEXTLENGTH = 0x000E224
    Local Const $SCI_GETLINE = 2153
    Local $Scite_hwnd = WinGetHandle('DirectorExtension')
    Local $My_Hwnd = GUICreate('AutoIt3-SciTE interface')
    Local $My_Dec_Hwnd = Dec(StringTrimLeft($My_Hwnd, 2))
    $sCmd = ':' & $My_Dec_Hwnd & ':' & $sCmd
    Local $CmdStruct = DllStructCreate('Char[' & StringLen($sCmd) + 1 & ']')
    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))
    DllCall('User32.dll', 'None', 'SendMessage', 'HWnd', $Scite_hwnd, _
    'Int', $WM_COPYDATA, 'HWnd', $My_Hwnd, _
    'Ptr', DllStructGetPtr($COPYDATA))
    GUIDelete($My_Hwnd)
    EndFunc ;==>SendSciTE_Command

    [/autoit][autoit][/autoit][autoit][/autoit]

    wie z.b.

    [autoit]

    SendSciTE_Command('menucommand:104');macht einen reload
    SendSciTE_Command('menucommand:420');leert das console fenster
    SendSciTE_Command('menucommand:106');speichert die aktuell geöffnete datei

    [/autoit]

    nun zu meiner Frage:

    Gibt es eine Dokumentation hierzu, oder vieleicht eine art Verzeichniss mit den möglichen Befehlen die gesendet werden können und was sie bewirken ?

    Gruß
    Pre

    • Offizieller Beitrag
    Spoiler anzeigen

    #cs
    Here are the other values that could be useful for you:
    Go = 301
    Compile = 302


    Complete list from the SciTE source file scite.h
    // Menu IDs.
    // These are located 100 apart. No one will want more than 100 in each menu
    #define IDM_MRUFILE 1000
    #define IDM_TOOLS 1100
    #define IDM_BUFFER 1200
    #define IDM_IMPORT 1300
    #define IDM_LANGUAGE 1400

    // File
    #define IDM_NEW 101
    #define IDM_OPEN 102
    #define IDM_OPENSELECTED 103
    #define IDM_REVERT 104
    #define IDM_CLOSE 105
    #define IDM_SAVE 106
    #define IDM_SAVEAS 110
    #define IDM_SAVEASHTML 111
    #define IDM_SAVEASRTF 112
    #define IDM_SAVEASPDF 113
    #define IDM_FILER 114
    #define IDM_SAVEASTEX 115
    #define IDM_SAVEACOPY 116
    #define IDM_SAVEASXML 117
    #define IDM_MRU_SEP 120
    #define IDM_PRINTSETUP 130
    #define IDM_PRINT 131
    #define IDM_LOADSESSION 132
    #define IDM_SAVESESSION 133
    #define IDM_QUIT 140
    #define IDM_ENCODING_DEFAULT 150
    #define IDM_ENCODING_UCS2BE 151
    #define IDM_ENCODING_UCS2LE 152
    #define IDM_ENCODING_UTF8 153
    #define IDM_ENCODING_UCOOKIE 154

    #define MRU_START 16
    #define IMPORT_START 19
    #define TOOLS_START 3


    // Edit
    #define IDM_UNDO 201
    #define IDM_REDO 202
    #define IDM_CUT 203
    #define IDM_COPY 204
    #define IDM_PASTE 205
    #define IDM_CLEAR 206
    #define IDM_SELECTALL 207
    #define IDM_PASTEANDDOWN 208
    #define IDM_FIND 210
    #define IDM_FINDNEXT 211
    #define IDM_FINDNEXTBACK 212
    #define IDM_FINDNEXTSEL 213
    #define IDM_FINDNEXTBACKSEL 214
    #define IDM_FINDINFILES 215
    #define IDM_REPLACE 216
    #define IDM_GOTO 220
    #define IDM_BOOKMARK_NEXT 221
    #define IDM_BOOKMARK_TOGGLE 222
    #define IDM_BOOKMARK_PREV 223
    #define IDM_BOOKMARK_CLEARALL 224
    #define IDM_BOOKMARK_NEXT_SELECT 225
    #define IDM_BOOKMARK_PREV_SELECT 226
    #define IDM_MATCHBRACE 230
    #define IDM_SELECTTOBRACE 231
    #define IDM_SHOWCALLTIP 232
    #define IDM_COMPLETE 233
    #define IDM_COMPLETEWORD 234
    #define IDM_EXPAND 235
    #define IDM_TOGGLE_FOLDALL 236
    #define IDM_TOGGLE_FOLDRECURSIVE 237
    #define IDM_EXPAND_ENSURECHILDRENVISIBLE 238
    #define IDM_UPRCASE 240
    #define IDM_LWRCASE 241
    #define IDM_ABBREV 242
    #define IDM_BLOCK_COMMENT 243
    #define IDM_STREAM_COMMENT 244
    #define IDM_COPYASRTF 245
    #define IDM_BOX_COMMENT 246
    #define IDM_INS_ABBREV 247
    #define IDM_JOIN 248
    #define IDM_SPLIT 249
    #define IDM_DUPLICATE 250
    #define IDM_INCSEARCH 252
    #define IDM_ENTERSELECTION 256


    #define IDC_INCFINDTEXT 253
    #define IDC_INCFINDBTNOK 254
    #define IDD_FIND2 255
    #define IDC_EDIT1 1000
    #define IDC_STATIC -1


    #define IDM_PREVMATCHPPC 260
    #define IDM_SELECTTOPREVMATCHPPC 261
    #define IDM_NEXTMATCHPPC 262
    #define IDM_SELECTTONEXTMATCHPPC 263

    // Tools
    #define IDM_COMPILE 301
    #define IDM_BUILD 302
    #define IDM_GO 303
    #define IDM_STOPEXECUTE 304
    #define IDM_FINISHEDEXECUTE 305
    #define IDM_NEXTMSG 306
    #define IDM_PREVMSG 307

    #define IDM_MACRO_SEP 310
    #define IDM_MACRORECORD 311
    #define IDM_MACROSTOPRECORD 312
    #define IDM_MACROPLAY 313
    #define IDM_MACROLIST 314

    #define IDM_ACTIVATE 320

    #define IDM_SRCWIN 350
    #define IDM_RUNWIN 351
    #define IDM_TOOLWIN 352
    #define IDM_STATUSWIN 353
    #define IDM_TABWIN 354

    // Options
    #define IDM_SPLITVERTICAL 401
    #define IDM_VIEWSPACE 402
    #define IDM_VIEWEOL 403
    #define IDM_VIEWGUIDES 404
    #define IDM_SELMARGIN 405
    #define IDM_FOLDMARGIN 406
    #define IDM_LINENUMBERMARGIN 407
    #define IDM_VIEWTOOLBAR 408
    #define IDM_TOGGLEOUTPUT 409
    #define IDM_VIEWTABBAR 410
    #define IDM_VIEWSTATUSBAR 411
    #define IDM_TOGGLEPARAMETERS 412
    #define IDM_OPENFILESHERE 413
    #define IDM_WRAP 414
    #define IDM_WRAPOUTPUT 415
    #define IDM_READONLY 416

    #define IDM_CLEAROUTPUT 420
    #define IDM_SWITCHPANE 421

    #define IDM_EOL_CRLF 430
    #define IDM_EOL_CR 431
    #define IDM_EOL_LF 432
    #define IDM_EOL_CONVERT 433

    #define IDM_TABSIZE 440

    #define IDM_MONOFONT 450

    #define IDM_OPENLOCALPROPERTIES 460
    #define IDM_OPENUSERPROPERTIES 461
    #define IDM_OPENGLOBALPROPERTIES 462
    #define IDM_OPENABBREVPROPERTIES 463
    #define IDM_OPENLUAEXTERNALFILE 464

    //#define IDM_SELECTIONMARGIN 490
    //#define IDM_BUFFEREDDRAW 491
    //#define IDM_USEPALETTE 492

    // Buffers
    #define IDM_PREVFILE 501
    #define IDM_NEXTFILE 502
    #define IDM_CLOSEALL 503
    #define IDM_SAVEALL 504
    #define IDM_BUFFERSEP 505
    #define IDM_PREVFILESTACK 506
    #define IDM_NEXTFILESTACK 507

    // Help
    #define IDM_HELP 901
    #define IDM_ABOUT 902
    #define IDM_HELP_SCITE 903

    // Windows specific windowing options
    #define IDM_ONTOP 960
    #define IDM_FULLSCREEN 961

    // Dialog control IDs
    #define IDGOLINE 220
    #define IDABOUTSCINTILLA 221
    #define IDFINDWHAT 222
    #define IDFILES 223
    #define IDDIRECTORY 224
    #define IDCURRLINE 225
    #define IDLASTLINE 226
    #define IDEXTEND 227
    #define IDTABSIZE 228
    #define IDINDENTSIZE 229
    #define IDUSETABS 230

    #define IDREPLACEWITH 231
    #define IDWHOLEWORD 232
    #define IDMATCHCASE 233
    #define IDDIRECTIONUP 234
    #define IDDIRECTIONDOWN 235
    #define IDREPLACE 236
    #define IDREPLACEALL 237
    #define IDREPLACEINSEL 238
    #define IDREGEXP 239
    #define IDWRAP 240

    #define IDUNSLASH 241
    #define IDCMD 242

    // id for the browse button in the grep dialog
    #define IDBROWSE 243

    #define IDABBREV 244

    #define IDREPLACEINBUF 244
    #define IDMARKALL 245

    #define IDGOLINECHAR 246
    #define IDCURRLINECHAR 247
    #define IDREPLDONE 248

    #define IDDOTDOT 249
    #define IDFINDINSTYLE 250
    #define IDFINDSTYLE 251

    #define IDPARAMSTART 300

    // Dialog IDs
    #define IDD_FIND 400
    #define IDD_REPLACE 401
    #define IDD_BUFFERS 402
    #define IDD_FIND_ADV 403
    #define IDD_REPLACE_ADV 404
    #define IDR_CLOSEFILE 100

    #ce

    • Offizieller Beitrag

    Ja, da sagst du was. Die derzeitige Version hat noch einige Fehler, die ich schon seit ewigen Zeiten ausbauen wollte.
    Leider komme ich nicht dazu. Die zeitlichen Freiräume sind einfach zu klein um sich einzudenken und dann zu scripten.
    Da verfalle ich kurzfristig, dann immer anderen Dingen.
    Ich hoffe, es irgendwann noch mal zu schaffen.