Jump to content

Leaderboard

Popular Content

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

  1. 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
  2. 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
  3. @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
  4. 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
  5. @Earthshine Thanks a lot man. Have a good day Best Regards.
    1 point
  6. 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
  7. 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
  8. When you run it with #requireAdmin, do the credentials you're supplying have access to that network folder?
    1 point
  9. Might depending on the DPI of the image. Alternatively you can use _GDIPlus_GraphicsDrawImageRect.
    1 point
  10. Small update available here Fix missed #Include <WinAPISysWin.au3>
    1 point
  11. 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...