Molto semplice (per voi), ma non per me.
Ho questa gui:
Io vorrei inserire un timer che conti alla rovescia da un valore dato da me ($sleepTime).
Mi serve per mostrare quanto il bot resta fermo ogni volta, e quindi dire tra quanto riprenderà.
Ad esempio:
Qualcuno saprebbe aiutarmi?
Ho questa gui:
Codice:
#include <ButtonConstants.au3>#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Ciao Bot v0.2 [BETA]", 590, 215, 1298, 3, -1, $WS_EX_TOPMOST)
$Edit1 = GUICtrlCreateEdit("", 8, 8, 297, 200)
GUICtrlSetData(-1, "Edit1")
$Group1 = GUICtrlCreateGroup("Variabili", 328, 8, 249, 200)
$Label1 = GUICtrlCreateLabel("firstX:", 344, 32, 30, 17)
$Label2 = GUICtrlCreateLabel("firstY:", 344, 56, 30, 17)
$Label3 = GUICtrlCreateLabel("secondX:", 344, 80, 49, 17)
$Label4 = GUICtrlCreateLabel("secondY:", 344, 104, 49, 17)
$Label5 = GUICtrlCreateLabel("counter:", 344, 128, 43, 17)
$Label6 = GUICtrlCreateLabel("fX:", 472, 32, 17, 17)
$Label7 = GUICtrlCreateLabel("fY:", 472, 56, 17, 17)
$Label8 = GUICtrlCreateLabel("sX:", 472, 80, 19, 17)
$Label9 = GUICtrlCreateLabel("sY :", 472, 104, 22, 17)
$Label10 = GUICtrlCreateLabel("Quality:", 472, 128, 39, 17)
$Label11 = GUICtrlCreateLabel("0", 384, 32, 42, 17)
$Label12 = GUICtrlCreateLabel("0", 384, 56, 42, 17)
$Label13 = GUICtrlCreateLabel("0", 400, 80, 42, 17)
$Label14 = GUICtrlCreateLabel("0", 400, 104, 42, 17)
$Label15 = GUICtrlCreateLabel("0", 392, 128, 42, 17)
$Label16 = GUICtrlCreateLabel("0", 496, 32, 42, 17)
$Label17 = GUICtrlCreateLabel("0", 496, 56, 42, 17)
$Label18 = GUICtrlCreateLabel("0", 496, 80, 42, 17)
$Label19 = GUICtrlCreateLabel("0", 496, 104, 42, 17)
$Label20 = GUICtrlCreateLabel("n/d", 520, 128, 42, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Io vorrei inserire un timer che conti alla rovescia da un valore dato da me ($sleepTime).
Mi serve per mostrare quanto il bot resta fermo ogni volta, e quindi dire tra quanto riprenderà.
Ad esempio:
Codice:
$sleepTime = Random(30000,150000,1) ; Tempo di attesa generato casualmente
sleep($sleepTime)
Qualcuno saprebbe aiutarmi?