AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AHK Toolbar for an Editor (e.g. PSPad) (version 1 alpha)
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Thu Aug 24, 2006 2:34 pm    Post subject: AHK Toolbar for an Editor (e.g. PSPad) (version 1 alpha) Reply with quote

This is the first version of an extra toolbar for an editor specially for AHK. It is currently preconfigurated to work with PSPad, but should work with any editor.
At the end it should come with the install AHK syntax highlighting and clips for PSPad script. Maybe even with some useful scripts as a package.

In between I need your help. Please test and let me know what you think of it. Where do you think it can be improved. Maybe you can contribute code. There are still some open questions, that need to be solved. Scripts to be tested and improved (to work smoothly with PSPad [or your editor of choice] and the toolbar). Maybe you create new scripts that allow a perfect workflow within this environment.

To get started, you have to download this zip archive and extract it to one folder. Please start PSPad. If you want to use a different editor, please edit the ini file: Change the "Editor Window Title" key. After that you can either start the script "PSPad_AHK_Toolbar.ahk" directly, or start it from within PSPad (F9). The toolbar should now be in the upper right corner.

Later we can figure out, which tools are a solid and useful package of scripts that should come along. The package should allow newbies to start using the toolbar and AHK capabilities right away without having to master configuration.

Currently the toolbar is limited to 8 buttons. But if you duplicate the [Button x] sections in the ini file, you can increase the number of buttons un-limited. But I guess more then 20 will not be reasonable, which will be the final setting I assume.

I hope you like the felexibility.

Code:
Version = 1 alpha
ScriptName = PSPad AHK Toolbar %Version%
/*
  A small toolbar GUI for PSPad to easily start scripts or programs with a
  simple mouse click
 
  by toralf
 
  Tested OS: Windows XP Pro SP2
  AHK_version= 1.0.44.09     ;(http://www.autohotkey.com/download/)
  Language: English
  Date: 2006-08-23
 
  minimum required files:
  =======================
    Func_IniSettingsEditor_v6.ahk
    %ScriptName_woExt%.ini
 
  features:
  =========
   - docks to PSPad editor window (could be used with other editors as well, I guess)
   - scripts and programs, buttons respectively, can be added easily to the toolbar.
     Use right mouse button click on toolbar to open the context menu.
   - command line parameters can be specified for each script/program, via the
     context menu each script/program can still be started without the command line parameters
   - pictures and icons can be used instead of text for the buttons 
   - start from this toolbar as many scripts/programs as you want
     here is a list of some scripts I have in mind but haven't tested yet:
          v  AutoSyntaxTidy (hidden) activated on hotkey F2
          v  Scriplet Library
          v  WindowInfo
          v  AU3_Spy
          v  AutoScriptWriter
          v  IniFileCreator
          v  IconViewer
         (v) IntelliScript III
             SmartGui
             Label Searcher (hidden) activated on mouse movement to right window border
             EasyCopy
             LEO Translation
     create your own scripts to extend PSPad, e.g. to:
          Enter AHK Forum / AHK.net
          Open explorer, ftp, ssh, cmd
 
  ideas/questions:
  ================
    - PSPad installer should install tool bar with Alt+F9 hotkey
    - Where should the PSPad installer place this script and the tools?
         + in a PSPad \plugins\AHK_Toolbar folder
         + in the AHK \Extras\Editors\PSPad folder
         + keep files in the current PSPad Installer folder
    - INI file should not contain a version number, so it can be used between
      different versions. What should be done to backup old ini files? Should
      the old be kept, and maybe new features left out? Should the old be read
      and the new modified? Options in Installer?
*/

_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Thu Aug 24, 2006 8:52 pm    Post subject: Reply with quote

i really like it toralf! ... one more (big) step closer to AHK IDE.

I suggest adding 5-10 more button sections to the settings window... the gui will only show them when the respective settings are filled in, otherwise not. this way more buttons can be easily added by anyone.
_________________
Back to top
View user's profile Send private message
Roland



Joined: 08 Jun 2006
Posts: 238

PostPosted: Thu Aug 24, 2006 10:13 pm    Post subject: Reply with quote

Just about to test it... just wanted to point out that you might want to make the TitleMatchMode editable from the ini along with the window title.
Back to top
View user's profile Send private message
userabuser



Joined: 15 Jul 2006
Posts: 29

PostPosted: Fri Aug 25, 2006 5:35 am    Post subject: Reply with quote

Oh my! Talk about usefull!

If pspad is minimized, it doesn't attach.
If you minimize pspad after it's attached, it goes away.

Where is contextsensitivehelp? Smile
Back to top
View user's profile Send private message
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Fri Aug 25, 2006 6:39 am    Post subject: Reply with quote

