ericdexter Posted July 13, 2007 Share Posted July 13, 2007 I ran some tests in notepad and in gvim and I believe that gvim is not script friendly. What would be the easiest text editor to script with autoit that would allow me to 1) insert text from an outside file2) search function3) save fileperferbly using ctl or alt as an option to use said functionsperferbly with a licence that isn't restrictive i.e. allow me to do anything I want with it.I promise to give back some intresting scripts to work with csound in return. thanks forthe help in advancehttps://sourceforge.net/projects/dex-tracker Link to comment Share on other sites More sharing options...
Xenobiologist Posted July 13, 2007 Share Posted July 13, 2007 Hi, Scite? So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
ericdexter Posted July 13, 2007 Author Share Posted July 13, 2007 (edited) Hi,Scite?So long,MegaIt does look easy to use but it doesn't appear to do what vim does i.e. allow you to input a text file in another text file.. thanks for the suggestion. I noticed something called midform but it has a restrictive copyright but he may allow use.. it would be a pain to require the users to download it themselves. Edited July 13, 2007 by ericdexter Link to comment Share on other sites More sharing options...
weaponx Posted July 13, 2007 Share Posted July 13, 2007 What do you mean insert text from an outside file? Whatever happened to opening said file in notepad and copy / paste? Link to comment Share on other sites More sharing options...
ericdexter Posted July 13, 2007 Author Share Posted July 13, 2007 (edited) What do you mean insert text from an outside file? Whatever happened to opening said file in notepad and copy / paste?I am trying to keep with the moto of kiss (keep it simple stupid.. stupid meaning me and I don't want to learn to much and I can use whatever editor I want) here is an example of the text sorta but not realythis is a block of text that means nothingHERE IS WHERE I WANT TO INSERT THE STRINGS.ORC TEXT FILE THAT IS ON MY DISKthis is more text that means nothingthe steps to do that in gvim is (gvim isn't easy or possible to work with one of the two)/<start> (denotes a search so it goes to the word after the slash)/<endin> (another search goes to the end of the instrument:r filename (this reads the file name and inserts it into the file.I have an example script that I did in an editor that I can not distribute posted to the csoundsgeneral mailing list that probily needs alot of work ( http://www.csounds.com )http://www.nabble.com/example-autoit-scrip...-tf4074009.htmlthere are probily alot of places it could be improved but this is my first script. If you want to look atthe program it is to be distributed with it is at https://sourceforge.net/projects/dex-trackerIt is probily more complex than people want to look at but has a cool beta picture.I am still looking for an editor that will script that I can give away copies of Edited July 13, 2007 by ericdexter Link to comment Share on other sites More sharing options...
Zedna Posted July 13, 2007 Share Posted July 13, 2007 I don't understand exactly but look at PSPad free editor (not only plain text) Resources UDF Â ResourcesEx UDF Â AutoIt Forum Search Link to comment Share on other sites More sharing options...
Leandro Conca Posted July 13, 2007 Share Posted July 13, 2007 Why don't you use the FileRead and FileWrite AutoIt functions to edit the files instead of using an external editor? Those will surely fit what you need. Link to comment Share on other sites More sharing options...
weaponx Posted July 13, 2007 Share Posted July 13, 2007 But aren't you using this to include text in your source code? Why aren't you just using: #include "[path\]filename" #include <filename> Link to comment Share on other sites More sharing options...
ericdexter Posted July 13, 2007 Author Share Posted July 13, 2007 But aren't you using this to include text in your source code? Why aren't you just using: #include "[path\]filename" #include <filename> I am using it to load text into "source code" after I have slightly modified it.. csound is a little different so I have to load the code in https://sourceforge.net/projects/dex-tracker Link to comment Share on other sites More sharing options...
ericdexter Posted July 13, 2007 Author Share Posted July 13, 2007 Why don't you use the FileRead and FileWrite AutoIt functions to edit the files instead of using an external editor?Those will surely fit what you need.I will look into that. Maybe I can us FileRead and then use the search in notepad to get my position and then write it out.. thanks for the sugestion.https://sourceforge.net/projects/dex-tracker Link to comment Share on other sites More sharing options...
RDSchaefer Posted July 14, 2007 Share Posted July 14, 2007 I ran some tests in notepad and in gvim and I believe that gvim is not script friendly. What would be the easiest text editor to script with autoit that would allow me to 1) insert text from an outside file2) search function3) save fileperferbly using ctl or alt as an option to use said functionsperferbly with a licence that isn't restrictive i.e. allow me to do anything I want with it.I promise to give back some intresting scripts to work with csound in return. thanks forthe help in advancehttps://sourceforge.net/projects/dex-trackerConText http://www.context.cx/Ralph Link to comment Share on other sites More sharing options...
ericdexter Posted July 15, 2007 Author Share Posted July 15, 2007 ConText http://www.context.cx/ Ralph looks like a cool editor I did some major surfing (for comand line editors) it looks like sed might do it with popen (now that unix works on windows I am spoiled) sed -e '/[;<instr1]' -e '/[;<endin>]/{r strings.orc}' bay-at-night.csd I am probily not going to be that lucky..... I saw the screen capture but didn't see any other killer apps a music program might want right away besides self scripting (a cool concept in itself). Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now