I want to call a specific function every 2 minutes. I also have a GUI element running.
These two thing require me to have two "While" loop running at the same time.
I come up with the following solution that is working but I would like to know if it's the optimal one.
$timestamp = TimerInit() ;start timer
While 1
$msg = GuiGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
Exit
Case Else
EndSelect
;Run function every two minutes
If TimerDiff($timestamp) > 120000 Then
myfunc()
;Reset timer
$timestamp = TimerInit()
Endif
WEnd
Hi there,
I was wondering if a C++ library similar to the IE.au3 in Autoit exist.
I am looking for a library to navigate between web pages like the IE.au3 does.
Cheers,
I found this: http://www.autoitscript.com/forum/index.php?showtopic=100457&st=0&p=718522&hl=picture%20file%20pixel%20color&fromsearch=1&#entry718522
I will try it out!
Hi there,
Let say I have a picture file named "image.gif" wich is 50x50 px in a folder.
How could I retrieve the color of each of these pixels and store them in an array?
Thanks!
Hi,
I have a folder containing over 500 files. I would like to convert each of these filename to become lowercase.
What would be the more efficient way to do it?
Thanks!
Would this work?
$URL = "http://www.google.com"
If NOT(_INetGetSource($URL) = "") Then
MsgBox(0,"","Your website is Online")
Else
MsgBox(0,"","Your website is Offline")
EndIf
Is there any function out there to retrieve the HTTP Status code of a webpage?
I want to check every ten minutes or so if my website is still online.
I thought of using Ping but this function doesnt seems to return lot of infos...
Thanks!
I have just written this function. It works well! Thanks!
;Select 6 random numbers
Local $NumberArray[26] = [1, 2, 3, 4, 5, 6, 7, 8 , 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26]
Local $ResultArray[6]
For $x = 0 to 5
$i = Random(1,UBound($NumberArray) - 1, 1)
_ArrayPush($ResultArray, $NumberArray[$i])
_ArrayDelete($NumberArray, $NumberArray[$i])
Next
_ArrayDisplay($ResultArray)
Hey guys,
I am looking for an Autoit function that would do the same thing as the PHP function array_random (http://php.net/manual/en/function.array-rand.php)
I want to pick one or more random entries out of an array without repetition so it should not pick the same entry twice.
Wich autoit function should I use?
I could do this thing in multiple step but I was wondering if there is already one short functionj out there that would help me do that.
Thanks!
Hey guys, I am facing a new problem. I would like Autoit to find several solutions to the Average equation below: I choose "Average" and "N". I want Autoit to find the possible values for a,b,c,d,e,f,g,h,i,j. N= a+b+c+d+e+f+g+h+i+j Values of N,Average, a,b,c,d,e,f,g,h,i,j are > 0 and Integer. Anyone mind helping me? Thanks alot guys!
Hey guys, I would like to know how can I convert a date string to a numeric format Initial Format: Fri 21, May 2010 (Mon,Tue,Wed,Thu,Fri,Sat,Sun) Final Format: 2010-05-21 (YYYY-MM-DD) Im sure its quite simple, using string functions but I dont know where to begin... Thanks!