Jump to content

Recommended Posts

Posted

Hi all,

We all know that we can customize Notepad++ with python, BackEdit with VBscript, FaMe with Lua. (Info form this link)

 But is there any text editor which we can customize with AutoIt ?. 

 

 

  Reveal hidden contents

 

Posted

@JohnOne , But i thought that scite is customizable with lua.If it is possible, can i get an example, if you don't mind ?

  Reveal hidden contents

 

  • Developers
Posted

SciTE can be automated by any language as it accept messages on the director interface.

Example:

;
SendSciTE_Command("goto:,0")
SendSciTE_Command("insert:" & "Your text to insert at cursor replacing possible selected text.")
;
;
Func SendSciTE_Command($sCmd)
    Opt("WinSearchChildren", 1)
    ; Get SciTE DirectorHandle
    $SciTE_hwnd = WinGetHandle("DirectorExtension")
    Local $WM_COPYDATA = 74
    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', 0, _
            'Ptr', DllStructGetPtr($COPYDATA))
EndFunc   ;==>SendSciTE_Command

I have used this in AutoIt3Wrapper, Tidy and Au4Stripper.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

@Jos , Thank you. That is a nice function. Where can i get more info about these Commands ?. 

  Reveal hidden contents

 

Posted

I have a SciTE UDF in SciTE Jump

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted (edited)

Thanks @Jos And @guinness . Let me check. :)

 

@guinness, OMG.. it is really a treasure for a learner. Thanks a lot.  :)

But i think, it lacks proper documentation. I mean no function header. 

 

Edited by kcvinu
  Reveal hidden contents

 

Posted

Exactly what Jos said. This was designed only for me and not for public use. Anyway, I have made it as simple as possible.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

@guinness , Oh then that is the meaning of Jos's comment. Anyway, that UDF is a text book for me to study. Thanks for it. 

  Reveal hidden contents

 

Posted

It's not so difficult to use, look at post #9 here >> https://www.autoitscript.com/forum/topic/155563-move-to-another-line-in-scite/

#include '_SciTE.au3'

_SciTE_Startup()
ConsoleWrite(_SciTE_GetCurrentFile())
_SciTE_Shutdown()

OR download the help file sources in the AutoIt beta directory and find SciTELib.au3. That's a different variation of the library I wrote for building the help docs. 

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted (edited)

@guinness , Thanks for this example. At first i tested it without the startup and shutdown function. And got the result 0. And the another moment, i see you the above comment. 

 

Edit : I can't get your point.

\\"OR download the help file sources in the AutoIt beta directory and find SciTELib.au3. That's a different variation of the library I wrote for building the help docs. "//

What do you mean by AutoIt beta directory ? You mean, i need to install autoit beta and find SciTELib.au3 in my PC ? OR does this SciTELib.au3 file locating in AutoIt downloads ?

Edited by kcvinu
  Reveal hidden contents

 

Posted

No. Go to the AutoIt download page on the main site and then find the link to the beta directory. The Zip file has docs in the name.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted (edited)

@guinness I have downloaded this file and find SciTELib.au3

000092.jpg

Edited by kcvinu
  Reveal hidden contents

 

Posted (edited)

I think Scintella is excellently documented for example over here http://www.scintilla.org/ScintillaDoc.html

So if you learn in AutoIT how to do sendmessage stuff its not very difficult and scite.udf can indeed be a teacherdocument

see also source of ISN AutoIT studio  http://www.isnetwork.at/index.php/2011-10-17-08-51-43

Edited by junkew
reference to ISN AutoIT studio
Posted (edited)

@junkew , Wow..  Lot of informations in that link. Need to read it slowly. Thank you. :) And yes, i need to study more about the sendmesage stuff. 

I think ISN Studio is little bit complex  than Yashied's SciTE. I have asked yashied for it's source. 

Edited by kcvinu
  Reveal hidden contents

 

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
×
×
  • Create New...