couple of questions about icons and shortcuts - Windows Mobile Development and Hacking General

Just wondering:
Is there a folder in WM5 that contains all system icons?
How do you associate an icon with a shortcut? I see 2 numbers and a # before shortcuts with icons. What/where do those numbers refer to?
pocket plus has a bunch of icons clumped together in png files. Can i get to those withough going through pocket plus?
Thanks

On .lnk structure and folder icons:
http://forum.xda-developers.com/viewtopic.php?t=40230&highlight=icons+completeness
V

If you can't be bothered to decifer the contents of a shortcut then you can always get the icon handle this way (assuming you know the path), just find a pre existing shortcut to what you want and get its icon. For example if you do not want to calculate an offset to calendar but you know where an existing lnk to calendar is, then just get the icon for the lnk and that will be the same icon.
//------------------------------------------------------------------
HICON someProgram::GetFileIconHandle(CString FileName, BOOL bSmallIcon)
{
SHFILEINFO sfi;
if (bSmallIcon)
{
SHGetFileInfo(
(LPCTSTR)FileName,
FILE_ATTRIBUTE_NORMAL,
&sfi,
sizeof(SHFILEINFO),
SHGFI_ICON | SHGFI_SMALLICON | SHGFI_USEFILEATTRIBUTES);
}
else
{
SHGetFileInfo(
(LPCTSTR)FileName,
FILE_ATTRIBUTE_NORMAL,
&sfi,
sizeof(SHFILEINFO),
SHGFI_ICON | SHGFI_LARGEICON | SHGFI_USEFILEATTRIBUTES);
}
return sfi.hIcon;
}
//-----------------------------------------------------------------

Related

How do you make SPB icons

I am using VJDialer (Thanks vijay555) with cLaunch and i want to make some icons so i can use Pocket Plus to launch the dialer nd get rid of cLaunch.
cLaunch allows you to create icons from pictures. How do i go about making the same for SPB. For instance the pic i have below
Cheers
There are 66 different icons in Pocket Plus. To change icon tap and hold it and select Change Icon from pop-up menu. You can also add you own icon to the list. Find "custom16.png" and "custom32.png" in "\Program Files\PocketPlus\Icons" folder on your device. Copy these files to your desktop. Now you can edit these files with any image editor. To add new icon you should create two similar icons of size 16x16 and 32x32 pixels. Add 16x16 icon to the end of the "custom16.png", and add 32x32 icon to the end of the "custom32.png". Make sure that after editing "custom16.png" has height 16 pixels and its width can be divided to 16. Check the same with the "custom32.png" image - its height should be 32 pixels and width can be divided to 32. Copy these files back to "\Program Files\PocketPlus\Icons" folder on your device and perform a soft reset. Now your icon is added to the list and you can use it.
Xilicon, that's a very nice tip there. The built-in icons are OK when using them for apps etc. but when using them with VJDialer and VJSMS you would need different icons for different ppl. There's no point putting a laptop icon for a shortcut that calls my wife!
I'll try this image editing thing tip now ...
kta - I hope the icon is meant to be a phone, not a laptop! I ripped it from XP!
Check this thread for some discussion on how to create the icons:
http://www.modaco.com/Today_Screen_Hacks-t227321.html
and for WAD etc
http://www.ppcsg.com/index.php?showtopic=58236
Basically, to get a cute picture of the wife etc, load a nice photo of her up into an art program, eg paint shop pro.
"Crop" the image as closely as possible to her face: this is going to be reduced to 32x32, so make it recognisable.
"Reduce" the image to 32x32.
Now I would reduce the colour to 256, but that's up to you.
In claunch, you can load the bmps directly; you can make icons using an icon editor, eg Microangelo. On the version I've got, basically, just start a 32x32 XP Colour icon, copy and paste directly from your art prog into Microangelo, and then if you want to, reduce the colours.
Save the .ico and use at will.
Again, for my own nausea, I decided to make a dll full of icons to keep all my images in one file. This can be done with microangelo librarian or Visual Studio if you're really hard core.
For Pocket Plus, just use the png format instead of bmp or ico.
BTW new versions of VJSMS etc coming in the next day or so
V
vijay555 said:
kta - I hope the icon is meant to be a phone, not a laptop! I ripped it from XP!
Click to expand...
Click to collapse
I meant the default icons of SPB Pocket Plus not your telephone icon ;-) So what's new in your VJSMS?
OK I've tried the SPB Pocket Plus trick but it seems that it's only allowing 1 extra icon (totalling 67). Anyone managed to create more than just one extra icon?
EDIT: You need to close SPB Pocket Plus and reload before the icons appear in the list!
VJSMS is the same, just a new brother and sister and minor improvements!
V

