Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

Autopad


  • Please log in to reply
25 replies to this topic

#1 CyberSlug

CyberSlug

    Overwhelmed with work....

  • MVPs
  • 3,587 posts

Posted 12 April 2004 - 07:47 AM

:D 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 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, 16 April 2004 - 08:55 AM.

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!







#2 beerman

beerman

    Blurry

  • Active Members
  • PipPipPipPipPipPip
  • 7,503 posts

Posted 12 April 2004 - 10:38 AM

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

#3 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 9,770 posts

Posted 12 April 2004 - 01:23 PM

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, 13 April 2004 - 06:34 AM.


#4 beerman

beerman

    Blurry

  • Active Members
  • PipPipPipPipPipPip
  • 7,503 posts

Posted 12 April 2004 - 01:58 PM

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...
shoot_zpsfd329d66.png
dontbelieveeverythingyouthink_zps0e1e900

#5 CyberSlug

CyberSlug

    Overwhelmed with work....

  • MVPs
  • 3,587 posts

Posted 12 April 2004 - 05:11 PM

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
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

#6 beerman

beerman

    Blurry

  • Active Members
  • PipPipPipPipPipPip
  • 7,503 posts

Posted 12 April 2004 - 07:26 PM

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?
shoot_zpsfd329d66.png
dontbelieveeverythingyouthink_zps0e1e900

#7 CyberSlug

CyberSlug

    Overwhelmed with work....

  • MVPs
  • 3,587 posts

Posted 12 April 2004 - 10:23 PM

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.
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

#8 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 9,770 posts

Posted 13 April 2004 - 06:33 AM

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.

#9 CyberSlug

CyberSlug

    Overwhelmed with work....

  • MVPs
  • 3,587 posts

Posted 13 April 2004 - 04:30 PM

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

#10 ezzetabi

ezzetabi

    さくらが さいた

  • Active Members
  • PipPipPipPipPipPip
  • 2,011 posts

Posted 14 April 2004 - 10:36 AM

This is impressive!

When the GUI func will come to the official release?

#11 Guest_rathore_*

Guest_rathore_*
  • Guests

Posted 15 April 2004 - 12:06 AM

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

seriously, great work!

#12 CyberFunk Productions

CyberFunk Productions

    Wayfarer

  • Active Members
  • Pip
  • 68 posts

Posted 15 April 2004 - 02:07 AM

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

#13 CyberFunk Productions

CyberFunk Productions

    Wayfarer

  • Active Members
  • Pip
  • 68 posts

Posted 15 April 2004 - 02:24 AM

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.

#14 Valik

Valik

    Former developer.

  • Active Members
  • PipPipPipPipPipPip
  • 18,879 posts

Posted 15 April 2004 - 02:59 AM

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.

#15 CyberSlug

CyberSlug

    Overwhelmed with work....

  • MVPs
  • 3,587 posts

Posted 15 April 2004 - 03:00 AM

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.
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

#16 Josbe

Josbe

    Infrequent ghost ☺

  • Active Members
  • PipPipPipPipPipPip
  • 1,585 posts

Posted 15 April 2004 - 07:03 PM

@CyberSlug: Good work! :huh2:
Your AutoPad gave me a lot fine ideas. thxs :D

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

#17 CyberSlug

CyberSlug

    Overwhelmed with work....

  • MVPs
  • 3,587 posts

Posted 16 April 2004 - 07:47 AM

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, 16 April 2004 - 08:19 AM.

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

#18 Helge

Helge

    Yup

  • Active Members
  • PipPipPipPipPipPip
  • 2,049 posts

Posted 16 April 2004 - 08:25 AM

Looks really impressive CyberSlug !
But it seems like I can't download it.. :D

#19 CyberSlug

CyberSlug

    Overwhelmed with work....

  • MVPs
  • 3,587 posts

Posted 16 April 2004 - 08:48 AM

Looks really impressive CyberSlug !
But it seems like I can't download it.. :D

Oops, forgot to chmod.....

Please try it now :huh2:
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

#20 CyberSlug

CyberSlug

    Overwhelmed with work....

  • MVPs
  • 3,587 posts

Posted 17 April 2004 - 07:43 AM

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!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users