avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday April 13, 2024, 2:15 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - dbarton [ switch to compact view ]

Pages: prev1 [2] 3next
Finished Programs / Re: Warning that I'm on Battery power
« on: October 19, 2009, 03:00 PM »

Ideally I'd like to be able to resize the screen size just a bit.
Sometime just one line high is enough to just see the status.

Maybe right click for a selection of sizes? (command line parameter would be ok)
Can it (maybe by command line switch switch) default to top right?
Can we change poll rate?

Do you offer ahk source?

Still, very usable as is, so very much appreciated.

Finished Programs / DONE: Warning that I'm on Battery power
« on: October 19, 2009, 01:57 AM »

I was doing a presentation on Sat, and I guess my power cord wasn't plugged in all the way, so I was on battery power. Died halfway thru the presentation in front of 1000 people, and went in hiberation. Bad!!

I use the laptop for audio so they don't see the screen.

I want a small flashing box on my screen every time I'm on battery power so this never happens again.
Anyone seen such a tiny program?

It's very close what I'm looking for, but seems to run strangely very slow on my system.. There seem to be about a 3 second pause between (simple) actions.
I wonder if it's some kind of compatibility issue?


I basically want to replace Superkey, so I'd like to be able to

hit a key -say ALT B,
then it ask what key to be the playback key later
then it records all my keystrokes until I hit Alt E

That's it.
No need to record mouse.

Anything free out there?

Post New Requests Here / Re: simple timer
« on: September 21, 2008, 12:16 PM »

Not sure, but the timers I have seen always set up where you have you enter the time you want *each* time you use it.
For people that take medication 2 hrs after eating every day, it's nice to have a timer that has the time value preset.

This is a preset timer, so you just hit the icon, and it counts.

Post New Requests Here / Re: simple timer
« on: September 20, 2008, 07:10 PM »
Sorry I deleted my message because I found the answer.
It does accept variables, but the variable wasn't making it into the function.
It seems you need to declare that variable in the function as global.

So in my case it was just adding:

