AutoHotkey Community

It is currently May 27th, 2012, 8:37 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 273 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 19  Next
Author Message
 Post subject:
PostPosted: April 26th, 2006, 12:43 am 
Offline

Joined: February 12th, 2005, 8:31 pm
Posts: 82
As most often after a release another small release to fix an error. ;)
Fixed this little displaying bug when resizing the GUI in x-direction.

Quote:
26.04.2006
+ updated Anchor function to Titan's new version - customized formatting
+ removed some old code from CreatePreferencesGUI subroutine - IniRead, NumEditRows, ...
+ automatic detection of present language files (thx dinkosta)
+ added support for hexvalues for colors - color picker in FontColor GUI


@dinkosta:
Language files are now automatically detected and the dropdown list should update after a restart of BBCodeWriter when you copied another lang_xx.ini into the lang directory.
To avoid any displaying errors you just have to stick to the format of the existing ini files.

_________________
Cheers
BBCodeWriterToDo-ListCopyPassage


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 26th, 2006, 7:18 am 
Offline

Joined: November 3rd, 2005, 4:01 pm
Posts: 6
In version 6.1, found a slight problem with the lower right buttons when resizing the window by dragging the lower edge. Not sure this is the correct fix but it seems to work by changing this
Code:
      Anchor("BtnSend"      , BG1X, BG3Y, ""  , ""  , 1 )
      Anchor("BtnPreview"   , BG2X, BG3Y, ""  , ""  , 1 )
      Anchor("BtnReset"     , BG3X, BG3Y, ""  , ""  , 1 )
to this
Code:
      Anchor("BtnSend"      , BG1X, BG3Y, ""  , ""      )
      Anchor("BtnPreview"   , BG2X, BG3Y, ""  , ""      )
      Anchor("BtnReset"     , BG3X, BG3Y, ""  , ""      )


Also, two other general suggestions not related to a specific version. First, with Firefox I sometimes find that the first time opening a preview window in the browser, the BBCodeEditor window does not minimize automatically. It seems to be a timing problem and this mod resolves it.
Code:
  ; Check whether BBCodeWriter already created a browser window
  IfWinExist, BBCodeWriter Preview
    {
      WinActivate, BBCodeWriter Preview
      Send, {F5}
    }
  Else
    {
      ; Run defined browser with preview page
      Run, %BrowserExe% "%A_WorkingDir%\preview.html"   
      WinWait, BBCodeWriter Preview
      WinActivate, BBCodeWriter Preview
    }
Return


Finally, I'm uncoordinated and in the past have accidentally hit the reset button. I made this mod to protect me from myself.
Code:
BtnReset:
  MsgBox, 1,, Are you sure you want to clear this window?
  IfMsgBox, Cancel
    Return
  GuiControl, 1:Focus, EdtComment
  GuiControl, 1:Text, EdtComment
Return


Cheers,
-rf


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 26th, 2006, 10:38 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
Dear AGU, :)

Just wanted to thank you for this wonderful utility.

Version 6.1 is great!

I am happy to maximise the editor now. :D
HTML Color code support is very nice. :D
Actually, I tried it once ( while I was posting ) but did not put the hash prefix for the Color Code, and so it did not work!. :(

Thanks again .. Keep the good work going.

Regards, :)

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 26th, 2006, 10:52 pm 
Offline

Joined: September 28th, 2005, 2:10 pm
Posts: 39
Location: Pirot
I've just tested it and it works great with new language files.
Excellent job!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 26th, 2006, 11:26 pm 
@roundfile

Quote:
In version 6.1, found a slight problem with the lower right buttons when resizing the window by dragging the lower edge. Not sure this is the correct fix but it seems to work by changing this
That's funny ;) I put the "1" there to avoid a bug when resizing the GUI in x-direction. It makes a MoveDraw instead of a normal Move. After using MoveDraw I don't have any more displaying errors during resizing. So I can't reproduce this error on my system (W2k).
I described my former problem in the following thread: http://www.autohotkey.com/forum/topic43 ... 7606#57606