View "Icons" folder settings

Anyone come up with a way to open a folder with fexplore.exe and see just the icons of what's in there? In other words, is the list view the only view available with fexplore?

[FEWidgets] User Made Widgets thread!

IMPORTANT: This Widgets are not compatible with FEWidgets Lite and Ultimate version.
As I've been seeing more activity on "user made widgets" for FEWidgets on the app thread, I thought I would create this thread on which we could manage all new widgets created by other developers/users.
I'll keep a list here and update it as often as I can , if you made a widget please create a post on this thread with the following:
- Zip file containing the new widget (if it's an Auto Installable Package please say so)
- Screenshot of the new widget.
- Explain what it does briefly.
- If it's not an AIP widget zip file, please include deplyment instructions.
I'll check this thread often, but if you see I missed your widget please PM me and I'll update it.
All Ideas or questions regarding widget creation should be posted on this thread, and bugs or questions regarding the app itself on the other one.
Documentation for creating an Auto Installable Package zip file can be found on the widget Creation Manual Here.
On this post you have an example of an AIP package and a small guide to create your own on 5 steps. Thanks nir36!
INSTALLATION:
Widgets marked with AIP are Auto Installable Packages.
- Place them on FEWidgets\install
- Go to Configuration -> Install New Widgets
- Restart the Application (or the today plugin)
Widget zip files not marked with AIP, must be installed manually and it will be explained on the creators Post.
Custom Widgets
Unread SMS Count AIP (by nir36) post.
Missed Calls AIP (by nir36) post.
Date Widget AIP (by nir36) post.
Battery Meter AIP (by pcforce) post
LG Menu Widget AIP (by pcforce) post
Tiny Browser AIP (by pcforce) post
Small Calculator AIP (by pcforce) post
Small Operator AIP (by pcforce) post
I was wondering if action script for Flash Lite is supported for widgets (or would it work if system have Flash Lite installed).
pcforce said:
I was wondering if action script for Flash Lite is supported for widgets (or would it work if system have Flash Lite installed).
Click to expand...
Click to collapse
flash lite actionscript is supported, becuase flash 7 for Pocket PC supports AS 2.0.
FEWidgets won't work with Flash Lite, it needs flash Player 7 because flash lite does not provide an ActiveX control. (I believe there is a way to create a player on a specific window invoking FL_CreatePlayer from flashlite.dll, but it's not documented.. at least not for free)
Widget AIP (Auto Install Package) Manual
The following zip contains 4 flash files and 1 XML file which are the example of how to make an installation package for FEWidgets.
The code in the XML was written by nicolas in the Widget Creation document.
all you have to do is download the example, replace the files in the zip with your files and change the zip file's name to have an installation package.
changes required are as follows:
1. change zip name to whatever you want..
2. switch both NAMEico files with your files while NAME is the widget's name
3. switch both NAME files with your files while NAME is the widget's name
4. edit the xml file and change the values inside according to what is written in the right fields.
5. copy the zip file to /program files/FEWidgets/install and in the config app choose to install new widgets.
PLEASE! if you post a reply with a widget and want to add more widgets DO edit your post and add them there. this way we can keep 1 post per user with all his widgets and keep this thread as clean and organized as possible for nicolas to read.
here are the first 3:
Unread SMS Count and Missed Calls Count with 2 icons and a Clean Date Widget.
-Clicking the icon in the SMS widget will load poutlook messaing
-Clicking the icon in the Missed Calls widget will load iContact in Missed calls
-The date widget is nicolas' date widget changed to be white with no background
Preview
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
These are AIP
Updated [28/11/08]
- cleaned garbage from widgets
- changed SMS and MC to sleeker looks and embedded numbers
enjoy.
nir36 said:
I will be editing this post with new widgets...
here are the first 3:
Unread SMS Count and Missed Calls Count with 2 icons and a Clean Date Widget.
SMS Count Icon click points to Messaging
Missed Calls Count Icon click points to Missed Calls in iContact
The date widget is nicolas' date widget changed to be white with no background.
These are AIP
there might be some garbage inside them but i don't have the time to change them right now.
enjoy.
Click to expand...
Click to collapse
Updated first post with all 3 widgets =D (when you have some time could you place a screenshot on the post with the three widgets? I believe I've seen one already )
Thanks! (I've also added a link to the AIP template you made )
hehe. i must also mention that the basis of the action script for all widgets was made by nicolas... i only edited and added things... and will change more.
I have to go to sleep.. long day tomorrow, but i'll post screen shots tomorrow.
goodnight
Widgets
Here is my post for widgets.
1) Battery Meter ver1.4 AIP package; its a 5 stage animated meter; screenshots: onsidebar.jpg onscreen.jpg
2) LGMenu widget ver1.0 AIP package; ported version of LG Today Plugin and LGMenu for FEWidgets, fits best on 240x screen with no bottom bar and Opera browser installed; screenshots: LGM_sidebar.jpg LGM_onscreen.jpg
3) Tiny Browser ver1.0 AIP package; this widget is based on Touchwiz's browser shortcut gadget however this one is configurable - you can actually make it run just any .exe from \Windows\ directory; you can change launched application/browser at FEWidgets\custom\Tiny Browser\config.xml; by default its set to launch Opera; screenshots: Tiny_Browser_onscreen.jpg
All packages install sources aswell (custom\).
pcforce said:
Here is my post for widgets.
1) Battery Meter ver1.4 AIP package; its a 5 stage animated meter; screenshots: onsidebar.jpg onscreen.jpg
2) LGMenu widget ver1.0 AIP package; ported version of LG Today Plugin and LGMenu for FEWidgets, fits best on 240x screen with no bottom bar and Opera browser installed; screenshots: LGM_sidebar.jpg LGM_onscreen.jpg
Click to expand...
Click to collapse
Updated first post, thanks
btw, there should probably be an option to uninstall a widget
nir36 said:
btw, there should probably be an option to uninstall a widget
Click to expand...
Click to collapse
There is an option... on the configuration section when you select a custom widget the uninstall option on the menu should be enabled.
There is also an installer section for uninstall special commands I think (dont remember right now).
You should restart the application when the widget is uninstalled.
It seems like we wont be able to use just one post to put all widgets/screenshots - its just limited to 8 files
BTW new widget posted (Tiny Browser)
I'm having problems with widgets which call dynamically other swf files. It works just fine on pc, icon shows on sidebar and widget can be dropped on screen but it just dont appear, like its nothing there and FEWidget dont freeze or crash. Here is sample code:
Code:
_root._quality = "high";
_level0.FEWidgetsAPI.SetClickAndDrag(_root._name, _root.drag, Empty, true, false);
_root.loadMovie("w1.swf");
stop();
and there are just two layers where second one ("Drag") containing movieclip with alpha=0
pcforce said:
I'm having problems with widgets which call dynamically other swf files. It works just fine on pc, icon shows on sidebar and widget can be dropped on screen but it just dont appear, like its nothing there and FEWidget dont freeze or crash. Here is sample code:
Code:
_root._quality = "high";
_level0.FEWidgetsAPI.SetClickAndDrag(_root._name, _root.drag, Empty, true, false);
_root.loadMovie("w1.swf");
stop();
and there are just two layers where second one ("Drag") containing movieclip with alpha=0
Click to expand...
Click to collapse
When you have this kind of problems I suggest you look at the FLA files on the sources. You have to use the full application path and appenf file:// at the start:
Code:
_level0.FEWidgetsAPI.SetClickAndDrag(_root._name, _root.drag, null, true, false);
_root.loadMovie("file://" + _level0.BasePath + "[B]swf_folder[/B]\w1.swf");
stop();
Where swf_folder is a folder below the app folder. You can check pb.FLA fpr a working example.
You should also not set quality on your widgets as it affects the whole movie.
nicolas, besides the problem with the inability to disable the Application Shortcut and Weather widgets there is also a problem with uninstalling installed widgets.
when i try to uninstall it tells me that it's "Unable to uninstall Widget"... or something of that sort.
Thanks, "file:" thing work but i can't make it dragable. Tried several ways but nothing changed. Looks like i'm doing something wrong. Here is code i end up with (there is only one layer called "main" and nothing on it):
Code:
_root.createEmptyMovieClip("content",0);
_level0.FEWidgetsAPI.SetClickAndDrag(_root._name, _root.content, Empty, true, false);
_root.content.loadMovie("file:\\Program Files\\FEWidgets\\widgets\\w1.swf");
stop();
w1.swf is still an external animated movie with its own actionscript
I need help.. this is driving me nuts.
When i embed the numerals for the Missed Calls/SMS Count widgets it makes them disappear. only when i use device fonts it works.
i have no idea why...
it looks REALLY bad when it uses device fonts instead of embedded ones.
pcforce said:
Thanks, "file:" thing work but i can't make it dragable. Tried several ways but nothing changed. Looks like i'm doing something wrong. Here is code i end up with (there is only one layer called "main" and nothing on it):
Code:
_root.createEmptyMovieClip("content",0);
_level0.FEWidgetsAPI.SetClickAndDrag(_root._name, _root.content, Empty, true, false);
_root.content.loadMovie("file:\\Program Files\\FEWidgets\\widgets\\w1.swf");
stop();
w1.swf is still an external animated movie with its own actionscript
Click to expand...
Click to collapse
As dragging involves assigning events you might want to create another MovieClip and use it as a hitzone. Try using null instead of Empty too.
nir36 said:
I need help.. this is driving me nuts.
When i embed the numerals for the Missed Calls/SMS Count widgets it makes them disappear. only when i use device fonts it works.
i have no idea why...
it looks REALLY bad when it uses device fonts instead of embedded ones.
Click to expand...
Click to collapse
Try increasing the size of the text area.. perhaps that's what is bothering you. (it happened to me once )
I'll check the uninstall procedure on a future... oh an btw b5 had some bugs, I recommend a fall back to b4.
Managed to get drag working but whatever i do all my layers always remain bellow spawned w1.swf. The only reason it drag is because the movie spawns only particially on layers surface (despite that whole movie is visible).
Drag didnt work with MovieClip and SetClickAndDrag function. I went for following code that i found on your manual:
Code:
on(press)
{
_level0.WBeginDrag(_root._name, this);
}
on(release, releaseOutside)
{
_level0.WEndDrag(_root._name, this);
}
Its better now but still need to be found a way to get a layer over the movie and to center this movie
EDIT: movieclip is now centered, now only hitzone button/layer need to be brought at the top
nicodega said:
As dragging involves assigning events you might want to create another MovieClip and use it as a hitzone. Try using null instead of Empty too.
Try increasing the size of the text area.. perhaps that's what is bothering you. (it happened to me once )
I'll check the uninstall procedure on a future... oh an btw b5 had some bugs, I recommend a fall back to b4.
Click to expand...
Click to collapse
lol, i made it 6 times the size it was and it still doesn't work.
it just won't show the number.
I embedded chars on other widgets and this is the only one it doesn't work on.
edit: WORKS! the god damn widget was set for flash player 10 instead of 7 for some reason. those are the exact problems which make your want to kill yourself.
cheers
btw nicolas, i updated all 3 widgets, please update the first post.
another question: as you can see on my screenshot there is some kind of nettish background to the widgets. is there a way in which i can delete that?

