AutoHotkey Community

It is currently May 27th, 2012, 10:42 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 192 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10, 11 ... 13  Next
Author Message
 Post subject:
PostPosted: August 24th, 2010, 5:33 pm 
Offline

Joined: October 9th, 2006, 8:19 pm
Posts: 236
Location: Finland
Anonymous wrote:
...huh? I don't think so...

Sorry, I thought the phrase to present the new text :oops:

Thanks, "Guest".

I got confused with these trying to move SplashText window before it's shown.

_________________
Pekka Vartto


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2010, 9:09 pm 
Offline

Joined: October 9th, 2006, 8:19 pm
Posts: 236
Location: Finland
Foreword:
It's not obvious how completely things should be explained in the help file (helping novices) vs. searching the forum (favoring veterans), but all knowledge which can improve reliability should be published there.


UrlDownloadToFile fails for two reasons that I know, but which are not mentioned:
1. IE is offline.
2. IE has crashed (message box shown). (This is not very rare on my unstable system.)
EDIT 18th of October 2010:
I've had four crashes during these six weeks, and they didn't affect UrlDownloadToFile.
Only the tab process crashed at least three last times (IE8).
So, either only a main process crash affects or I've mistaken :oops:

_________________
Pekka Vartto


Last edited by svi on October 18th, 2010, 8:01 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 15th, 2010, 3:47 am 
Offline

Joined: November 28th, 2009, 4:45 am
Posts: 3089
NoActivate but Clickable Wicked found a very usefull option
Code:
Gui, +E0x08000000 ;makes the gui clickable without losing focus on the active window
Note: if you have an edit control with this option you won't be able to type in it.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: November 11th, 2010, 3:24 pm 
Offline

Joined: November 1st, 2010, 3:13 pm
Posts: 62
I can not find documentation for what the buttons at the top of a "Post a Reply" screen do?

Specifically, I wanted to learn how to create a code box. (Someone suggest I use one in my posts.) I could not find how to do so. People told me how, but no one was able to tell me where this is documented. I could not find it anywhere. So, I believe it is not documented. For more details, see:
http://www.autohotkey.com/forum/viewtop ... 747#398747

