 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Ron Guest
|
Posted: Sun Apr 16, 2006 8:58 pm Post subject: Green blinking diode displayd in the GUI- need some help |
|
|
| 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
|
|
| Back to top |
|
 |
Ron Guest
|
Posted: Sun Apr 16, 2006 10:15 pm Post subject: |
|
|
Very nice but I still don't know how to use it I need an example script. |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5382 Location: /b/
|
Posted: Sun Apr 16, 2006 10:34 pm Post subject: |
|
|
You can fake something similar with a blank Text control with a colour. _________________
 |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3841 Location: Bremen, Germany
|
Posted: Sun Apr 16, 2006 10:34 pm Post subject: |
|
|
Why do you need a diode? Can you use a Progressbar with a Background color? _________________ Ciao
toralf  |
|
| Back to top |
|
 |
Ron Guest
|
Posted: Sun Apr 16, 2006 11:01 pm Post subject: |
|
|
| 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
|
Posted: Sun Apr 16, 2006 11:06 pm Post subject: |
|
|
?? 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 |
|
 |
Ron Guest
|
Posted: Sun Apr 16, 2006 11:17 pm Post subject: |
|
|
| 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
|
Posted: Sun Apr 16, 2006 11:33 pm Post subject: |
|
|
you could change the backround-color each second, RTM about it, good night
 |
|
| Back to top |
|
 |
enrica
Joined: 21 Mar 2005 Posts: 117 Location: Bahia, Brasil
|
Posted: Mon Apr 17, 2006 1:01 am Post subject: |
|
|
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 |
|
 |
Ron Guest
|
Posted: Mon Apr 17, 2006 1:39 am Post subject: |
|
|
| Seems to be a good script, but it does not run. |
|
| Back to top |
|
 |
Ron Guest
|
Posted: Mon Apr 17, 2006 2:29 am Post subject: |
|
|
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
|
Posted: Mon Apr 17, 2006 2:44 am Post subject: |
|
|
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
|
Posted: Mon Apr 17, 2006 8:50 am Post subject: |
|
|
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 |
|
 |
garath
Joined: 24 Mar 2005 Posts: 372 Location: germany
|
Posted: Mon Apr 17, 2006 10:32 am Post subject: |
|
|
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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|