Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/24/2018 in all areas

  1. Version 2018.05.24

    2,925 downloads

    Dbug is graphical debugger for AutoIt. Project started by @Heron in 2009 and now supported by @asdf8 and @valdemar1977. Features Debug the complete script or just parts of it Display run status (line number of currently executed function) GUI default always-on-top in the upper right corner for comfortable debugging WM_NOTIFY and WM_COMMAND hook to prevent interference with possible message handlers Display scope, type and value of variables, expressions, macro's and constants (global AND function local) Execute commands in an immediate window. Can be expressions, functions and assignments Detailed display of array, struct and object variables Dynamic display of variable value in the source code (under cursor) Array table viewer with ability to view the sub-arrays, the correct handling of macro @Error, @Extended and other changes OEM and ANSI console output Conditional breakpoints Saving settings and debugging state and much more... How to use Extract from downloaded archive _Dbug.au3 to your Autoit include dir Add #include <_Dbug.au3> in to your code and run code Before compile or buid comment or remove #include <_Dbug.au3> from your code
    1 point
  2. It was commented out so you can run it and see how it works than plug it back in as needed to use it. Same for the MsgBox() that was more of a so you can learn how it works thing, not really meant to be part of the end script.
    1 point
  3. The phrase "start recording" came from your first post. This is causing a problem because it isn't valid Autoit syntax. The assumption is that you meant this to be a comment for that line. Therefore, you should add a semi-colon, like this -- ControlSend ( "OBS 21.1.0 (64bit, windows) - Profil: Unbenannt - Szenen: Unbenannt", "", "[CLASS:Qt5QWindowIcon; INSTANCE:1]", "+{f12}" ) ; start recording
    1 point
  4. @horphi It's not clear what you are trying to accomplish. Please state your goal so that we can better assist you. P.S. Please post your general support questions in this thread --
    1 point
  5. First do not use a large sleep for any time sensitive application. While sleep is active pretty much everything else is blocked. Timer is the normal way to handle this, but I like to use Adlibregister() I just threw this together as an example. Recording starts when script starts, default of 15 minutes, if you press F1 you can enter a new stop time (does not append so if you had 5 minutes left and wanted to add 15 minutes you would say 20 minutes) AdlibRegister("_StopRecord", 1000*60*15) HotKeySet("{F1}", "_ExtendTime") ;ControlSend ( "OBS 21.1.0 (64bit, windows) - Profil: Unbenannt - Szenen: Unbenannt", "", "[CLASS:Qt5QWindowIcon; INSTANCE:1]", "+{f12}" ) start recording MsgBox(0, "", "Start Recording") While 1 Sleep(10) WEnd Func _StopRecord() ;ControlSend ( "OBS 21.1.0 (64bit, windows) - Profil: Unbenannt - Szenen: Unbenannt", "", "[CLASS:Qt5QWindowIcon; INSTANCE:1]", "+{f11}" ) MsgBox(0, "", "Recording Ended") Exit EndFunc Func _ExtendTime() $iTime = InputBox("Extend Recording", "Number of Minutes Record", "15") AdlibRegister("_StopRecord", 1000*60*$iTime) EndFunc
    1 point
  6. @Earthshine Thanks a lot man. Have a good day Best Regards.
    1 point
  7. That's not true, I passed a NULL for pReserved whici should be NULL and for pdwNegotiatedVersion and phClientHandle I let AutoIt to create the variables. DllCall will return an array as follow: $aRet[0] = function return value $aRet[1] = dwClientVersion (first param) $aRet[2] = pReserved (second param) $aRet[3] = pdwNegotiatedVersion (third param) $aRet[4] = phClientHandle (fourth param)
    1 point
  8. Actually, it will return an array, but only if $lMultiple is True. If not, then it returns a single element id. Here's one way that you could try rewriting your code to use xpath -- $checkboxarray = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, ".x-tree-checkbox", "", True) _ArrayDisplay($checkboxarray)
    1 point
  9. When you run it with #requireAdmin, do the credentials you're supplying have access to that network folder?
    1 point
  10. Might depending on the DPI of the image. Alternatively you can use _GDIPlus_GraphicsDrawImageRect.
    1 point
  11. Small update available here Fix missed #Include <WinAPISysWin.au3>
    1 point
  12. I would suggest modifying your current script so that you could just hit a hotkey to extend the delay time. You would need to get rid of the Sleep command and replace it with a loop. Take a look at the help file examples for _Timer_SetTimer and _WinAPI_SetTimer.
    1 point
×
×
  • Create New...