(did Icreate that url correctly? I'm not sure.... the button has an ASTERISK now. what does that mean?)

I would like to suggest that these buttons be documented, hopefully in one of the sticky tutorials on using the forums (most of which I have read).




[/url][url][/url][url][/url][url][/url][url][/url]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 11th, 2010, 7:12 pm 
Quote:
I can not find documentation for what the buttons at the top of a "Post a Reply" screen do?

That would be more how to use the website, rather than how to use AHK itself. As I'm posting this, I see the following just below & left of the Emoticons:

Quote:
Options
HTML is OFF
BBCode is ON
Smilies are ON

If you click on BBCode, it takes you to the BBCode Guide.


Report this post
Top
  
Reply with quote  
PostPosted: December 2nd, 2010, 4:32 pm 
Offline

Joined: November 1st, 2010, 3:13 pm
Posts: 62
I can not find where the OPTIONS for the GUI,ADD,ControlType[,Options,Text] command are defined.

Options are shown for the GUI,SHOW command.

1. Are the options for GUI,ADD,TEXT the same as those for GUI,SHOW?

2. If they are, I think the documentation should say so. In that case, I should also think they should be with GUI,ADD,TEXT since that command is shown first in the doc.

3. What are the options for all the other controltype operands of the GUI,ADD command? I see options are listed for some: EDIT, UPDOWN, LISTBOX, but not all.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 2nd, 2010, 5:07 pm 
Offline

Joined: May 12th, 2009, 2:37 pm
Posts: 640
Location: Gloucester UK
The options are listed but as they are general for all control types they have their own section rather than duplicating for each control type or just having them for one control and assuming that people will see that they are for all.

Within the Gui documentation look for the 'Options and styles for controls' section.

I would agree that the layout is not ideal but given the complexity of the documentation for Gui I think that the solution that is the docs is elegant and simple, it just takes a little while to be able to find your way around.

As this is the case maybe a link to the 'Options and styles for controls' section from the Gui, Add section would be useful?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 2nd, 2010, 8:00 pm 
Offline

Joined: November 1st, 2010, 3:13 pm
Posts: 62
That's a good start.

But, now, let's look at a particular: The "UNDERLINE" option for the GUI,ADD,TEXT command.

I do not find this option documented anywhere. It is "mentioned" in the GUI,ADD,TEXT section, but that's it. No formal statement about it. And in the same vein, the "NORM" option (to undo UNDERLINE) is also just mentioned in passing. This latter one got me: when I found UNDERLINE, I next tried -UNDERLINE to turn it off. NO!!!

Underline being not formally documented makes me wonder what else is not.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 2nd, 2010, 9:27 pm 
Offline

Joined: November 1st, 2010, 3:13 pm
Posts: 62
The table of contents for the GUI topic includes the following entry:
Quote:
Minimize / Maximize / Restore: Performs the indicated operation on the window.

However, this entry is actually titled:
Quote:
Hide / Minimize / Maximize / Restore: Performs the indicated operation on the window.

HIDE should be added to the link at the top of the table of contents.

Thanks.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 2nd, 2010, 11:04 pm 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
wooly_sammoth wrote:
Within the Gui documentation look for the 'Options and styles for controls' section.
I suppose you found this by now, but for posterity: Options and styles for controls.

Underline and Norm are used in the Text example as options for GUI, Font, thus you will find them documented there.

Hide is equivalent to Cancel, and thus mentioned in that link in the table of contents. It should be removed from Min, Max, Restore; or the two sections should be merged.

The entire GUI page needs to be rearranged; there's no doubt about that. The documentation itself is great, but disorganized. Right now, the priority is the phpBB upgrade. Some time in the future the help file can be addressed as a project in itself. The problem with modifying the online help is that it becomes out of sync with the download. :(


Report this post
Top
 Profile  
Reply with quote  
PostPosted: December 3rd, 2010, 5:05 pm 
Offline

Joined: November 1st, 2010, 3:13 pm
Posts: 62
Documentation for RUN states
Quote:
If Target contains any commas, they must be escaped as shown three times in the following example:


However, I received an error about a missing percent sign when I tried the following command:
Quote:


I am virtually certain I have a problem with escaping a Percent sign.

But, the RUN command does not tell me I must escape this character.

1. What are ALL characters that must be escaped in this case?

2. A doc fix would be nice (probably a link to escaping in general).

3. I don't like that my sample command (Run http:...) shows up as a URL in this post. Can I turn that off. (I Did not use the url command/keyword.)

Thanks,
JoeFiesta

p.s. Yes, the "Escape Sequences" section of the SCRIPT chapter does mention this. But, why document the need to escape a comma here and not the need to escape a %. This is a matter of consistency and logic. The fact that % is NOT documented here implies that IN THIS CASE it need not be escaped.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 3rd, 2010, 5:08 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
the fact is the documentation all over the place assumes you read it and there for know that % is the first part of derefrencing a variable and so you should know by default as a matter of language contruction this needs to be escaped. should this detail be included in every single command since it applies there also?

as far as the coma goes because its escape rule is different

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 4th, 2010, 2:57 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
Percent sign should be much more obvious since a) in text args they're always used for dereferencing variables and b) using them incorrectly usually causes a load-time error dialog, whereas an unescaped comma causes no load-time error dialog and sometimes isn't caught at run-time either. For instance,
Code:
run explorer.exe /select,C:
When run from a command prompt, that command (minus "run") would open My Computer and highlight C: drive. As the comma wasn't escaped, in this case it sets C:\ as the working directory and opens to the default location. The need to escape comma is documented there because it is a relatively common pitfall.
JoeFiesta wrote:
I don't like that my sample command (Run http:...) shows up as a URL in this post.
Use code tags for posting code, not quote tags.
Quote:
The fact that % is NOT documented here implies that IN THIS CASE it need not be escaped.
I disagree. It should be obvious that percent signs are still used for variable dereferencing and therefore must be escaped to be seen as literal, especially since the next example after the "commas must be escaped" example uses a variable reference.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: December 10th, 2010, 5:04 pm 
Offline

Joined: November 1st, 2010, 3:13 pm
Posts: 62
The example for detecting a twice or thrice pressed key under SETTIMER was very helpful.
But, the code is rather cumbersome. The example shows:
Code:
#c::
if winc_presses > 0 ; SetTimer already started, so we log the keypress instead.
{
    winc_presses += 1
    return
}
; Otherwise, this is the first press of a new series. Set count to 1 and start
; the timer:
winc_presses = 1
SetTimer, KeyWinC, 400 ; Wait for more presses within a 400 millisecond window.
return


This can all be simplied to just 4 lines (which doesn't change the KeyWinC routine):
Code:
#c::
   winc_presses += 1
   if winc_presses = 1                               
      SetTimer, KeyWinC, 400                     
   return 


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 10th, 2010, 11:59 pm 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
How would you explain what's happening in the comments; and would it be just as easy for a new user to understand?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 192 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10, 11 ... 13  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group