Could you describe your problem? Maybe a little screenshot? Anyone out there who also has displaying errors when resizing the GUI?

Quote:
First, with Firefox I sometimes find that the first time opening a preview window in the browser, the BBCodeEditor window does not minimize automatically.
The preview window was never meant to minimize the main GUI. In fact I wanted it this way. :)
Either the preview window as active window hides the BBCodeWriterGUI or when set as AlwaysOnTop you have the preview browser window in some way in the background for quick checking (Alt+P) how the posting will look like. It was meant as some kind of 'dirty' WYSIWYG. ;)
Only pressing the "Copy" button should minimize the main GUI. This was the plan. It copies the BBCode to clipboard and you can paste it in your browser window.

Quote:
Finally, I'm uncoordinated and in the past have accidentally hit the reset button.
Ok, I think I'll add that. Sounds good.

@Goyyah
Quote:
Actually, I tried it once ( while I was posting ) but did not put the hash prefix for the Color Code, and so it did not work!
How do you mean that? The color picker inside the font color GUI (Button 'user defined') should add the hash prefix automatically. Or did you try to enter the color code manually? Ok, then I see what you mean.
Have you maybe overlooked that color picker inside the font color GUI ;) Or do you really have a problem with the color picker returning bad code?

@dinkosta
Just in case you're interested you can share your inifile and I will add it to a next version of BBCodeWriter. :)
_______________________
Cheers
AGU


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 27th, 2006, 7:02 am 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
Dear AGU, :)

You wrote:
How do you mean that? The color picker inside the font color GUI (Button 'user defined') should add the hash prefix automatically. Or did you try to enter the color code manually? Ok, then I see what you mean.
Have you maybe overlooked that color picker inside the font color GUI Or do you really have a problem with the color picker returning bad code?


Oh! I should have put it clearily!

No problem with BBCode Writer.. It works very fine..

I meant to say that -

I tried it a month ago ( i.e. before you implemented it ).
I was not satisfied with the two shades of blue we had ( [color=blue] & [color=darkblue] ) and so I tried something like [color=003BA0] and obviously it did not work! If I had prefixed the #, it would have been discovered much earlier.

Anyways! I wanted this feature and I am very happy that HTML Colors are available in phpBB and BBCodeWriter supports it :D :D

Regards, :)

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Last edited by SKAN on April 28th, 2006, 2:02 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 27th, 2006, 7:25 am 
Hi AGU,

Quote:
Quote:
In version 6.1, found a slight problem with the lower right buttons when resizing the window by dragging the lower edge. Not sure this is the correct fix but it seems to work by changing this
That's funny Wink I put the "1" there to avoid a bug when resizing the GUI in x-direction. It makes a MoveDraw instead of a normal Move. After using MoveDraw I don't have any more displaying errors during resizing. So I can't reproduce this error on my system (W2k).
I described my former problem in the following thread: http://www.autohotkey.com/forum/topic43 ... 7606#57606

Could you describe your problem? Maybe a little screenshot? Anyone out there who also has displaying errors when resizing the GUI?

Here's a picture of what happens when I resize with version 6.1 as delivered with the 1's in place. The screen shot is after dragging the lower right corner in the direction down to the right.
Image
Removing the 1's everything works just fine again (after resetting the values in the BBCodeWriter.ini file to get the buttons back to where they should be.

Quote:
Quote:
First, with Firefox I sometimes find that the first time opening a preview window in the browser, the BBCodeEditor window does not minimize automatically.
The preview window was never meant to minimize the main GUI. In fact I wanted it this way. Smile
Either the preview window as active window hides the BBCodeWriterGUI or when set as AlwaysOnTop you have the preview browser window in some way in the background for quick checking (Alt+P) how the posting will look like. It was meant as some kind of 'dirty' WYSIWYG. Wink
Only pressing the "Copy" button should minimize the main GUI. This was the plan. It copies the BBCode to clipboard and you can paste it in your browser window.

