[help] Text Wrapping

is there a way to make the text wrap within the text box?

that is, i have a meter that runs into the other text. i want to make the text box narrower, but longer vertically so that the text will simply break into two lines. is that possible?

also, my images don't seem to update themselves. how do i specify it?

thanks.

post-1312-1076281501_thumb.jpg

config.JPG
config.JPG

#111623

Word wrapping with vbs:

http://www.samurize.com/modules/ipboard/in...hp?showtopic=17

or wait for the next version of samurize :D

#111626

Samurize dont update images unless those are "PNG image meters"

Add Meter -> whateveryouneed -> then, set draw type to image.

Really difficult to explain when I dont know what you are trying to do. :D

#111631

no text wrapping in 1.20 then? aww man.

png image meters? it's the weather script. i added the temp image files by going to edit graphics > add drawobject > 32bit png.

#111636

There is a word wrap option in 1.20. Its in the meter text properties section of the editor.

#111642

hey thanks! i can't believe i didn't see that. :lol:

thanks again. :)

#111643

Dreamz regarding your refresh issue, a quick and effective way is to add the following script to your config

Function Refresh
On Error Resume Next
Dim WshShell
Set WshShell = createobject("wscript.shell")
WSHShell.SendKeys "(^%r)"
WshShell.Quit(0)
End Function

This Code assumes you have the refresh key set to Ctrl+Alt+R in your config, if not change the script line

WSHShell.SendKeys "(^%r)"

to whatever other keys you want it set to e.g. "(^%p)" = Ctrl+Alt+P. ;)

Edit:

Oh yeah, just in case you didn't know (which I doubt), create an activescript and select the above function that you've already saved inside a vbs file in your script folder, and set the 'Run every X min' to say 15 mins.

#111937

thanks for the reply. i usually use the reload hotkeys anyway, but i was wondering if there was a way for samurize to automatically refresh without creating new instances.

#112116

ehmm... :blink: Dreamz, the function is instance independent. it merely simulates a sendkeys command that you otherwise initiate by manually pressing the refresh keys (i.e. it presses the refresh keys at the designated intervals for you).

It doesn't create any new instances, in fact this script in itself has nothing to do with samurize, but rather sends windows the sendkey command, and it is windows that then sends the keys onto samurize.

The only other way to refresh images in the config is to use dynamic pngs:

New > Activescript > Type: PNG > Default Image: whichever image is supposed to reload automatically.

Hope this helps my friend!

#112212

oh yeah, i know it simulates sending keys. i was just wondering if there was an internal samurize command to do it, that's all.

is there a way to link the dynamic png with the temp images in the weather script? i.e. so the temp image 0 (today) will be a dynamic png. i haven't really taken a look into it yet, but i'll check as soon as i can.

#112249