Sign in to follow this  
Followers 0

Desktop Gadget

13 posts in this topic

#1 ·  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



#2 ·  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.


Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt

Share this post


Link to post
Share on other sites

#7 ·  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.


[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
Share on other sites

#9 ·  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

#12 ·  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

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