Sign in to follow this  
Followers 0

Autopad

26 posts in this topic

Posted (edited)

:DAutoPad 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 function

AutoPad is unfinished, but I'm posting because I need help/ideas regarding the following:

1) Toggling word wrap. Please see this post

2) 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 :huh2:

3) Any ideas how to implement Find when wordwrap is enabled? Edit: Should be possible now with GUISendMsg

Please 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:Posted Image

Download AutoPad Here

Edited by CyberSlug

Share this post


Link to post
Share on other sites



Posted

looks very promising CS.....word warp :D lol j/k... i'll see what my little brain can come up with...

Share this post


Link to post
Share on other sites

Posted (edited)

More than promising,Posted Image

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 by jpm

Share this post


Link to post
Share on other sites

Posted

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...

Share this post


Link to post
Share on other sites

Posted

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.

:D I don't understand. But you are smart, so it must be a good idea :huh2:

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

Share this post


Link to post
Share on other sites

Posted

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... :D may make things more intresting for ya huh CS?

Share this post


Link to post
Share on other sites

Posted

It seems that the EM_SETSEL Message would help with Find.

I finally figured out what jpm meant--and it sounds good to me :D

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.

Share this post


Link to post
Share on other sites

Posted

It seems that the  EM_SETSEL Message would help with Find.

I finally figured out what jpm meant--and it sounds good to me :huh2:

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, :D

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.

Share this post


Link to post
Share on other sites

Posted

Glad, :D

Just a question do you need EM_GETSEL?

I already use ControlCommand(..., "GetSelected", ""), so EM_GETSEL is not needed.

Share this post


Link to post
Share on other sites

Posted

This is impressive!

When the GUI func will come to the official release?

Share this post


Link to post
Share on other sites

Posted

earlier scripts were written in editors...now editors r being written in scripts!... where's the world heading??!!

seriously, great work!

Share this post


Link to post
Share on other sites

Posted

wow, so you made this whole thing with autoitGUI!!! :huh2: , Thats crazy!!! I've downloaded it and use it alot, can't wait till the next version!!! :D

Share this post


Link to post
Share on other sites

Posted

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.exe

Line: sleep(100) ; Do not max-out the CPU!

What do i do about this, it does it almost every time i use the program.

Share this post


Link to post
Share on other sites

Posted

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.

Share this post


Link to post
Share on other sites

Posted

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. :D (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.

Share this post


Link to post
Share on other sites

Posted

@CyberSlug: Good work! :huh2:

Your AutoPad gave me a lot fine ideas. thxs :D

- Rem: Rebuild the Database. (For the recently functions added) :)

Share this post


Link to post
Share on other sites

Posted (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 (:huh2: 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 :D

Edited by CyberSlug

Share this post


Link to post
Share on other sites

Posted

Looks really impressive CyberSlug !

But it seems like I can't download it.. :D

Share this post


Link to post
Share on other sites

Posted

Looks really impressive CyberSlug !

But it seems like I can't download it.. :D

Oops, forgot to chmod.....

Please try it now :huh2:

Share this post


Link to post
Share on other sites

Posted

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.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0