Jump to content

mati

Members
  • Posts

    4
  • Joined

  • Last visited

mati's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Melba23, Because of the length of the function I outsourced it to a separate file (in the same folder) and included it at script start with #include <Functions.au3>. This file/function is then called when running main.au3 code - maybe this is the cause? The same applies to the 'for' loop. mati
  2. Hi, I wonder if AutoIt3Wrapper_run_debug_mode = Y can include run information about functions which are called within the main code. So far I noticed in the console that the function itself is called but no specific run information from inside the function is provided. Is there a chance to show the entire debug log including functions in the console? I furthermore noticed a stop of information when a loop is entered. What could be the reason for that? Thanks for help.
  3. Hi FrancescoDiMuro, Sorry for the code thing - rookie mistake. What I try to do: I have two processes I control with AutoIt. Process 1 is variable in time, directly followed by process 2 which is consistent in duration. After starting the script, I never know, when the entire script will be finished. So I thought, it would be helpful to implement a function between the two processes, which starts a countdown (or shows an expected finishing time). However, if I use a msgbox or GUI, I have to destroy the box to continue the script (process 2). Is there a possibility to 'inactivate' a GUI window (message box) so that the scrip can continue but the countdown/expected finishing time is still displayed on the screen? Thanks a lot for help, mati
  4. Hi, I wish to create a GUI that shows a countdown but stays in the background as infobox while other tasks continue. So far I have with use of other snippets from the forum created a countdown but the GUI seems block the script from continuing. How can I 'deactivate' the GUI but keep the countdown running? The GUI box should close at the end of the main script (or after countdown end). Thanks for help, mati #include <GUIConstants.au3> #include <Date.au3> $sNewDate = _DateAdd('n', 1, _NowCalc()) $ms = 61000 ;(1 min) $timer = TimerInit() $labeltext1 = "This run will be finished in" $labeltext2 = "minutes at: " & _DateTimeFormat($sNewDate, 3) ; $GUI = GUICreate("Next start", 170, 170, 150,150, $WS_DLGFRAME, $WS_EX_TOPMOST) $Install = GUICtrlCreateButton ("Ok", 50, 95, 50, 50, $BS_DEFPUSHBUTTON) $Label1 = GUICtrlCreateLabel($labeltext1, 10, 10, 330, 200) $Label2 = GUICtrlCreateLabel($labeltext2, 25, 80, 330, 200) $Input = GUICtrlCreateInput("", 50, 40, 35, 20, BitOR($SS_CENTER, $ES_READONLY)) $aWin = WinGetPos($GUI) GUISetState(@SW_SHOWNOACTIVATE) While (TimerDiff($timer) < $ms) and (GUIGetMsg() <> $Install) ; $seconds = TimerDiff($timer) / 1000 $diff = $seconds - ($ms / 1000) ; $minutes = Int($diff / 60) $secondsRem = $diff - ($minutes * 60) ; $minutes = $minutes * -1 $secondsRem = $secondsRem * -1 $time = StringFormat("%02d", $minutes) & ":" & StringFormat("%02d", $secondsRem) ; GUICtrlSetData($Input, $time) ; WEnd ; just for test purpose WinActivate("AutoIt Help (v3.3.14.2)") WinWaitActive("AutoIt Help (v3.3.14.2)") WinClose("AutoIt Help (v3.3.14.2)")
×
×
  • Create New...