Jump to content

Action At Speciall Time?


Recommended Posts

Is there any way to do for example "MouseClick("left")" at a certain time?

kind of like this :

MouseClick("left") (15:00, 16:00, 17:00, 18:00)

hmm hope you guys get it?

the clock is in Swedish time.

thankful for help, and yes my english is bad...

Link to comment
Share on other sites

this will work

AdlibEnable("MouseAtTime")
Func MouseAtTime()
    If @MIN = '00' Then MouseClick("right")
    Sleep(60000)
EndFunc
    
While 1
    Sleep(100)
WEnd

My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop.
Link to comment
Share on other sites

Hi,

try this

#include <Date.au3>

While 1
    If @HOUR = 23 And @MIN = 36 And @SEC = 0 Then MsgBox(0, "", _Now())
    Sleep(100)
WEnd

So long,

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

ok RazerM

more like this

MouseClick("left") (15:00, 16:20, 19:45, 21:33)

and there is a prosseces running in the background so it cant just sleep

th.meger

Then it does the action @ 23:36 ??

Hi,

yes should work. :)

You can test is easily.

So long,

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

thanks th.meger..

worked great..

but can i tell it to just to actions on a full hour like 14:00 or 19:00

Yes, why not.

#include <Date.au3>

While 1
    If @HOUR = 14 Or  @HOUR =19 Then MsgBox(0, "", _Now())
    Sleep(100)
WEnd

So long,

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

Hi,

or just a little more:

; format HOUR:MIN:SEC
$times = StringSplit("23:58:00,23:59:00,00:01:00,00:01:10", ",")

While 1
    For $i = 0 To UBound($times) -1
        If (@HOUR & ":" & @MIN & ":" & @SEC) = $times[$i] Then
            MsgBox(64, "Bing bing bing", "Works :-) " & $times[$i])
        EndIf
    Next
    Sleep(100)
WEnd

Edit: Do not have to include the Date.au3 anymore. Without calling _Now()

So long,

Mega

Edited by th.meger

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

Just a small little question?

is it possible to have 2 if,endif ?

like this?

If

blablabla If blbalba endif

endif

autoit mix them up i think is there a solution?

Edited by lasse46
Link to comment
Share on other sites

Just a small little question?

is it possible to have 2 if,endif ?

like this?

If

blablabla If blbalba endif

endif

autoit mix them up i think is there a solution?

If blablabla Then
   If albalbalb Then
    ; Your code here
   EndIf
EndIf

edit: formatting the code sucks if not in the code brackets!

Edited by SerialKiller
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...