4 posts in this topic
Open a file for reading contents
This is a notepad program written entirely in AutoIt. It has all the basics of notepad that you would expect. This is NOT feature complete, yet.
I have included the source code for your pleasure, and feel free to give me pointers if you'd like to help out development (This is all done
with AutoIt version 184.108.40.206) If you use any code from this, please leave a comment or something linking to this post, thank you.
Prev dls from old forum: 783
run the install to put the AuPad.exe and AuPad.ico in the program files directory under AuPad.
Also, the install puts the RESH.au3 (all thanks to @Beege) UDFs into your include folder for you.
Included in the .zip: Install.exe, Install.au3, AuPad.au3, AuPad.exe,
aupad.ico, uninstall.au3, Uninstall.exe, and RESH.au3
File - New, Open, Save, Save As, Exit, Print
Edit - Undo, Cut, Copy, Paste, Del, Find, Replace, Select All, Tab, Time/Date, Word Count, Line Count, Uppercase Text, Lowercase Text
Format - Word Wrap, Font, Font Color, Background Color
Help - About
---Rich Edit (picture support), Au3 Syntax Highlighting, Drag & Drop support, open any file type, Grey certain menu items if there is txt or sel, print by line support---
Compile scripts, Forum Tags, version history, web search, au3 helpfile search, text to speech, recent files, Syntax highlighting for au3 when opened
Custom Context Menu for Rich Edit and Status Bar
---==== 1.0.0 ====---
- Basic file features (open, new, save, save as, print, exit, )
- Basic edit features (undo, cut, copy, paste, find, replace, delete, select all, time/date)
- Basic format features (word wrap, font)
- Basic help features (help, about)
---==== 1.5.0 ====---
- Took out extra save dialog in the Save() function.
- Drag and drop functionality added (thanks to AZJIO)
- Took out check for txt file when opening
- Fixed open function to delete text already in control and ask to save
- Added $ws_ex_composite to stop flicker on xp machines.
- Added default font
- Set the font in the setWW() function
- added word count functionality with a accelerator key
---==== 1.5.1 ====---
- Fixed word count function
- Added line count thanks to DreamVB
- Added uppercase and lowercase thanks to DreamVB
---==== 1.6.0 ====---
- Added better text limit
- Fixed the edit control to show the horizontal scrollbar
- Made resizing of the edit control AUTO; making the menu AUTO, instead of just 5 pixel height
- Changed any file over 100 MB to read in as binary
- Changed any file dragged and dropped to read in as binary if over 100 MB in size
- Added accelerator keys for uppercase, lowercase and save as
- Took out unnecarry MsgBox in save function
- Added print by line support
- Added ini file for settings saved
- Added setting in ini for word wrap
---==== 1.7.0 ====---
- Added cancel button when quitting
- Took out extra include
- Set default font into font variables
- Set default font when word wrap has been selected
- Set default font when taking off word wrap
- Added RTF files and All files to save dialog
- Added redo functionality
- added character attribute functionality for rich edit
- added rtf files to the open file dialog
- Added color support
- Added picture support
- Added background color support
- Added stream rtf from file support
- Added stream rtf to file support
- Added recent files to menu item
- Added AutoIt syntax highlighting; thanks goes to Beege for RESH UDF
- Took out word wrap function and menu item as RichEdit is word wrapped already
- Took out ini for the word wrap, but want to be very portable anyway
- Added check for character attributes change
- Added au3 file type for open and save dialog boxes
---==== 1.8.0 ====---
- Fixed upper, lower, tab
- Fixed resizing of window and rich edit control
- Fixed recent files
- Fixed time/date at cursor position
- Fixed RESH.au3 comment block functionality (added check in Do..While loop & added -1 to Ubound call)
---==== 1.8.2 ====---
- Took out HotkeySets and made GUI accelerator keys (F2 (about), F5 (time/date))
- Fixed Au3 syntax highlighting setting caret position
- Added cancel to New file dialog
- Switched to ASM RESH UDF by Beege (thanks!)
- Added check when Syntax Highlighting to not highlight if there has not been any more user interaction. Cutting down a ton of processing.
- Added check for quotes, due to problem with RESH - It will crash the entire program when trying to syntax highlight an unterminated quote.
- Commented out Addrecent as problems with messageloop and GUI dummy
- F2 was fixed to bring up help instead of about AuPad.
---==== 1.8.4 ====---
- added version developed in the about child window
- added tags quote, link, autoit (code). (all thanks for the Idea from The Saint's webpad -
- added GUI Accelerator keys for tags.
- added compiler GUI.
- added ability to compile au3 scripts.
- ability to open aut2exe for more options.
---==== 1.8.6 ====---
- fixed tag labels to show gui accelerator keys.
- fixed add recent function.
- ability to open recent files in recent files menu.
- Added text to speech ability (idea from betapad - http://www.autoitscript.com/forum/topic/38353-betapad/
- added menu item for text to speech
- accel key added for text to speech and web search
- added child gui for web search
- fixed tag accelerator keys to ctrl + shft combo.
- added ability to search web using 4 search providers in seperate gui.
- added accelerator keys for web search GUI.
- fixed version number in directives.
- added version history gui.
---==== 1.8.8 ====---
- took off $ES_READONLY style on version history edit control.
- fixed view about aupad event. When opening it would call folderpath() in a loop, making it unable to close.
---==== 1.9.0 ====---
- added ability to highlight, then websearch the selected text.
- Took out printing UDF by martin
- Took out x86 force directive. Can now be used as x64.
- ability to open AutoIt helpfile.
- ability to highlight and search the AutoIt helpfile with keyword.
- changed _guictrlrichedit_setsel() hide sel to false, instead of true, as it would hide the selection after changing the highlighting.
- printing will print to default printer only. Trying to make more portable, which will exclude print dll and library now. Changing of printer is in the works.
- took out debugging code from last version to fix folderpath() loop.
---==== 1.9.1 ====---
- added default style to web search button. - idea by mLipok.
- deleted the child window for web search on successfully opening IE.
- added abillity to open au3 file and have syntax highlighting start automatically. - idea by mLipok.
- added tooltip to show when syntax highlighting for AutoIt has started or ended.---==== 1.9.2 ====---- added default style to version history "okay" button (un-highlights edit text).- added dpi awareness to about AuPad GUI. Thanks to mLipok -http://www.autoitscript.com/forum/topic/166479-writing-dpi-awareness-app-workaround/- state changing for context menu, just like regular menu items.- events with context menu use GUI accelerators.
---==== 1.9.3 ====---
- Fixed version number in directives
- Used Jefrey's code to cut back aChild function and event loop - https://www.autoitscript.com/forum/topic/164383-aupad-notepad-in-autoit-updated-march-31th-2015/?do=findComment&comment=1255986
- Added status bar feature to add box at bottom of AuPad window.
- Added checked state to menu item for status bar to show if it is working.
- Added line and column number to status bar.
- Fixed problem with RESH adding lines unintentially during syntax highlighting.
- Added V1.9.3 version history.