AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Green blinking diode displayd in the GUI- need some help
Goto page 1, 2  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Ron
Guest





PostPosted: Sun Apr 16, 2006 8:58 pm    Post subject: Green blinking diode displayd in the GUI- need some help Reply with quote

Hi, I would like to have a small green blinking diode displayd in the GUI. Does anyone has a script show this kind of function?
Back to top
garath



Joined: 24 Mar 2005
Posts: 372
Location: germany

PostPosted: Sun Apr 16, 2006 9:24 pm    Post subject: Reply with quote

here you can find a Diode
http://www.autohotkey.com/forum/viewtopic.php?t=8365
Back to top
View user's profile Send private message
Ron
Guest





PostPosted: Sun Apr 16, 2006 10:15 pm    Post subject: Reply with quote

Very nice but I still don't know how to use it Sad I need an example script.
Back to top
Titan



Joined: 11 Aug 2004
Posts: 5382
Location: /b/

PostPosted: Sun Apr 16, 2006 10:34 pm    Post subject: Reply with quote

You can fake something similar with a blank Text control with a colour.
_________________

Back to top
View user's profile Send private message Visit poster's website
toralf



Joined: 31 Jan 2005
Posts: 3841
Location: Bremen, Germany

PostPosted: Sun Apr 16, 2006 10:34 pm    Post subject: Reply with quote

Why do you need a diode? Can you use a Progressbar with a Background color?
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Ron
Guest





PostPosted: Sun Apr 16, 2006 11:01 pm    Post subject: Reply with quote

A blinking diode is looking nice in the gui when its shows. If a progressbar will move on any click on a button, it will be also ok, but I still don't know how to do something like that.
Back to top
garath



Joined: 24 Mar 2005
Posts: 372
Location: germany

PostPosted: Sun Apr 16, 2006 11:06 pm    Post subject: Reply with quote

?? You can use his example script
TestCtrlSupport.ahk

scroll down to the part
; --------------- Create a LED Static -----------------------------------
; -----------------------------------------------------------------------
and copy it to your script, that should work.

P.S. You still would need his DLL
A Version without DLL was mentioned by Titan and Toralf
Back to top
View user's profile Send private message
Ron
Guest





PostPosted: Sun Apr 16, 2006 11:17 pm    Post subject: Reply with quote

A Version without DLL will be maybe more easy to me. Has anyone something to fake a diode, maybe changing the color every few sec.?
Back to top
garath



Joined: 24 Mar 2005
Posts: 372
Location: germany

PostPosted: Sun Apr 16, 2006 11:33 pm    Post subject: Reply with quote

you could change the backround-color each second, RTM about it, good night
Back to top
View user's profile Send private message
enrica



Joined: 21 Mar 2005
Posts: 117
Location: Bahia, Brasil

PostPosted: Mon Apr 17, 2006 1:01 am    Post subject: Reply with quote

This is primitive but work...
Code:
Loop,
{
SplashImage,C:\icons\RoundiconSmall.ico, b x600 y300 fm5 wm10
Sleep, 999
SplashImage,C:\icons\RoundiconBig.ico, b x600 y300 fm5 wm10
Sleep, 999
Splashimage, Off
}

_________________
65.6E.72.69.63.61. (My hovercraft is full of eels)
Back to top
View user's profile Send private message
Ron
Guest





PostPosted: Mon Apr 17, 2006 1:39 am    Post subject: Reply with quote

Seems to be a good script, but it does not run.
Back to top
Ron
Guest





PostPosted: Mon Apr 17, 2006 2:29 am    Post subject: Reply with quote

What I'm doing, it shows icons but no gui, or if changing the LOOP position it show only the gui but no icon.


Code:
; Generated using SmartGUI Creator 3.5.1

Gui, Add, Picture, x156 y80 w540 h190, C:\ron.jpg
Gui, Add, DateTime, x386 y420 w90 h20,       
Gui, Add, Button, x526 y420 w200 h30, email_me
 
Loop,
{
SplashImage,C:\icon.ico, b x500 y380 fm5 wm10
Sleep, 800
SplashImage,C:\icon2.ico, b x500 y380 fm5 wm10
Sleep, 800
}

Gui, Show, x15 y21 h300 w500, TEST
Return

ButtonE-mail_me:
Run, mailto:xxxxxxxxx@gmail.com?subject=mail for me
Return

GuiClose:
ExitApp
Back to top
AGU
Guest





PostPosted: Mon Apr 17, 2006 2:44 am    Post subject: Reply with quote

Hmm, what about using an animated gif image?

Code:
Gui, Add, Picture, , C:\BlinkingDiode.gif

__________________-
Cheers
AGU
Back to top
enrica



Joined: 21 Mar 2005
Posts: 117
Location: Bahia, Brasil

PostPosted: Mon Apr 17, 2006 8:50 am    Post subject: Reply with quote

Try this:
Code:
SetTimer, GreenLed, 800

Gui, Add, Picture, x156 y80 w540 h190, C:\ron.jpg
Gui, Add, DateTime, x386 y420 w90 h20,
Gui, Add, Button, x526 y420 w200 h30, email_me
Gui, Show, x15 y21 h300 w500, TEST
Return

GreenLed:
SplashImage,C:\icon.ico, b x500 y380 fm5 wm10
Sleep, 800
SplashImage,C:\icon2.ico, b x500 y380 fm5 wm10
Sleep, 800
Splashimage, Off
Return

ButtonE-mail_me:
Run, mailto:xxxxxxxxx@gmail.com?subject=mail for me
Return

GuiClose:
ExitApp

_________________
65.6E.72.69.63.61. (My hovercraft is full of eels)
Back to top
View user's profile Send private message
garath



Joined: 24 Mar 2005
Posts: 372
Location: germany

PostPosted: Mon Apr 17, 2006 10:32 am    Post subject: Reply with quote

Try this text_blinker

Code:
Settimer, blinker, 500
gui, font, s20, Wingdings  ; Set 20-point Wingdings. It has a circle, looks like an LED
Gui, Add, Text, cRED vLED1, l
Gui, Show,h60 w100, TEST_LED
Return

blinker:
if flag = 0
   {
   Gui, Font, s20 cRed Bold, Wingdings  ; If desired, use a line like this to set a new default font for the window.
   GuiControl, Font, LED1  ; Put the above font into effect for a control.
   flag = 1
   }
else
   {
   flag = 0
   Gui, Font, s20 cblue Bold, Wingdings  ; If desired, use a line like this to set a new default font for the window.
   GuiControl, Font, LED1  ; Put the above font into effect for a control.
   }
return


Last edited by garath on Mon Apr 17, 2006 11:13 am; edited 1 time in total
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group