Sign in to follow this  
Followers 0
Maxvan1

ARG... Why isnt this working?

3 posts in this topic

I am trying to do something VERY basic, but I cannot get it working and I don't know why.

AdlibEnable('_StartUpdate', 20000);Check time every 20 seconds..

While 1

Sleep(0x7FFFFFFF);A very long sleep time (No (relative) cpu usage)

WEnd

Func _StartUpdate()

;Time to check 6:00 PM

Local $nHourIWant = 22

Local $nMinuteIWant = 13

If Int(@Hour) = $nHourIWant And Int(@MIN) = $nMinuteIWant Then

MouseClick("left", 26, 970, 1)

EndIf

Do

Sleep(10000)

Until Int(@Min) > $nMinuteIWant;Wait until the minute changes so we don't keep repeating the ftp call

AdlibEnable('_StartUpdate', 20000);Re-initiate Adlib so it can keep checking for another 24 hours

return 1

EndFuncB

endfunc

___________________________________________

Basicly all I want this to do it click the bottom right of my screen at a certain time. I don't know why it isn't working. I had it working perfect then I tried to change it up a bit and now I have myself all confused. I think it has to do with the last two lines. I think that the EndFuncB messed up the function to check the time.

Can anyone give me a quick answer why this is not working?

Share this post


Link to post
Share on other sites



oh wait a second... I think I just answered my own question... That is supposed to say end func 1 isn't it? I had the script inserting a B early (when I said it was working perfect) and must have put a B where the 1 was. Sorry for pointless post, delete at will.

Nice scrip to start something at a certain time (not written by me, googemyster wrote it.)

Share this post


Link to post
Share on other sites

I am trying to do something VERY basic, but I cannot get it working and I don't know why.

AdlibEnable('_StartUpdate', 20000);Check time every 20 seconds..

While 1

Sleep(0x7FFFFFFF);A very long sleep time (No (relative) cpu usage)

WEnd

Func _StartUpdate()

;Time to check 6:00 PM

Local $nHourIWant = 22

Local $nMinuteIWant = 13

If Int(@Hour) = $nHourIWant And Int(@MIN) = $nMinuteIWant Then

MouseClick("left", 26, 970, 1)

EndIf

Do

Sleep(10000)

Until Int(@Min) > $nMinuteIWant;Wait until the minute changes so we don't keep repeating the ftp call

AdlibEnable('_StartUpdate', 20000);Re-initiate Adlib so it can keep checking for another 24 hours

return 1

EndFuncB

endfunc

___________________________________________

Basicly all I want this to do it click the bottom right of my screen at a certain time. I don't know why it isn't working. I had it working perfect then I tried to change it up a bit and now I have myself all confused. I think it has to do with the last two lines. I think that the EndFuncB messed up the function to check the time.

Can anyone give me a quick answer why this is not working?

This should work fine, not tested.

AdlibEnable('_StartUpdate', 20000);Check time every 20 seconds..

While 1
    Sleep(0x7FFFFFFF);A very long sleep time (No (relative) cpu usage)
WEnd

Func _StartUpdate()
    ;Time to check 6:00 PM
        Local $nHourIWant = 22  
        Local $nMinuteIWant = 13
    If Int(@Hour) = $nHourIWant And Int(@MIN) = $nMinuteIWant Then
        MouseClick("left", 26, 970, 1)
     EndIf
Do
    Sleep(10000)
Until Int(@Min) > $nMinuteIWant;Wait until the minute changes so we don't keep repeating the ftp call
EndFunc

I think you only need to Enable Adibe once, also what is the return 1 for?

Share this post


Link to post
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
Sign in to follow this  
Followers 0