|
 |
|
11-19-2007, 02:18 AM
|
#31
|
|
Wants to make it harder
Join Date: May 2007
Location: Lakehood, CO
Posts: 1,414
|
I've been looking at this a little more, and I was able to dock the Font Window of notepad into RR. But still trying to get RR to read what it says inside that window. I've found some windows classes, but some of the boxes don't have names, so I don't know how we could get the info from that box.
Here's a screenshot of what I've got going:
The red highlighted box is the item in the list in winspector spy.
Edit:
maybe someone can take the info from this thread...
http://www.dreamincode.net/forums/showtopic23512.htm
...and create a simple program that might work for what we need... (Or maybe guino can implement something in the code that allows the label command "FONTNAME" to show the Name of the font, and then some way we could get this information to write to a file in a similar way that the background chooser works.)
I'm not good with programming, otherwise I could have made some kind of code for this by now.
Last edited by monkeyracer; 11-19-2007 at 03:11 AM.
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
11-19-2007, 03:06 PM
|
#32
|
|
Constant Bitrate
Join Date: Jan 2007
Location: dundee, il
Posts: 198
|
Quote: Originally Posted by monkeyracer 
I've been looking at this a little more, and I was able to dock the Font Window of notepad into RR. But still trying to get RR to read what it says inside that window. I've found some windows classes, but some of the boxes don't have names, so I don't know how we could get the info from that box.
Here's a screenshot of what I've got going:
The red highlighted box is the item in the list in winspector spy.
Edit:
maybe someone can take the info from this thread...
http://www.dreamincode.net/forums/showtopic23512.htm
...and create a simple program that might work for what we need... (Or maybe guino can implement something in the code that allows the label command "FONTNAME" to show the Name of the font, and then some way we could get this information to write to a file in a similar way that the background chooser works.)
I'm not good with programming, otherwise I could have made some kind of code for this by now.
looking at the pic, it looks like winspector is picking up the font's name from the list in the text field, i wonder if there is a way we can import the info similar to how you can use it as the window title to embed an app? also, if that can be done, i could have a test button, and a save button, just like the color chooser, so if the selected font doesn't look right you can see it without making any changes.
david
|
|
|
11-19-2007, 06:22 PM
|
#33
|
|
Constant Bitrate
Join Date: Jan 2007
Location: dundee, il
Posts: 198
|
finally starting to make a bit of progress with the font changer, im making the regular font style screen like this:
teaching myself autoit3 in order to do it, but what it does is it uses the font list, and saves the selected font name to a txt file, which the skin will read from (i hope, lol). if it works it would be the perfect (almost) solution for font changing from inside the skin
david
|
|
|
11-19-2007, 07:05 PM
|
#34
|
|
FLAC
Join Date: Jul 2005
Location: upland california us
Posts: 1,012
|
seems that you miss what i uploaded for you, in the registry is all the information about the fonts installed, and, check back in page#2 theres a script that will open every single font for you, unless you want to try this one. works in a skin with a custom list, just run it and you will see all the fonts in the list. to get the font name you can use "CLTEXT" take a look at the list.
Last edited by EL CAMINO; 11-22-2007 at 12:36 AM.
|
|
|
11-19-2007, 07:42 PM
|
#35
|
|
Constant Bitrate
Join Date: Jan 2007
Location: dundee, il
Posts: 198
|
Quote: Originally Posted by EL CAMINO 
seems that you miss what i uploaded for you, in the registry is all the information about the fonts installed, and, check back in page#2 theres a script that will open every single font for you, unless you want to try this one. works in a skin with a custom list, just run it and you will see all the fonts in the list. to get the font name you can use "CLTEXT" take a look at the list.
i didn't miss it, i tried it, but couldn't figure out how to make it do what i wanted properly. plus, this was a bit of an excuse for me to try and learn autoit, i think the program that resulted might work great, im working on embedding it now.
i will definitely take a look at the las script you uplaoded as well, thanks for all the help
david
|
|
|
11-19-2007, 10:02 PM
|
#36
|
|
Constant Bitrate
Join Date: Jan 2007
Location: dundee, il
Posts: 198
|
ok, finally gave up on my code, it just ended up being to sloppy, so i tried el camino's code, it works great for showing the list, so i tried using the setvarbycode command to write a settings.skin file, my only problem left now is that the write to file command for some reason puts a space after the font name, but before the quote (ex: /DEFINE Font "Script ")
, so it won't read into the label properly. it is probably something stupid that i am just overlooking/missing.
here is the skin code:
Code:
L,11,550,113,56,#FRed#,#FGreen#,#FBlue#,24,#Font#,"=MENU","CENTER"
B,294,201,178,126,"SETVARBYCODE;LISTTEXT;LISTTEXT||WRITETOFILE;$skinpath$settings.skin;=/DEFINE Font "$LISTTEXT$"||RELOADSKIN||Load;Funt.skin",
L,296,107,179,84,247,9,9,24,"#Font#","CLTEXT","LEFT"
any ideas of what is happening or how to fix it? this is the last issue to sort out before the skin has on the fly font changing
david
|
|
|
11-20-2007, 12:09 AM
|
#37
|
|
Wants to make it harder
Join Date: May 2007
Location: Lakehood, CO
Posts: 1,414
|
is the skin named funt.skin or is that a typo? if so, that may be something affecting it...
you made sure that you have the INC line in there too right?
It looks good as far as i can tell.
|
|
|
11-20-2007, 12:13 AM
|
#38
|
|
Constant Bitrate
Join Date: Jan 2007
Location: dundee, il
Posts: 198
|
Quote: Originally Posted by monkeyracer 
is the skin named funt.skin or is that a typo? if so, that may be something affecting it...
you made sure that you have the INC line in there too right?
It looks good as far as i can tell.
yea, its called funt, the font color screen is called font, so i just changed a letter, lol.
INC line is pointing at the right file as well, it all works perfectly if i go into the setting.skin file in notepad and delete the space before the last quote mark. i just dont understand why the space gets put there in the first place.
david
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
11-20-2007, 01:45 AM
|
#39
|
|
FLAC
Join Date: Jul 2005
Location: upland california us
Posts: 1,012
|
that space is coming from the script, replace line 20 with this one, and the space will be gone for good.
Code:
$rr.execute("CLADD;"&StringTrimRight($Font[1], 1)&";"&StringTrimRight($Font[1], 1))
Last edited by EL CAMINO; 11-20-2007 at 01:49 AM.
|
|
|
11-20-2007, 05:55 PM
|
#40
|
|
Constant Bitrate
Join Date: Jan 2007
Location: dundee, il
Posts: 198
|
Quote: Originally Posted by EL CAMINO 
that space is coming from the script, replace line 20 with this one, and the space will be gone for good.
Code:
$rr.execute("CLADD;"&StringTrimRight($Font[1], 1)&";"&StringTrimRight($Font[1], 1))
and you sir, are my hero, works perfectly  now i just need to go through the skin and change the labelcode. you happen to know how to do a similar script for the font sizes as well? if not, no biggy. thank you very much.
david
|
|
|
11-20-2007, 07:52 PM
|
#41
|
|
Constant Bitrate
Join Date: Jan 2007
Location: dundee, il
Posts: 198
|
just got the skin updated, all the labels (other than the audio controls), and the lists can now be changed on the fly thanks to el camino's script and help  . here's a screenshot of how it looks:
link in second post updated for the new version.
david
|
|
|
11-20-2007, 09:23 PM
|
#42
|
|
Raw Wave
Join Date: Sep 2006
Location: War-Town, GA.
Posts: 1,915
|
How do you get to this new feature from within the skin?
|
|
|
11-20-2007, 09:26 PM
|
#43
|
|
Constant Bitrate
Join Date: Jan 2007
Location: dundee, il
Posts: 198
|
Quote: Originally Posted by treetop777 
How do you get to this new feature from within the skin?
sorry about that, its a click and hold on the font color button. it should load the font list, but if you change the font, you will need to reload the list (using the load list button) this screen isn't 100% done, but its close.
david
|
|
|
11-21-2007, 08:20 PM
|
#44
|
|
Raw Wave
Join Date: Sep 2006
Location: War-Town, GA.
Posts: 1,915
|
Some feedback..
The font changing works perfect. It would be even better to get a preview of the actual font highlighted as opposed to the font that's currently being used by the skin. Also (and this may be 'cause the screen is not 100% done) i couldn't find a way to scroll down to see more fonts.
In the audio browser, the "play sel" does nothing.
The skin is great, thanks for sharing.
|
|
|
11-22-2007, 12:47 AM
|
#45
|
|
FLAC
Join Date: Jul 2005
Location: upland california us
Posts: 1,012
|
for the font size, you can try "EVAL" see the "skin commands.txt" this can be done the way you guys do the color change, but in this case just do a percentage equation, the 100 % is the font size you have at starting, then input how bigger or smaller you want the fonts to be adjusted. is just an idea to start.
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:04 AM.
| |