Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

Desktop Gadget


  • Please log in to reply
12 replies to this topic

#1 taietel

taietel

    I'm the third from the left...

  • Active Members
  • PipPipPipPipPipPip
  • 726 posts

Posted 23 July 2010 - 10:22 AM

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)

Attached Files


Edited by taietel, 26 July 2010 - 12:35 PM.








#2 Jfish

Jfish

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 391 posts

Posted 23 July 2010 - 11:47 AM

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.

#3 taietel

taietel

    I'm the third from the left...

  • Active Members
  • PipPipPipPipPipPip
  • 726 posts

Posted 23 July 2010 - 12:57 PM

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

M.I.

#4 Splash

Splash

    Wayfarer

  • Active Members
  • Pip
  • 76 posts

Posted 24 July 2010 - 01:55 AM

Cool!
Great work man!

#5 taietel

taietel

    I'm the third from the left...

  • Active Members
  • PipPipPipPipPipPip
  • 726 posts

Posted 25 July 2010 - 10:48 PM

Thank you Splash!

I've updated first post.

[edit]Screenshot:


Posted Image
and another msgbox with two buttons:

Posted Image

Edited by taietel, 26 July 2010 - 12:58 AM.


#6 taietel

taietel

    I'm the third from the left...

  • Active Members
  • PipPipPipPipPipPip
  • 726 posts

Posted 26 July 2010 - 12:37 PM

Updated attachment in first post (Listview issue).

#7 dantay9

dantay9

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 834 posts

Posted 26 July 2010 - 02:03 PM

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.
"Failure is not an option -- it comes packaged with Windows" Gecko Web Browser, Yahtzee!, Toolbar Launcher (like RocketDock)Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI Triangle Solver, TCP File Transfer, Valuater's Autoit WrappersOOP In AutoItUsing Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com

#8 taietel

taietel

    I'm the third from the left...

  • Active Members
  • PipPipPipPipPipPip
  • 726 posts

Posted 26 July 2010 - 02:12 PM

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.

#9 taietel

taietel

    I'm the third from the left...

  • Active Members
  • PipPipPipPipPipPip
  • 726 posts

Posted 28 July 2010 - 02:04 PM

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, 30 July 2010 - 11:26 PM.


#10 James

James

    Universalist

  • MVPs
  • 10,365 posts

Posted 28 July 2010 - 03:57 PM

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

James

#11 taietel

taietel

    I'm the third from the left...

  • Active Members
  • PipPipPipPipPipPip
  • 726 posts

Posted 28 July 2010 - 04:36 PM

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. 

#12 taietel

taietel

    I'm the third from the left...

  • Active Members
  • PipPipPipPipPipPip
  • 726 posts

Posted 29 July 2010 - 09:48 AM

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, 30 July 2010 - 11:50 PM.


#13 taietel

taietel

    I'm the third from the left...

  • Active Members
  • PipPipPipPipPipPip
  • 726 posts

Posted 30 July 2010 - 11:51 PM

Fixed. See post #9.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users