CyberSlug Posted April 12, 2004 Share Posted April 12, 2004 (edited) AutoPad is an attempt to create a usable text editor using only AutoGUI*.It has the following features:- New, Open, Save, Run- Standard Hotkeys: Ctrl+C, Ctrl+V, Ctrl+S, etc.- Drag-and-drop of files into edit window- Intellisense-like functionality ("AutoSense")- Font and wordwrap options- Status bar (tells row and column)Known issues:- AutoSense integration needs a little work - Ctrl+A (see below)- Documentation is lacking*For version 0.1, a custom build of AutoGUI was required. It includes one additional functionAutoPad is unfinished, but I'm posting because I need help/ideas regarding the following:1) Toggling word wrap. Please see this post2) Edit--Fixed Ctrl+A only works if I set a HotKey; but I have the hotkey perform Send("{AppsKey}a") which results causes problems..... Try pressing Ctrl+A, Ctrl+C WITHOUT lifting up on the Ctrl key in between 3) Any ideas how to implement Find when wordwrap is enabled? Edit: Should be possible now with GUISendMsgPlease backup of any files you decide to edit with AutoPad! (Also, trying to make sense of my poorly encapsulated code might drive you crazy )***Screenshot:Download AutoPad Here Edited April 16, 2004 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Somerset Posted April 12, 2004 Share Posted April 12, 2004 looks very promising CS.....word warp lol j/k... i'll see what my little brain can come up with... Link to comment Share on other sites More sharing options...
jpm Posted April 12, 2004 Share Posted April 12, 2004 (edited) More than promising,I think to manage this missing function for specific control I will add GuiWriteMsg and GuiReadMsg(controlref,iMsg,wparam,lparam) and remove for instance the reuse of state in GuiSetControlEx for Progress contro that make not usable of the hiding of a progress control.What do you think? Edited April 13, 2004 by jpm Link to comment Share on other sites More sharing options...
Somerset Posted April 12, 2004 Share Posted April 12, 2004 I think to manage this missing function for specific control I will add GuiWriteMsg and GuiReadMsg(controlref,wparam,lparam) and remove for instance the reuse of state in GuiSetControlEx for Progress contro that make not usable of the hiding of a progress control.yeah that would help alot. you could use those functions to help buld a clip library, and syntax editing, and etc... Link to comment Share on other sites More sharing options...
CyberSlug Posted April 12, 2004 Author Share Posted April 12, 2004 I think to manage this missing function for specific control I will add GuiWriteMsg and GuiReadMsg(controlref,wparam,lparam) and remove for instance the reuse of state in GuiSetControlEx for Progress contro that make not usable of the hiding of a progress control. I don't understand. But you are smart, so it must be a good idea Other notes I forgot to mention:- Feature: Indenting a block of selected text is availalble. Coming soon are un-indenting (Shift+Tab) and commenting out a block.- The tray icon is only for debug purposes- I know I should use GuiWrite instead of ControlCommand, and I should use symbolic constants instead of hard-coded numbers Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Somerset Posted April 12, 2004 Share Posted April 12, 2004 CS he musta seen what you are doing and likes it, so i guess you musta spawned some new ideas for jpm... i wonder where this will be going when you are done... not talking about the project you are doing right now wondering where gui aspect is gonna go. cannot wait and find out... may make things more intresting for ya huh CS? Link to comment Share on other sites More sharing options...
CyberSlug Posted April 12, 2004 Author Share Posted April 12, 2004 It seems that the EM_SETSEL Message would help with Find.I finally figured out what jpm meant--and it sounds good to me I don't know how much time I will have to actively Develop AutoPad--I'm doing it for fun and to test out the new GUI features--but let me know of any features want. I'll see what I can do. Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
jpm Posted April 13, 2004 Share Posted April 13, 2004 It seems that the EM_SETSEL Message would help with Find.I finally figured out what jpm meant--and it sounds good to me I don't know how much time I will have to actively Develop AutoPad--I'm doing it for fun and to test out the new GUI features--but let me know of any features want. I'll see what I can do.Glad, Just a question do you need EM_GETSEL?I only plan to have GuiSendMsg which is OK for your EM_SETSEL or other Msg which is OK for the Msg returning a value or not.I plan to do a GuiRecvMsg for those returning a string in lParam and that's all because the type of the Wparam or Lparam will be too complex. Link to comment Share on other sites More sharing options...
CyberSlug Posted April 13, 2004 Author Share Posted April 13, 2004 Glad, Just a question do you need EM_GETSEL?I already use ControlCommand(..., "GetSelected", ""), so EM_GETSEL is not needed. Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
ezzetabi Posted April 14, 2004 Share Posted April 14, 2004 This is impressive! When the GUI func will come to the official release? Link to comment Share on other sites More sharing options...
Guest rathore Posted April 15, 2004 Share Posted April 15, 2004 earlier scripts were written in editors...now editors r being written in scripts!... where's the world heading??!! seriously, great work! Link to comment Share on other sites More sharing options...
CyberFunk Productions Posted April 15, 2004 Share Posted April 15, 2004 wow, so you made this whole thing with autoitGUI!!! , Thats crazy!!! I've downloaded it and use it alot, can't wait till the next version!!! Link to comment Share on other sites More sharing options...
CyberFunk Productions Posted April 15, 2004 Share Posted April 15, 2004 ok heres a question for you... when i use the AutoPad it does something that makes me not be able to use it then has a flashing red x over the tree in the task bar and when i hold my mouse over it is says (Paused)AutoPad.exeLine: sleep(100) ; Do not max-out the CPU!What do i do about this, it does it almost every time i use the program. Link to comment Share on other sites More sharing options...
Valik Posted April 15, 2004 Share Posted April 15, 2004 Simple. Don't click the tray icon. You are pausing the script by doing so. If you do pause it, click it again and click Pause in the menu to unpause it. Link to comment Share on other sites More sharing options...
CyberSlug Posted April 15, 2004 Author Share Posted April 15, 2004 ok heres a question for you... when i use the AutoPad it does something that makes me not be able to use it then has a flashing red x over the tree in the task bar and when i hold my mouse over it is says .....Pausing is a feature of AutoIt (not AutoPad), so it seems you are clicking on the tray icon. If you right-click the tray icon you should get the option of unchecking "Script Paused" or choosing "Exit."I'll have a new version to post sometime. (I'm currently redesigning how Save/Save As works because I have a lot of redundant code.) SciTE is my text editor of choice for writing AutoIt/AutoGUI scripts--and I really don't "use" AutoPad, so I appreciate your testing. Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Josbe Posted April 15, 2004 Share Posted April 15, 2004 @CyberSlug: Good work! Your AutoPad gave me a lot fine ideas. thxs - Rem: Rebuild the Database. (For the recently functions added) • AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
CyberSlug Posted April 16, 2004 Author Share Posted April 16, 2004 (edited) New version uploaded. Only small changes, but I increased the version number to 0.2 because:With the addition of GUIRecvMsg in autoit-gui.102.17, I re-coded some functions so that AutoPad can be compiled with jpm's official beta GUI relase. Another benefit was that the "Ctrl+A issue" could be solved.Also, you can comment out a block of selected code by simply pressing the semicolon ( key. Such a block comment can be undone by pressing Shift+SemiColon.I also hide the tray icon by default now.BUG NOTES: - When selecting text, the row/column in the status bar will not update quite right..... I should get this fixed soon.- There seems to be a new (or old?) problem with AutoSense sometimes capitalizing the wrong tooltip parameter. Also, the tooltip currently stays on top if you minimize AutoPad or switch windows....- There is at least one more bug that I can't remember right now Edited April 16, 2004 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Helge Posted April 16, 2004 Share Posted April 16, 2004 Looks really impressive CyberSlug ! But it seems like I can't download it.. Link to comment Share on other sites More sharing options...
CyberSlug Posted April 16, 2004 Author Share Posted April 16, 2004 Looks really impressive CyberSlug !But it seems like I can't download it.. Oops, forgot to chmod.....Please try it now Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
CyberSlug Posted April 17, 2004 Author Share Posted April 17, 2004 Another small update 0.2b I probably broke some things, so you might not want to use this version. However, it supports Find (Ctrl+F) and Find Next (F3) to some extent. Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! 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