Remove line number from taskbar

If you have a SIM card that allows two line numbers, you will always see the line number icon on your taskbar (See figure).
This icon was bothering me, and I didn't find a tweak to remove it. So I came up with the following simple solution:
- The icons are stored on 4 files inside "Windows" folder: Line1.bmp ; Line1M.bmp ; Line2.bmp ; Line2M.bmp. I simply changed these files to 1x1 pixel transparent images, and goodbye icon!
I made a cab so you can easily uninstall;
Also provided the 4 bmps if you like to use it somehow (for example if you use a personalised taskbar, you can change the files inside the cab).
Let me know of any bugs.

Quicklink icons aren't the same as in the startmenu

I just installed the official ROM for Topaz which brings us Sense 2.5. Now, I have changed all my icons on the whole phone to new ones but when I add one as quicklink in Sense it just shows the default one.
What can I do about this?
ArtieQ, you can find the icon path for the quick links in File Explorer->Application Data->HTC->ProgramLauncher. Those override the icons in the start menu. That would be one place to start. You could try deleting the default icon there and the icon you are using in your start menu should work. Be sure to backup/copy the default before deleting it.
The icons that don't show up is not in the ProgLauncher folder, why's that? Can't seem to fix this..
The way I've done it in the past is to delete the icon in programlauncher. HTC presets those icons to appear in quicklinks for the programs listed in that folder. All other programs use the icon in the startmenu. If you install new icons, they will not go into the programlauncher folder. So, if you see the icon you installed in the startmenu try deleting the associated default icon in programlauncher. For example, I wanted to use the google maps icon in the startmenu instead of the default one used by HTC in quicklinks. So I deleted the googlemaps icon in programlauncher and it then defaulted to the one in my startmenu.

Categories

Resources