Sign in to follow this  
Followers 0

Desktop Gadget

13 posts in this topic

Posted (edited)

I've made some programs for school and wanted to put them on the desktop like gadgets in Win7, for handy use. This is a sample gadget, with some controls on it.

In the zip file are two files: main script and an include file with the icon library. If you use your own icons, you don't need the second (don't forget to make changes in the main script, where the icons are stated!).

I hope it helps!

M.Iancu

EDIT: Added some improvements (replacements for buttons, status-bar, custom messagebox...)

EDIT: "Fixed" listview's scrollbar (replace it with a custom one)

SampleGadget.zip

Edited by taietel

Share this post


Link to post
Share on other sites



Posted

I've made some programs for school and wanted to put them on the desktop like gadgets in Win7, for handy use. This is a sample gadget, with some controls on it.

In the zip file are two files: main script and an include file with the icon library. If you use your own icons, you don't need the second (don't forget to make changes in the main script, where the icons are stated!).

I hope it helps!

M.Iancu

That is very cool. Nice work. I will have to take a closer look when I get home.

Share this post


Link to post
Share on other sites

Posted

Thanks Jfish! I'm not so good at commenting the code, but if something unclear, just ask.

M.I.

Share this post


Link to post
Share on other sites

Posted

Cool!

Great work man!

Share this post


Link to post
Share on other sites

Posted (edited)

Thank you Splash!

I've updated first post.

[edit]Screenshot:

Posted Image

and another msgbox with two buttons:

Posted Image

Edited by taietel

Share this post


Link to post
Share on other sites

Posted

Updated attachment in first post (Listview issue).

Share this post


Link to post
Share on other sites

Posted

Nice work! I made something to the effect of desktop gadgets, but it was a little over my head at the time I made it.

Share this post


Link to post
Share on other sites

Posted

Thanks dantay9! Modify it to suit your needs. I will try to make some kind of UDFs, but when I have a little more time. In the meantime, ask if something is unclear.

Share this post


Link to post
Share on other sites

Posted (edited)

An example of Photo Gadget (here: source, dll (icons resource) and the compiled version).

The idea come up when I've seen one from Vista/7. I wondered if it was possible (in Autoit) to show the control bar when over the picture so... 

[edit]Found some bugs, now fixed (I hope). In the zip file attached are PhotoGadget.au3 and the include _my_icons.au3.[/edit]

Of course, this can be improved!

Credit to Melba for sincronize/move the two windows together. I've modified the function to suit my needs (3 windows)

Suggestions/comments are welcome!

Screenshots, when mouse moved over the PhotoGadget (here, cursor-hand is not captured, just the tooltip):Posted Image

[edit]New screenshots (modified version):

Posted Image

M.I.

P.S. I didn't attached here because all the files mentioned above are a little over 1Mb (forum limit).

Edited by taietel

Share this post


Link to post
Share on other sites

Posted

Very nice indeed! I'll try have a play with this soon!

James

Share this post


Link to post
Share on other sites

Posted

Thank you James! Posted Image I'm at the noob stage and I still have a long way until I understand how to handle dll's, structures etc etc. as you do. 

Share this post


Link to post
Share on other sites

Posted (edited)

Found a bug in Photo Gadget   :P : while Photo gadget is open, open another window. When this window is maximized and move the mouse over the Photo gadget (that is behind), those control windows of Photo Gadget still show, even they were not supposed to, because they appear only when hover over the main GUI. I guess it needs a BitAnd(WinGetState($hGUI,""),2) checking.

To the drawing board ;) and get back.  :blink:

Edited by taietel

Share this post


Link to post
Share on other sites

Posted

Fixed. See post #9.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0