I said "minimize" but what I really meant is that the BBCodeEditor window remains on top the first time Preview is clicked. For subsequent Previews the browser becomes the top window which is what I thought is the intended behavior. This all happens when Always on Top is not selected. I really think this is a timing issue when using Firefox. The run command causes Firefox to open a new tab the first time. The subroutine exits before the Firefox tab is displayed and the BBCodeEditor remains on top. It all happens much faster the second time after the browser tab has been created and the run command acts like a WinActivate bringing the browser to the foreground. The mod I made causes the program to wait until the browser tab exists and then brings it to the front before continuing. The change does not affect things when Always on Top is selected. I hope that is a clearer description.

Quote:
Quote:
Finally, I'm uncoordinated and in the past have accidentally hit the reset button.
Ok, I think I'll add that. Sounds good.
Thanks!

Cheers,
-rf


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 27th, 2006, 6:39 pm 
@roundfile
Thanks for your detailed informations. Due to your screenshot I think this error is a result of an outdated Autohotkey version. According to AHK documentation "MoveDraw" was implemented in version 1.0.41.02. So any version older than this doesn't know what to do with MoveDraw and won't move the buttons when resizing the GUI. I think updating your Autohotkey version to the current release might this error make disappear.
I will update the first posting to specify a minimum version of Autohotkey. Thx for drawing my attention to this point.

Quote:
I said "minimize" but what I really meant is that the BBCodeEditor window remains on top the first time Preview is clicked.
Oh, sorry for misunderstanding this. Now I see what you mean. I'll check your workaround code and will certainly integrate your code. :D
____________________
Cheers
AGU


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 27th, 2006, 10:06 pm 
Offline

Joined: November 3rd, 2005, 4:01 pm
Posts: 6
AGU wrote:
I think updating your Autohotkey version to the current release might this error make disappear.
Right you are! Problem solved. Thanks !

-rf


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 8th, 2006, 1:30 pm 
Offline

Joined: February 12th, 2005, 8:31 pm
Posts: 82
OK, here's another one. :D
Quote:
08.05.2006
+ fixed Preview - using WinWait to wait for browser window (thx roundfile)
+ added MsgBox for 'Reset' button to avoid accidentally resetting edit control (thx roundfile)
+ added support for two user-defined BBCode Tags - configurable via Preferences GUI


Added roundfiles two suggestions and support for two user-defined BBCodes.
e.g. [html][/html]. I've seen some of these BBCodes in some forums so I thought it might be a good idea to let the user specify support for these tags on his/her own.

_________________
Cheers
BBCodeWriterToDo-ListCopyPassage


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 16th, 2006, 5:59 pm 
Offline

Joined: August 24th, 2005, 5:17 pm
Posts: 1237
Is there are reason that the script doesn't use "SetKeyDelay, 0" in BBCodeEditor.ahk? It makes inserting tags much better visually by not seeing the cursor move around.

Also, I found the default font size for the editor (when composing) to be rather tiny. I bumped up the font size by inserting:
Code:
SetKeyDelay, 0
Gui, Font, s10

... at the start of the script and

And...
Code:
Gui, Font


... on the line before ...
Code:
 Gui, 1:Add, Checkbox, gChkSig vChkSig xs y%ChkY% Section, %lang_gui1_ChkSignature%


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 16th, 2006, 6:31 pm 
Quote:
Is there are reason that the script doesn't use "SetKeyDelay, 0" in BBCodeEditor.ahk?
No, there is no reason. I didn't think about adding that. But I tested it some minutes ago and I think this is a very good idea. I'll add this in the next version. Thx for this. :D

