AutoHotkey Community

It is currently May 27th, 2012, 8:36 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: April 16th, 2006, 9:58 pm 
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?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2006, 10:24 pm 
Offline

Joined: March 24th, 2005, 11:50 am
Posts: 398
Location: germany
here you can find a Diode
http://www.autohotkey.com/forum/viewtopic.php?t=8365


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2006, 11:15 pm 
Very nice but I still don't know how to use it :-( I need an example script.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2006, 11:34 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
You can fake something similar with a blank Text control with a colour.

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2006, 11:34 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
Why do you need a diode? Can you use a Progressbar with a Background color?

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 17th, 2006, 12:01 am 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 17th, 2006, 12:06 am 
Offline

Joined: March 24th, 2005, 11:50 am
Posts: 398
Location: germany
?? 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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 17th, 2006, 12:17 am 
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.?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 17th, 2006, 12:33 am 
Offline

Joined: March 24th, 2005, 11:50 am
Posts: 398
Location: germany
you could change the backround-color each second, RTM about it, good night
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 17th, 2006, 2:01 am 
Offline

Joined: March 21st, 2005, 6:37 pm
Posts: 117
Location: Bahia, Brasil
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)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 17th, 2006, 2:39 am 
Seems to be a good script, but it does not run.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 17th, 2006, 3:29 am 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 17th, 2006, 3:44 am 
Hmm, what about using an animated gif image?

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

__________________-
Cheers
AGU


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 17th, 2006, 9:50 am 
Offline

Joined: March 21st, 2005, 6:37 pm
Posts: 117
Location: Bahia, Brasil
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)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 17th, 2006, 11:32 am 
Offline

Joined: March 24th, 2005, 11:50 am
Posts: 398
Location: germany
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 April 17th, 2006, 12:13 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Exabot [Bot], sjc1000, specter333, Yahoo [Bot] and 64 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group