Jump to content

How do I make a count down in notepad


 Share

Recommended Posts

Hi! I am trying to make an autoit script that will count down from 30 minutes to 0 (accurately as possible) in Notepad!

It would be awesome if it made a sound like an alarm clock when it hits 0, but it doesn't have to....

Link to comment
Share on other sites

Hi! I am trying to make an autoit script that will count down from 30 minutes to 0 (accurately as possible) in Notepad!

It would be awesome if it made a sound like an alarm clock when it hits 0, but it doesn't have to....

Lets see some code you have tried and you will more than likely get more help.

Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end.

Link to comment
Share on other sites

Nice quad post you did. Don't do it again. Protip for those who have internet issues: Don't keep re-submitting, first use a different tab to CHECK if your post went through the first time. If this wasn't due to an internet issue... then please learn how forums work.

Link to comment
Share on other sites

i did something similar 2 dayes ago

<-- click me

youl get the idea how to do it yourself if you understand that 15 lines in script.

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Link to comment
Share on other sites

If you are just trying to open notepad and have AutoIt type in the countdown to 30 mins, then look at the notepad example that comes with AutoIt and look at sleep () in the help file.

Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end.

Link to comment
Share on other sites

like just text in notepad was what I was shooting for

ControlSend example in the help file have text in notepad example

and after you connect it with

#Include <Date.au3>
Dim $h, $m, $s
$Data = _TimeToTicks(0,30,0)
$curtime = TimerInit()
;_TicksToTime($Data-(Int(TimerDiff($curtime)/1000)), $h, $m, $s)
While 1
    _TicksToTime($Data-Int(TimerDiff($curtime)), $h, $m, $s)
    ToolTip($h&':'&$m&':'&$s)
WEnd

the fun can start

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...