countdown(p_count="") {
global uY    <----------------------- this line
   countdown_date+=%countdown_time%, s
   Loop {
      If (countdown_date >= 16010101010000){
        FormatTime, mmss, %countdown_date%, hh:mm:ss
      FormatTime, mmss, %countdown_date%, mm:ss
      ;msgbox %countdown_date%`n%hhmmss%
     ;//SB_SetText(mmss, 2)
      Tooltip, %mmss%, 2, uY
      Menu,Tray,Tip,dTIMEmini remaining: %mmss%
;   Tooltip, %uY%, 1, 1, 2
;MsgBox The value in the variable named uY is %uY%.
      Sleep, 1000
      countdown_date+=-1, s
      ;//IfLess, countdown_date, 16010101, break
      if (A_Index>countdown_time) {
Tooltip, DONE, 2,uY

Post New Requests Here / Re: simple timer
« on: September 20, 2008, 06:11 PM »

Post New Requests Here / Re: simple timer
« on: September 13, 2008, 11:21 AM »
That sounds good. Thanks.

Post New Requests Here / Re: simple timer
« on: September 13, 2008, 03:28 AM »
I guess my next question is:

Is there a way to cancel the timer once running?
Seems like there's no X so no place for a mouse to do the cancelling.
Can't grab a key, as best I can tell..
Maybe I could mouseover the timer to get a cancel button?
Not really sure how to handle that..

Here's what i have, using your code:

#SingleInstance force
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
CoordMode, ToolTip, Screen
tt = %1%
;tt = 120
time := Convert_Milliseconds(tt)
Sec := (tt * 60)

SetTimer, nMessage, %time%

SetTimer, nMessage, Off

SoundGet, volumeBackup
SoundGet, master_mute, , mute
if master_mute = on
SoundSet, +1, , mute
SoundSet, +100  ;Set it to the highest volume

Gui, +MinimizeBox
GUi, -sysmenu
gui, +toolwindow
Gui, Add, Button, w130, DONE- hit 'O' for OK
Gui, Show, x1 y1, dTIME 1.1

   SoundBeep, 500, 100
   Sleep 100
   SoundBeep, 1500, 100
   Sleep 100
   SoundBeep, 1500, 100
   Sleep 100
   SoundBeep, 1500, 100
   Sleep 100
   SoundBeep, 1500, 100
   Sleep 100
   SoundBeep, 1500, 100
   Sleep 100
   SoundBeep, 1500, 100

If master_mute = on ; Restore the volume
SoundSet, +1, , mute
soundset, %volumeBackup%

KeyWait, o, D
Tooltip ,, 2, 980
Gui Destroy

Convert_MilliSeconds(time,MS = 1000,M = 60)
   return MS*M*time

countdown(p_count="") {
   countdown_date+=%countdown_time%, s
   Loop {
      If (countdown_date >= 16010101010000){
        FormatTime, mmss, %countdown_date%, hh:mm:ss
      FormatTime, mmss, %countdown_date%, mm:ss
      ;msgbox %countdown_date%`n%hhmmss%
     ;//SB_SetText(mmss, 2)
      Tooltip, %mmss%, 2,980
      Sleep, 1000
      countdown_date+=-1, s
      ;//IfLess, countdown_date, 16010101, break
      if (A_Index>countdown_time) {

Post New Requests Here / Re: simple timer
« on: September 13, 2008, 01:32 AM »
I like that countdown you have!
Which line ha sthe coordinates? I'd like lower left...

This is what I was doing:

Gui, Add, Button, w135 Default Vcounter END, STARTED: %timer% mins
Gui, Show, x1 y1,
SetTimer, COUNTDOWN, 60000   ; 60,000 for one minute steps

GuiControl,, counter, TIME LEFT: %timer% min
If timer=0
  Goto, END

Post New Requests Here / Re: simple timer
« on: September 12, 2008, 09:17 PM »
Much appreciated.

I never thought of using AHK, but it seems to have worked out.. Got a version running by patches a few peoples code togther. Thanks!

Post New Requests Here / Re: simple timer
« on: September 12, 2008, 06:35 PM »
Im on my way out of work now. I will try to post clearer instructions a little later tonight.

I rewrote it in simpler terms to try and break it down for me, and this way make sense to me so far...
Still, I don't see how I can add a min by min countdown...

;win 2
SplashTextOn, 250, 20,, preset for 120 mins
sleep, 1000

SetTimer, Message, 7200000

SetTimer, Message, Off
MsgBox ,64 ,dTIMER, 120 minutes is up!

Post New Requests Here / Re: simple timer
« on: September 12, 2008, 05:58 PM »
This AHK scriot looks good, but doesn't quite work 100% for me.  The time calcs may be off.. I feel silly, but I'm having a bit of trouble understanding some of it.
Any chance of breaking it down?

Any way to add a countdown by minute?
Looks like settime function may not allow that.


Post New Requests Here / simple timer
« on: September 12, 2008, 02:39 PM »

I'm looking for a timer that starts with a variable that says how long to time for..

In other words.. I could have a link to it saying MYTIMER.EXE 120, and it would time for 120 mins then make a noise.
I might have another icon set up for 'MYTIMER 60' to time for one hour.

All the timers I have found requires you to start them up, then set the time you desire.

The application is to take medication 120 mins after I eat.

Post New Requests Here / IDEA: new type of boot manager
« on: May 11, 2008, 04:22 AM »
I have two hardware profiles on my machine. One boots with the regular services. The other boots with a very minimal set of hardware and services.
When I boot the minimal set I also chose a different USER profile that is very minimal as well.

I'd love for the machine to see which *hardware* profile was loaded and load the matching *USER* profile.

Coding Snacks / Re: Window Tags
« on: April 14, 2008, 02:33 AM »
:) I don't remember either, but here's KeySwitch - Use hotkeys to switch windows!

Wow, you are good!

Found Deals and Discounts / Re: PowerDesk Pro v6 very very cheap.
« on: April 01, 2008, 03:20 AM »

Directory Opus is better IMO.

I used PDP for years and years and just jumped ship...
Maybe v7 is better?

Now that's cool!

I kinda learned AHK overnight, and banged something together that works, so now I'm torn, but this is very cool. I'll use mine on one machine and yours on the other :)

I called mine BootBoy.

very cool!!!

and is there an easy change for default to be "no"?
not as easy as changing ..

If timer=0

to say

If timer=0

kinda, but countdown indicator is now wrong, and the code is a bit confusing to this AHK newbie.

Developer's Corner / Re: super simple language?
« on: March 22, 2008, 06:43 PM »

It does help.

So far Autohotkeys seems to have an pretty good set of source code that I've found to be able to very quickly get up to speed so quickly. Nice to bang out a few tiny utils overnight.

Do you know of any Perl sites that are as easy to get me up to speed super fast?

Developer's Corner / Re: super simple language?
« on: March 22, 2008, 04:06 PM »

I got pretty far with Autohotkeys overnight and wrote a few small utiliities.
Now you tell me about Autoit. :)

Can you tell me why it's better? Not sure what you mean by cleaner...


I just had a look at startup delayer, and doesn''t seem like it's meant for this, but I appreciate the tip..

Post New Requests Here / Re: Rerun StartUp Folder
« on: March 21, 2008, 08:00 PM »

The link for rerun on your page is wrong - no link to the rerun AHK source.. It links to diff source code.

Developer's Corner / super simple language?
« on: March 21, 2008, 07:48 PM »

I write tons of batch files to do small chores on my pc.. some of these ask me for input, or send me a message.
These work just fine, but the text boxes just look too old fashioned to have anyone else use these.

Is there basically a very simple language thats not much more than just a a version of batch files, that uses proper windows boxes to send messages and get input?

Autohotkeys kinda does some of this, but...

Post New Requests Here / IDEA? simple startup manager with timer
« on: March 21, 2008, 07:27 PM »
Basically I want to boot up, and have a window to ask if I want to run my IM cleint and a couple of other things that normally load.

If I don't answer in a few seconds, they will load by default.  If I say No, it will complete without these loaded..

{EDIT:} mods, did I post this in the wrong area?

Pages: prev1 [2] 3next