Grabs the window handle of the Scintilla editor. The same might be true using this Perl interface as well, so it is recommended that you reuse the same hidden instance throughout your script, rather than trying to create multiple hidden instances, if at all possible. Warning: some users of Notepad++'s createScintilla interface in scripting plugins using the same message-based interface as Win32::Mechanize::NotepadPlusPlus have found that they cannot create more than one extra Scintilla instance from inside their scripts without causing instability in Notepad++. Or, as needed when the Notepad object creates a hidden Scintilla using my $hidden = notepad()->createScintilla The Editor objects are created as appropriate, both with the original use Win32::Mechanize::NotepadPlusPlus As Notepad++ adds new features, the minimum version for that method will be indicated in the help. The module was developed with Notepad++ v7.7 or newer in mind, though some features should still work on older versions of Notepad++. Please note that because this module is driving Notepad++'s Scintilla components externally, rather than internally through a plugin or inside the actual Notepad++ source code, some messages will take longer than you might expect before they are fully complete you may find that a "setText" requires 10ms or more to complete, depending on how long the text is, so don't be surprised if you have to add in delays to get your script to reliably execute.Īlso note that Notepad++ itself is sending messages to the Scintilla components, so there may be changes in state that are not related to the running Perl code there may be times when Notepad++ changes things unexpectedly in the middle of the Perl execution (especially for things like the Target-oriented methods like "getTargetText"). The editor object for Notepad++ automation using Win32::Mechanize::NotepadPlusPlus: this object will interface with Notepad++'s Scintilla component instances. Win32::Mechanize::NotepadPlusPlus::Editor - The editor object for Notepad++ automation SYNOPSIS use Win32::Mechanize::NotepadPlusPlus qw/:main/
0 Comments
Leave a Reply. |