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 

List of options/parameters for each

 
Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
bekihito



Joined: 03 Feb 2010
Posts: 38
Location: Zagreb, Croatia

PostPosted: Wed Feb 03, 2010 12:27 pm    Post subject: List of options/parameters for each Reply with quote

Hi everybody!
Just recently I started doing some work with Autohotkey and found myself amazed with the posibillities.
Although I find the help files rather good I think that you should add a Option/parameter list for each Standard Control/Function/Command.
Ok, there are some nicely elaborated, but for some it ends up with spaghetti tracking through the help file and some have a silly [param1,param2...]/[option1,option2...] look which is not helpfull at all since I don't know which options are planned to be used for the specific command.
Intelisense helps a lot but if it cannot find it specified in Commands.txt it's reading the help file or find simillar script and figure out.
Just the other day I was playing with SmartGui trying to get a feel of it and made a Simple Text Label, After that I lost around 15 minutes to figure out how to make its background transparent.
I believe that the learning curve of Autohotkey could be even shorter if you provided us with sort of a old school syntax grammar.
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6836
Location: France (near Paris)

PostPosted: Wed Feb 03, 2010 5:59 pm    Post subject: Reply with quote

Can you be more precise?
The "some nicely elaborated" / "some ends up with spaghetti" part is vague, have you names to denounce? Smile

AFAIK, each control/function/command has a complete list of options/parameters/arguments. Where is it lacking?

What do you mean by "old school syntax grammar"? Can you give an example?
For me, the GuiControlGet, OutputVar [, Sub-command, ControlID, Param4] format is very classical in computing docs.
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Wed Feb 03, 2010 9:19 pm    Post subject: Reply with quote

I'm not him, but I have noticed this, here's an example...

some nicely elaborated...
  • SplitPath (each param nicely named & listed in a table)
some ends up with spaghetti...
Back to top
bekihito



Joined: 03 Feb 2010
Posts: 38
Location: Zagreb, Croatia

PostPosted: Thu Feb 04, 2010 1:50 pm    Post subject: Reply with quote

Sorry for not responding earlier.
I would like to thank guest for the help he is trying to bring into this discussion but I think that the some of the things you placed as examples are not exactly what I had in mind, I might say even opposite. For instance the list/tree view is OK.Although a long read, everything is in one continuous page with links to other but similar stuff.
The splitpath is the exact thing I 'm refering to as the "old school" command syntax grammar (remember DOS help?).
SplitPath, InputVar [, OutFileName, OutDir, OutExtension, OutNameNoExt, OutDrive]
-> OK I understand that this principle is not applicable on each and every but...
However when talking of the spaghetti style explanation I was thinking more of something like this:
Text control (GUI)
there are some references to options width, row (leads to another page), height, asks to see general options (leads to another page) and position and sizing of controls (leads to another page)
->(leads to another page) 3 times when explaining something=spaghetti
For not elaborated:
Button (GUI)
you can put default into Option parameter
->when you add Button, after which comma (,) does the option parameter stand? what are the other possible option parameters?
I hope now you see what I was aiming at.
I understand that making documentation is a PITA but on the other hand I believe that this kind of effort would bring more people to using Autohotkey and not "Close and forget about it.It's to complicated." decision.
If there exists a complete list for each and every, I wasn't able to find it in help file so please point me in the wright direction and I'll delete this thread because it's then in the wrong board (ask for help would be the proper one).
Best regards,
Back to top
View user's profile Send private message
bekihito



Joined: 03 Feb 2010
Posts: 38
Location: Zagreb, Croatia

PostPosted: Thu Feb 04, 2010 2:09 pm    Post subject: Reply with quote

Just for exercise!
to PhiLho:
Step 1.presuming from the number of posts, you are a long AutoHotkey user and therefore you have most of the regular expressions in your head.
Step 2. please post here syntax for the Text Control (GUI) and all of the options you can remember (you don't have to explain them).
Step 3. mark the time and open the help file and go through your list of options - click through help, use index and search as you like
Step 4. sum the time you needed to achieve the goal and add 20%
(optional) Step 5. Post the resulting time here.

This will show you how much time is needed for the newbie to get introduced with a single command (that's the +20% time, we newbies are not that fast as long time users Very Happy ).
After introduction there is some time needed for actually learning how to implement the command but if you lack the start you'll never get to it.
Back to top
View user's profile Send private message
Guest






PostPosted: Fri Feb 05, 2010 12:19 am    Post subject: Reply with quote

bekihito wrote:
For instance the list/tree view is OK.

...it's long, doesn't list the names of the functions prominent enough & also doesn't list the params of each function in a table, like SplitPath does...

bekihito wrote:
The splitpath is the exact thing I 'm refering to as the "old school" command syntax grammar (remember DOS help?).

...I still fail to see how SplitPath is bad (also what's wrong with "DOS help"?)...each param is named (not Param1), each param is listed in a table, with its name on the left, what it does on the right, unlike some commands that say "Cmd, Value" on the left & "see list below" on the right of the table...each possible syntax of a command needs to be prominently displayed...

bekihito wrote:
If there exists a complete list for each and every, I wasn't...

..."each & every" what?...is there a missing word?...

bekihito wrote:
I'll delete this thread...

...you can't delete an entire thread, a mod could do it for you, but a mod could also move it, negating the desire to delete it...I think it's fine in Wish List (or Bug Reports) since some parts of the docs are not optimal...

I think SplitPath is an example of "good"...could you provide a small example of what you think would be good?...(for example, rewrite {part of} SplitPath how you think it should be...or think of a fake function/command & describe it & it's params)...if I thought it wouldn't be wasted effort, I'd like to try to reformat the docs to be better...but I have no desire to spend weeks on something & have it sit & no one use it...
Back to top
bekihito



Joined: 03 Feb 2010
Posts: 38
Location: Zagreb, Croatia

PostPosted: Fri Feb 05, 2010 9:27 am    Post subject: Reply with quote

Thank you guest.

SplithPath is the exact thing that I want. I was refering to DOS help as the way it should be.

Listview/Treeview are not in the desired format but everything is in one scrollable page so it can be used but also it can get improved.

It is not a waste of effort and if I knew enough (or had the needed input) I would do it myself/ work with someone to achieve it.

ups! It should be "each and every COMMAND"

Yes this thread is about optimization and adding missing data in the help files rather then inventing something new.

Thanks for the guidance about BB forum but I ment to contact Admin/Mod for deleting /moving I spoke about.
best regards
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Sun Feb 07, 2010 5:01 am    Post subject: Reply with quote

I totally agree. Altho AHK help is elaborate, its more describing one then technical.

See GuiControl.
_________________
Back to top
View user's profile Send private message
bekihito



Joined: 03 Feb 2010
Posts: 38
Location: Zagreb, Croatia

PostPosted: Fri Feb 12, 2010 3:06 pm    Post subject: Reply with quote

Hi everybody!
I see by the few replies I got that I'm not the only one thinking about recomposing the help files.
Also I can guess that nobody is looking forward on actually doing the job so I propose to do the tiresome part of the work if there are some of the more adept Autohotkey users willing to provide me with the syntax grammar (like the SplithPath command) for every command/function etc.
If I manage to come up with a decent product it would be nice in to make a working group in order to do it quickly and to involve Chris Mallet into the production so that the help file can keep track of the new stuff being added.
BR
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Page 1 of 1

 
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