AutoHotkey Community

It is currently May 27th, 2012, 5:18 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: June 21st, 2009, 6:45 pm 
Offline

Joined: March 16th, 2005, 10:33 pm
Posts: 969
Location: Frisia
Thanks for the update.

Could you have a look at the alternative HTMLayout too? Please check out my first attempts here.

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 24th, 2009, 6:45 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Looks like very cool control. Ty for notification.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject: cool
PostPosted: June 24th, 2009, 7:22 pm 
Offline

Joined: May 22nd, 2009, 2:48 pm
Posts: 12
qhtm is also good but yeah, htmllayout is way better.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 7th, 2011, 4:34 pm 
Offline

Joined: December 30th, 2010, 9:50 am
Posts: 15
Hi majkinetor,

is there a way to update the text of a QHTM_Add ?

Code:
#include QHTM.ahk
QHTM_Init("qhtm.dll")

#SingleInstance force
Gui, +LastFound
hGui := WinExist()
w := 800,  h := 700
hQhtm := QHTM_Add( hGui, "Some interesting text", 0, 0, w, h, "", "")
Gui, show, w%w% h%h%
return


Esc::
exitapp
return


I want to update the content of the QHTM_Add based on a function containing a timer for example. Is there a way to do this without destroying / rebuilding the gui ?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 7th, 2011, 4:50 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
http://www.autohotkey.net/~majkinetor/q ... ml#AddHtml

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 7th, 2011, 4:53 pm 
Offline

Joined: December 30th, 2010, 9:50 am
Posts: 15
Ok, I maybe found a way to updating my text :

Code:
#include QHTM.ahk
QHTM_Init("qhtm.dll")

#SingleInstance force
Gui, +LastFound
hGui := WinExist()
w := 800,  h := 700
hQhtm := QHTM_Add( hGui, "some text", 0, 0, w, h, "", "")
Gui, show, w%w% h%h%

count := 0

return


F5::
;refresh data
SetTimer, UpdateText, 1200

UpdateText:
count++
hQhtm := QHTM_Add( hGui, count, 0, 0, w, h, "", "")
return


Esc::
exitapp
return


I just rewrite html on the previous text. Is there some consequence for memory usage is I let this script running cause each time I add a QHTM_Add and as I have some flickering (not a problem for the purpose of my script) on my screen, I can see the previous content of the text => so content is not destroy and I just add text over the previous.

Do you think there is a better way to update the text ?
Regards.

EDIT : ok I have post this in the same time you post your answer, I will have a look on the AddHtml function ;)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 7th, 2011, 5:24 pm 
Offline

Joined: December 30th, 2010, 9:50 am
Posts: 15
majkinetor wrote:
http://www.autohotkey.net/~majkinetor/qhtm/qhtm.html#AddHtml


Ok, I have modified my previous script to use QHTM_AddHtml, but the text is not replaced by the new one, new text is just added at the end of the old text, no matter what the value of the bScroll param :(

Code:
#include QHTM.ahk
QHTM_Init("qhtm.dll")

#SingleInstance force
Gui, +LastFound
hGui := WinExist()
w := 800,  h := 700
hQhtm := QHTM_Add( hGui, "Some text", 0, 0, w, h, "", "")
Gui, show, w%w% h%h%

count := 0

return


F5::
;refresh data
SetTimer, UpdateText, 1200

UpdateText:
count++

QHTM_AddHtml(hQhtm, count, false)
;hQhtm := QHTM_Add( hGui, count, 0, 0, w, h, "", "")
return


Esc::
exitapp
return


Is there something wrong in the way I use QHTM_AddHtml ?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 7th, 2011, 8:47 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
You can clear control with:

Code:
ControlSetText, , , ahk_id %hQhtm%

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 10th, 2011, 2:53 pm 
Offline

Joined: December 30th, 2010, 9:50 am
Posts: 15
Thanks majkinetor, that works !!! :)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: Exabot [Bot], Google Feedfetcher and 12 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