Roland wrote:
make the TitleMatchMode editable from the ini along with the window title.
Good idea, will be done.

userabuser wrote:
If pspad is minimized, it doesn't attach.
If you minimize pspad after it's attached, it goes away.
I'll test and see what I can do.

userabuser wrote:
Where is contextsensitivehelp?
click with the right mouse button on the buttons of the toolbar.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Fri Aug 25, 2006 5:43 pm    Post subject: Reply with quote

@Rajat,
I wondering if I should rename the script to "SmartToolbar"
The current name "AHK Toolbar" doesn't sound right (I removed the "PSPad" from it's name, because it is not limited to PSPad).
With the "Smart" name it could be start of a script family for a AHK IDE.
I would even rename some of my advanced scripts to become members of the "Smart" family (e.g. Auto-Syntax-Tidy, AHK Window Info, Icon Viewer). What do you think?
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Fri Aug 25, 2006 5:46 pm    Post subject: Reply with quote

userabuser wrote:
If pspad is minimized, it doesn't attach.
If you minimize pspad after it's attached, it goes away.
This will be fixed with the next release.

Current change log:
Quote:
changes since version 1 alpha
- title match mode can be specified in ini file
- horizontal position update time period can be specified in ini file
- order of sections in ini has changed
- editor window is shown if minimized to be able to dock
- if editor window can't be found an error message pops up
- changed the name of the GUI to "AHK Toolbar" (removed the "PSPad ")
- changed the file name "AHK_Toolbar" (removed the "PSPad_")
- added more comments to code
- increase number of buttons in ini to 20 by default
But I haven't updated the code yet. There are still some changes I want to apply.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Fri Aug 25, 2006 8:07 pm    Post subject: Reply with quote

'Smart' is good, but I'd go with AHK toolbar... i don't know, but its just sounds better to me... but then, its your call finally.
_________________
Back to top
View user's profile Send private message
userabuser



Joined: 15 Jul 2006
Posts: 29

PostPosted: Sun Aug 27, 2006 2:54 pm    Post subject: Reply with quote

Thalon's Message-Box Creator would be a great addition.

http://www.autohotkey.com/forum/topic11659.html&highlight=create+messagebox
Back to top
View user's profile Send private message
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Sun Aug 27, 2006 7:28 pm    Post subject: Reply with quote

just wondering... how does this sound?
AHKbar - Multifunctional tools for AHK script editors.
_________________
Back to top
View user's profile Send private message
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Sun Aug 27, 2006 8:00 pm    Post subject: Reply with quote

Not bad. I liked the short form of toolbar -> bar.
But the AHK in the name is a bit too much.
I would prefer "SmartBar - Toolbar for AHK script editors", which just came to my mind. I'll wait till this is settled down a bit.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nduncan



Joined: 06 Dec 2005
Posts: 32
Location: Madrid, Spain

PostPosted: Sun Oct 29, 2006 9:26 pm    Post subject: Reply with quote

I need help to install the Pspad_ahk_toolbar. None of the methods mentioned in the script seem to work for me - and I have PsPad Pro.

It could be a very useful tool for beginners like me
_________________
tryingharder
Back to top
View user's profile Send private message Send e-mail
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Mon Oct 30, 2006 12:49 pm    Post subject: Reply with quote

What is "PsPad Pro"?

I haven't worked on the script for a while since SGUI 5.0 keeps me busy.
I'll try to update the script to the latest version soon.

If you describe EXACTLY what you have, what you have done and what happens, we might be able to help you.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nduncan



Joined: 06 Dec 2005
Posts: 32
Location: Madrid, Spain

PostPosted: Mon Oct 30, 2006 8:20 pm    Post subject: Reply with quote

My first query is that I need help with the following for setting them to PsPad - I can't find anything in the help file:

IniSettingsEditor(ProgName,IniFile,OwnedBy = 0,DisableGui = 0) {

Presumably all instances of Editor should be changed to PsPad (or perhaps Progname)..


and with: %ScriptName_woExt%.ini

Please excuse my ignorance, but it'll come right in the end!
_________________
tryingharder
Back to top
View user's profile Send private message Send e-mail
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Tue Oct 31, 2006 12:15 pm    Post subject: Reply with quote

I downloaded the zip file from the first post and started "PSPad_AHK_Toolbar.ahk". I didn't experience any problem.

Regarding your questions on IniSettingsEditor: This is calling a function which is placed in this file "Func_IniSettingsEditor_v6.ahk"
To start a graphical interface to change options just right click on the toolbar and choose options. If you want to change the options without a GUI, edit this file "PSPad_AHK_Toolbar.ini"

I hope that gets you a bit further.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group