Jump to content

hoomantop

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by hoomantop

  1. thank you so much yes i need to click in miliseconds, but the problem is that it clicks 1 sec before the condition . my condition was at minute 51 and second 00, but it clicks at minute 50 and second 59. and yes the break was wrong but i tried to make an error to see the exact time it execute. i will try your code and tell the result . again i appreciate.
  2. by the way this was my code: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $gui = GUICreate("", 200, 90) $label1 = GUICtrlCreateLabel ("", 10, 10,100,100) $label2 = GUICtrlCreateLabel ("", 40, 10,100,100) $label3 = GUICtrlCreateLabel ("", 70, 10,100,100) $label4 = GUICtrlCreateLabel ("", 100, 10,100,100) Func click()              MouseClick("left",230,468,1,1) EndFunc GUISetState(@SW_SHOW) While 1     $hour = @hour     $min = @MIN     $sec = @SEC     $msec = @MSEC    if $hour=="10" And $min== "15" And $sec== "20" And  "995"<$msec<"999" Then          click()       Break     EndIf     $msg = GUIGetMsg()     Select         Case $msg = $GUI_EVENT_CLOSE             Exit     EndSelect     GUICtrlSetData($label1, $hour)     GUICtrlSetData($label2, $min)     GUICtrlSetData($label3, $sec)     GUICtrlSetData($label4, $msec)  WEnd
  3. thank you for your reply, but when i execute the code, nothing happens
  4. hi guys, i have made a code to click on a specific coordinates at a specific time, but it do it 1 second earlier. would you guys please help me figure it out? thanks in advance
×
×
  • Create New...