Sign in to follow this  
Followers 0
ConsultingJoe

My Widget Program

Autoit Widgets   12 members have voted

  1. 1. Would you find this useful

    • Yes
      6
    • Maybe
      3
    • No
      3

Please sign in or register to vote in this poll.

13 posts in this topic

#1 ·  Posted (edited)

HOW TO USE: put your mouse in the bottom right corner to get the widgets, do this again to hide them. toggle F2 to move them.

Sorry I only have one. I just have to add some sample widgets. use this and make your own.

Posted Image

Features:

  • Drag and Drop
  • Mouse to the corner to activate
  • Transparent
  • Easy add/remove (Not yet)
Widgets:
  • Text message
  • Email message
  • CPU usage
  • HD strorage
Check this again tonight around 8PM Central

widget.zip

Edited by zerocool60544

[center]AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic![/center][center][font=Arial Black]Check out ConsultingJoe.com[/font][/center][center]My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed[/center]

Share this post


Link to post
Share on other sites



let me know what you think of the operation of it?

Thanks


[center]AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic![/center][center][font=Arial Black]Check out ConsultingJoe.com[/font][/center][center]My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed[/center]

Share this post


Link to post
Share on other sites

I like the concept. To prevent flicker, check to see whether the cpu has changed before updating the progress

Also, i think 200 is a better transparency, you should make it changeable.

#include <GUIConstants.au3>
#include "DragControls.au3"

Local $gui, $menu_Config, $overlay, $label
Local $Usage, $Usage1
$on = False
$drag = False
$gui = 0
$emailsend = 0
Local $oldCpu = -1
While 1
    If $on Then
        $cpu = MemGetStats()
        If $cpu[0] <> $oldCpu Then
            GUICtrlSetData($Usage, $cpu[0])
            $oldCpu = $cpu[0]
        EndIf
        $msg = GUIGetMsg(1)
        Select
            Case $msg[0] = $overlay And $drag = True
                _InitDrag ($gui, $overlay)
            Case $drag = True
                _DragItem ($gui, $overlay, True)
        EndSelect
    EndIf
    $pos = MouseGetPos()
    If $pos[0] + 5 > @DesktopWidth And $pos[1] + 5 > @DesktopHeight Then
        Gui()
        Sleep(300)
    EndIf
    ;Sleep(50)
WEnd

Func Move()
    If $drag = True Then
        $drag = False
        GUICtrlSetData($label, "Arrange is OFF, Press F2 to toggle")
    Else
        $drag = True
        GUICtrlSetData($label, "Arrange is ON, Press F2 to toggle")
    EndIf
    ConsoleWrite("Drag = " & $drag & @CRLF)
EndFunc   ;==>Move

Func Gui()
    If $on = False Then
        $on = True
        HotKeySet("{F2}", "Move")
        $gui = GUICreate("BG", @DesktopWidth + 5, @DesktopHeight + 5)
        GUISetBkColor(0x111111)
        ;GUISetFont(10, 800, 0, "MS Sans Serif")
        $overlay = _CreateDragControls ()
        $label = GUICtrlCreateLabel("Arrange is OFF, Press F2 to toggle", 8, 8, 182, 24)
        GUICtrlSetColor(-1, 0xFF0000)
        $Usage = GUICtrlCreateProgress(112, 104, 389, 10, 0)
        $Usage1 = GUICtrlCreateLabel("CPU USAGE", 112, 72, 91, 20)
        GUICtrlSetFont(-1, 12)
        GUICtrlSetColor(-1, 0xFF0000)
        WinSetOnTop("BG", "", 1)
        WinSetTrans("BG", "", 200)
        GUISetState()
    Else
        $on = False
        $drag = False
        HotKeySet("{F2}")
        GUIDelete($gui)
    EndIf
    ConsoleWrite("On = " & $on & @CRLF)
EndFunc   ;==>Gui

Func CPU()
    
EndFunc   ;==>CPU

My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop.

Share this post


Link to post
Share on other sites

let me know what you think of the operation of it?

Thanks

Nice, but two things, I think you should add a hotkey to bring up the screen and also add more widgets! But anyways, nice program


My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites

Nice, but two things, I think you should add a hotkey to bring up the screen and also add more widgets! But anyways, nice program

Thanks. i could add that but I wanted it to be like the Mac widgets. how you get to thiers.

[center]AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic![/center][center][font=Arial Black]Check out ConsultingJoe.com[/font][/center][center]My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed[/center]

Share this post


Link to post
Share on other sites

I am completely confused by how it works. If you tell how to operate this, I will probably be abled to but right now this really really confuses me. Can't this just be a standard toolbar?

Share this post


Link to post
Share on other sites

I am completely confused by how it works. If you tell how to operate this, I will probably be abled to but right now this really really confuses me. Can't this just be a standard toolbar?

As to how you bring up the screen, put your mouse at the very bottom right pixel (or at least really close to that)... besides that I think it's pretty simple and cool!


My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites

i think u should make it like mac where u have to press f12 to show it ;)

Share this post


Link to post
Share on other sites

As to how you bring up the screen, put your mouse at the very bottom right pixel (or at least really close to that)... besides that I think it's pretty simple and cool!

I know, but how do I close it not using the Ctrl+Alt+Del keys?

Share this post


Link to post
Share on other sites

I know, but how do I close it not using the Ctrl+Alt+Del keys?

The only way I have been able to close is it to hover your mouse over the bottom right and then when the screen turns normal - slide you mouse to the autoit icon and right click and close.

Unless I am mistaken on this - I do not see the CPU (usage?) and I am not sure what the F2 does.


All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Share this post


Link to post
Share on other sites

cpu usage is the bar

Share this post


Link to post
Share on other sites

cpu usage is the bar

I see that in the example pic - but on my computer the script starts, my screen turns dark and then I see two things in the upper left corner (F2 and CPU) but I do not see the bar that is in pic. THEN my screen turns light and then dark again - it continues until I close the script - I can do nothing (mouse clicks...) when the screen is dark (anything darker than the default screen brightness)

All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

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