home *** CD-ROM | disk | FTP | other *** search
- ;----------------------------------------------------------;
- ; ;
- ; showing off some new WinEdit macro functions... ;
- ; ;
- ;----------------------------------------------------------;
-
- wFileOpen("c:\wineditweb\authoring\test\purchase.html")
-
- wSpellCheck() ; check the spelling of the current document
-
- wViewHTML() ; send the current file to WinEdit Explorer
-
- wFTPOpen() ; ask WE_FTP to open a file for us
-
- wFileNew()
- wInsLine("This line includes a linefeed") ; like wInsString() + wNewLine()
- wInsLine("So does this one")
-
- wFileOpen("d:\source\editor2\common\batuser.c")
- wCompile() ; careful, it's multithreaded. this will return immediately
- Delay(10) ; so let's wait a while
- strOutput = wGetOutput() ; load the contents of the active output window
- Message("Compiler output",strOutput)
-
- wGoToLine(20)
- wGoToCol(10)
- wStartSel()
- wGoToLine(40)
- wGoToCol(20)
- wEndSel()
- list = wSelInfo() ; returns a tab-delimited list of the block bounds
- BlockStartLine = ItemExtract( 1, list, @TAB)
- BlockStartCol = ItemExtract( 2, list, @TAB)
- BlockEndLine = ItemExtract( 3, list, @TAB)
- BlockEndCol = ItemExtract( 4, list, @TAB)
- Message("BlockInfo", "Block start: Line %BlockStartLine% Column %BlockStartCol%%@CRLF%Block End: Line %BlockEndLine% Column %BlockEndCol%")
-
-
-