AutoHotkey Community

It is currently May 25th, 2012, 5:28 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 273 posts ]  Go to page Previous  1 ... 10, 11, 12, 13, 14, 15, 16 ... 19  Next
Author Message
 Post subject:
PostPosted: April 26th, 2007, 3:40 pm 
Hi majkinetor,

as for the 0x8000 style, I think it's a matter of taste. But I can think of a configuration option within the Preferences window. Maybe a little checkbox stating "Alternate button style".

Checking it would fill a variable with your mentioned style which is otherwise empty. Incorporating this variable within the button creation process might work. In this way every use can make his/her own decision. What do you think about it?

S.th like this:
Code:
Gui, 1:Add, Button, gBtnBold vBtnBold %VarContainingStyle% xm ym h25 w25 Section +%BS_ICON%


Concerning the menu, I'm not so sure. Every user expects a menu to be at the top of the window. It doesn't take very much space in my opinion. But hey, that's why I GPL'd BBCodeWriter. Everybody is invited to change the code in the way he likes. :)
Nevertheless I will spend some time to think about your idea. Maybe we can make the menu attaching configurable too. Adding an option to preferences GUI and let the user decide what he wants. I will think about it. So thx for the idea.

Last but not least - IE Com. I've seen several IE control solutions and I'm still very interested. Where would you add such a control to the BBCodeWriterGUI? AdditionalGUI reachable by button or integrating it inside main GUI?

As the BBCodeWriterGUI is resizable the former solutions for all these IE controls lacked the possibility to be positioned or resized dynamically.
That's why I made the used browser configurable by a Preferences option and let the user decide which app should care about the HTML code generated by BBCodeWriters preview. ;)

btw. what happend to the buttons above the statusbar? (action bar). I think you have to adjust the code at some positions because I calculate y-postions of these controls. If you're removing the menu bar, you subtract to much pixels e.g. under GuiClose. ;)
_______________________
Cheers AGU a.k.a AGermanUser


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 26th, 2007, 3:53 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Quote:
Maybe a little checkbox stating "Alternate button style".

Well, ppl usualy refer to non-flat intefrace as "old style".
You should definitely have such option. Its simple to add it anyway, just add it like you described.

Quote:
Concerning the menu, I'm not so sure. Every user expects a menu to be at the top of the window. It doesn't take very much space in my opinion.

Times changes. Not any more. Even office 2007 droped standard menus. Its not about standards anyway. Idealy, author should not follow standard blindely but think about how features he provides are used. Menu in BB is probaly used once a month, as you don't really save your messages around every day, or exit app with Menu->Exit, watch Help every day, or use Edit functions when you can use shortcuts or RMB.... I think you got the point ;)

Quote:
Maybe we can make the menu attaching configurable too.

I can do this for you if you can't think about solution. In anyway, i think you shold not complicate much but just put it as button :D But if you are nostalgy about your menu :lol: , ok, set it as option, I will certanly turn it off as soon as I see it :D

Quote:
Where would you add such a control to the BBCodeWriterGUI? AdditionalGUI reachable by button or integrating it inside main GUI?
Probably integrated into main gui as of aligment reasons.
Preview button will open this panel, like you have all over around in sw. Toggle prview again to hide this panel. Its position can be customizable -left up bottom right - but it may be much simple just to put it right or bottom as it will be probably best seen there.

To use it in another gui will mean more code for aligment which is not what I would do. I think that using COM u can achieve real time updates or at least much faster.

Quote:
btw. what happend to the buttons above the statusbar?

Well, I just did it very quickly to show you, I acctually use original version now, but I planeed to make changes if you don't like the idea. :D

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Virus or not?
PostPosted: May 8th, 2007, 3:38 pm 
Hello,
Avast found a virus in your setup file: Win32:Autoit
What's up with that?
Thanks


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 8th, 2007, 4:11 pm 
Offline