Quote:
Also, I found the default font size for the editor (when composing) to be rather tiny.
By not specifying any font size via Gui, Font the script should use the system's default GUI typeface, size, and color. I didn't have any problems with the fontsize yet and no one reported any problems to me too. As it's using the system default, all fonts on your system should be rather tiny. What's your screen resolution? I don't have any problems under 1280*1024 (W2k).

Nevertheless I tried Gui, Font, s10 and found out that on my system the text controls and labels tend to get too wide and get either linebreaked or overdrawn by other controls. Especially when using "German" language under Preferences, because german words are longer than the english ones in some cases.

I think the best solution would be to change the system defaults under Desktop Properties - Appearance. Did you have any linebreaked of overdrawn labels when using Gui, Font, s10?
___________________________
Cheers
AGU


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 16th, 2006, 6:36 pm 
Quote:
Also, I found the default font size for the editor (when composing)
Or do you just mean the font size within the edit control?

Well that could be changed I think. Maybe adding another option to the preferences GUI that lets the user specify a font size for the edit control. What do you think about it?
_______________________
Cheers
AGU


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 16th, 2006, 7:21 pm 
Offline

Joined: August 24th, 2005, 5:17 pm
Posts: 1237
Hi AGU,

Glad the SetKeyDelay was useful :D

Yes I meant the edit control (should have been more precise). The default font size for my system seems to be 8 (haven't fiddled with the defaults). It displays this correctly and other things are in that font size too - such as menus, etc. But for composing lots of text it is uncomfortably small, hence changing to size 10 in the edit control. I think a box to type in the font size in the preferences window would be sufficient for most people and it'd only add a few lines of code as I demonstrated in the previous post.

I was thinking (if you're not interested in implementing it yourself) that it would be helpful to automatically save composed posts without asking the user (of course a setting for whether or not to do this behaviour would be a good idea). I was thinking along the lines of automatically saving to text files using the time and date to generate unique file names (these could easily be searched within using the Windows search for specific text, so naming them isn't really that critical and would make it faster to type a reply but be able to have everything saved easily). Also a "Next Post" button or similar that saved the file automatically and then cleared the edit control ready for the next post would be neat.

I could edit it out myself, but I found the window minimizing on pressing the copy button was about as unhelpful as it was helpful because there is no easy way of then alt-tabbing back to it, etc. Maybe a customizable hotkey for minimizing/restoring the window?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 18th, 2006, 6:14 pm 
Offline

Joined: February 12th, 2005, 8:31 pm
Posts: 82
Quote:
But for composing lots of text it is uncomfortably small, hence changing to size 10 in the edit control...
Ok, I'll add a little dropdownlist to the preference window that lets you specify a font-size between 8 and hmm. lets say 16? Will this be enough?

Quote:
I was thinking (if you're not interested in implementing it yourself) that it would be helpful to automatically save composed posts without asking the user (of course a setting for whether or not to do this behaviour would be a good idea).
You mean some kind of autosave feature that saves during GuiClose and BtnReset? Or even all 10mins? Must think about it.

Quote:
I was thinking along the lines of automatically saving to text files using the time and date to generate unique file names (these could easily be searched within using the Windows search for specific text, so naming them isn't really that critical and would make it faster to type a reply but be able to have everything saved easily).
The proposed filename for saving a posting is already built from date and time values. How would the windows search work here? Doesn't it just look for filenames? How could you search for text inside files with the help of the windows search function? Is this really possible?

Quote:
Also a "Next Post" button or similar that saved the file automatically and then cleared the edit control ready for the next post would be neat.
As a result of this autosave feature the 'Reset' button would do this job I think.

Put everything together I think I need some more comments on this process of autosaving. How do you think this should work in detail?

Ok you open BBCodeWriter and begin typing your posting, ... then?

_________________
Cheers
BBCodeWriterToDo-ListCopyPassage


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 273 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 19  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: AndyJenk, Aravind, hyper_, xXDarknessXx and 11 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