Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/07/2022 in all areas

  1. Here a way to perform a MsgBox with no flicker and a count down : #include <Constants.au3> Global $iTimer Example(10) Func Example($iTime) Local $sCommand = ' /AutoIt3ExecuteLine "ConsoleWrite(MsgBox(' & $MB_OKCANCEL & ', ''Count Down'', ''Execution will start in ' & $iTime & ' secs'', ' & $iTime & '))"' Local $iPID = Run(@AutoItExe & $sCommand, "", @SW_SHOW, $STDERR_MERGED) $iTimer = $iTime AdlibRegister(CountDown, 1000) While ProcessExists($iPID) Sleep(50) WEnd AdlibUnRegister(CountDown) Local $iResp = StdoutRead($iPID) Switch $iResp Case $IDTIMEOUT ConsoleWrite("Time Out" & @CRLF) Case $IDOK ConsoleWrite("OK" & @CRLF) Case $IDCANCEL ConsoleWrite("Cancel" & @CRLF) EndSwitch EndFunc Func CountDown() $iTimer -= 1 ControlSetText("Count Down", "", "Static1", "Execution will start in " & $iTimer & " secs") EndFunc
    1 point
  2. jandings, Glad you like the UDF. The GUIScrollbars_Size_Example_2.au3 script which you find in the UDF zip file shows how to adjust the scrollbars to cope with changing values of the y-axis. See if you can amend it to match your requirements - if not please do come back with a reproducer script and we can try and find a solution. M23
    1 point
  3. MirJi, Welcome to the AutoIt forums. This aim of this forum is to get your code running correctly - not to produce basic code for you. Think of the old saying: "Give a man a fish, you feed him for a day; give a man a net and you feed him forever". We try to be net makers and repairers, not fishmongers. So have a try yourself at coding something. Reading the Help file (at least the first few sections - Using AutoIt, Tutorials and the first couple of References) will help you enormously. You should also look at this excellent tutorial and download the really useful book you can find at When you run into problems, you know where we are. M23
    1 point
  4. I'm so sorry that I didn't read about your CLI requirement. I did kind of get it to work on a command line. Try this: #include <AutoItConstants.au3> $sKeys="ync" Local $iReturn = RunWait( 'CHOICE /C ' & $sKeys , "" , @SW_SHOW , $RUN_CREATE_NEW_CONSOLE ) ConsoleWrite ( $iReturn ) The last arg for RunWait seems to do the trick. Otherwise it'll appear to hang.
    1 point
  5. This appears to be a Java / Jacob issue rather than an AutoitX issue. I suggest that you research the correct way to load the Jacob jar.
    1 point
  6. Declare only one variable per line. Also use line continuation: Local $var1 = "something ..." & _ "... continued" & _ "end." Local $var2 = "something else ..." & _ "... end."AutoiIt input lines have a limit of 4096 characters.
    1 point
×
×
  • Create New...