Joined: March 16th, 2005, 10:33 pm
Posts: 968
Location: Frisia
That is called a "false positive". If you search the Forums, you'll find more postings regarding antivirus programs flagging compiled AHK-Scripts.

_________________
Image mirror 1mirror 2mirror 3ahk4.me • PM or Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 9th, 2007, 3:03 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Hello

I changed the BBCode to support live preview using IE COM Control
I uploaded viedeo so you can check it out.

I totaly destroyed BBCode GUI for this purpose as I just wanted to see is it possible. Well, this proves it is possible and it works super even with small pulling timer, like 200MS.

I beleive some more optimisations are possible, for instance, not creating the file at all, but sending HTML string directly to IE control. Maybe Sean already have answer to this.

Check out the video here.

If you are interested to update BBCode using this technique I can suggest you how.

Also, preview function can be made 50 x times smaller as you can use RegExpReplace for most things.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 11th, 2007, 12:37 pm 
Hi majkinetor,

sorry for answering so late. As BBCodeWriter is a spare time project I'm working on it only when I've got time to do so. So I welcome any contributions. :)

So let's move on to your IE Com control. Looks really interesting. I checked your video and it looks very promising.
Some questions about this:

One of the important features of my program is the resizable GUI which was one of the reasons why I wrote it.
I wanted to be flexible in this point as the edit control within the browser is very small. Would the GUI still be resizable with an added IE control?
What about Windows installations where IE was removed/uninstalled? Would this control work on these installations?
Is this control dynamically resizable? I use Titan's anchor function for resizing the GUI. Would the control fit in that mechanism?

As for the preview function. I would really welcome any help for the preview routine. :) Sadly I don't know enough about RegEx to accomplish this.
I didn't use RegEx for this when it came up in Autohotkey, because someone mentioned it wouldn't bring any advantage compared to the classic StringReplace. StringReplace is said to be very fast.

What about nested lists? Would this work with RegEx compared to the current solution? I tried to find some RegEx code for BBCode<->HTML conversion but didn't find good solutions.
If you would find some cool, small, bugfree regex solution for the preview I would really love that. :D
____________________________
Cheers AGU


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 11th, 2007, 1:22 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Quote:
Would the GUI still be resizable with an added IE control?

Yeah. Although you can't use Anchor for that. You have to explicitely do it via Move function. You can check the example in ISense which has Zoom function to zoom help window full screen.

Quote:
What about Windows installations where IE was removed/uninstalled? Would this control work on these installations?

Who removes IE from the system ? IE is crutial part of OS.

Quote:
As for the preview function. I would really welcome any help for the preview routine. Sadly I don't know enough about RegEx to accomplish this.

I can't involve myself into that now, sorry, but I will help you as much as I have time. I have like 10 active projects on my own currently. You didn't use any mechanisms to allow others to change your code quickly. Anyway, function is alredy fast enough in its current state like it is. It can be faster yes, but I will do something about that when/if you provide updates to live preview.

So basicly once you setup things on their place, I will help you. You can probably hardcode preview window to be at the bottom for the start.

Quote:
StringReplace is said to be very fast.

Not if you can replace 4 SR with 1 RE. RE in AHK is very fast.

Quote:
What about nested lists?

Don't know... Perhaps Titan can advise. I think he did something nested recently (probaly for XML thingie)

Quote:
If you would find some cool, small, bugfree regex solution for the preview I would really love that.

Like I said, lets first make changes, then we can optimise.


What I did in the code:

BBCodeEditor.ahk,
end of CreateMainGui:


Code:
  SetTimer, BtnPreview, 500
  IEAdd(WinHandle, 0, 50, 800, 300, "about:blank")


End of file:
Code:
#include IEControl.ahk
#include CoHelper.ahk


BBCodePreview.ahk

Start of CreatePreview in BBCodePreivew.ahk
Code:
   if (bbCode = prevBBCode)
      return
   else prevBBCode := bbCode


End of sub:

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   
;    }

     IELoadURL(A_WorkingDir "\preview.html")


So you see, code changes are small, the resulting code is even smaller as I commented larger part then I added (not counting modules) it will become biger due to customization. If you want I can advise you how to create maintable GUI that can be easily changed.

_________________
Image


Last edited by majkinetor on May 11th, 2007, 1:32 pm, edited 3 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 11th, 2007, 1:38 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
I uploaded changed "version" for you here. Its messed up completely but it will show you the point and what to do:

Works only with latest AHK version:
http://www.autohotkey.net/~majkinetor/- ... Writer.rar


Optimisations for preview function can be done in case we want preview per key press. Currently I implemented preview per timer (500ms) and it works good here. Sean may tell us if there are any ways to send string with HTML to IE so to avoid slow file creation.

With some options, you can make this just extension of your currnet code.
Like, option can be refresh interval, and user can set it to 0 for manual refreshing or to arbitrary number of seconds for automatic. So everything stays as before, just IE is integrated. If you put preview on right side, you will have enough room for even full screen edit.

I tested live prevew with larger posts, like the one above, and it still works fine. The only problem will be that IE will scroll back to the top of file once you reload it, but I will fix that for you.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 14th, 2007, 11:40 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Quote:
Gui_IELoadHTML(html_string)

Sean just updated IE control so we can do live preview w/o temp files. This will make live preview instant, probably feasible on key press, but can be done on Timer too.

Tell me, are you still interesting in doing this or no ?

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2007, 11:21 am 
Quote:
Tell me, are you still interesting in doing this or no ?
Well, yes. :D

The problem is I don't have the time to work on this at the moment. But I'm still interested. I'll keep an eye on this for sure. In my opinion the IE control would look best below the 'action bar' (signatures, copy, preview, reset).
Maybe with a fixed height but scales in width just like the edit control.

Haven't made any further thoughts about it till now.
______________________
Cheers AGU


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2007, 11:24 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
The time required for U to do this is like several hours. Anybody else will require lot of time as you made entire script non-flexibile so it is hard to change it without looking at every peace of code bellow and above. In sopthisticated GUI, every section can be moved in such way, that it reposition all sections under it. If you did so, adding IE control could be done by anybody, by just inserting it at place where it should be without further modifications.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 16th, 2007, 10:57 am 
Offline

Joined: May 16th, 2007, 10:38 am
Posts: 4
Hi people

First sorry for my bad English and Congratulations for AHK. Nice Program.

I have a problem. AHK Preview cant show Thid code corectly.

Code:
[url=http://www.ptwarriors.com/forum/viewforum.php?f=12][img]http://www.blizzard.com/wow/images/header-paladin.gif[/img][/url]


Its supposed to show this:

Image

What im doing Wrong ?

Thx for your help


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 16th, 2007, 11:27 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
This is strate forward control.
Paladins are gay. Maybe that can be the reason. Try with shamie.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 16th, 2007, 12:24 pm 
Offline

Joined: May 16th, 2007, 10:38 am
Posts: 4
Hi

Lets Try Shamie :)

...................Image...................

Image

Dont Work, Pala are not better then Shamie in this case :)

AHK Preview cant show Thid code corectly.
Can some one help me ?

Code:
[i]...................[/i][url=http://www.ptwarriors.com/forum/viewforum.php?f=12][img]http://www.blizzard.com/wow/images/header-shaman.gif[/img][/url][i]...................[/i]
[url=http://www.ptwarriors.com/forum/viewtopic.php?t=316][img]http://www.wow-europe.com/shared/wow-com/images/info/classes/shaman/shaman.png[/img][/url]


thx


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 16th, 2007, 1:26 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
At least Shamie is not gay 8)
Just look at da orc - A real man :D

Sorry, I beleive AGU is the only one that can help you now.

_________________
Image


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 ... 10, 11, 12, 13, 14, 15, 16 ... 19  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Yahoo [Bot], ZeLen1y and 10 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