Jump to content

Recommended Posts

Posted

Hi all script gurus out there.
Here is a person who is bad on scripting but in "need" of a function.
Hope some can be of assistant :)

Here is the scenario 
I am running a stream with OBS and the source is a IP camera using rtsp 
The problem is that OBS is kind of buggy and the rtsp stream freezes sometimes.
(quite known issue)

I found a script someone had made for solving it but it did not work.
What I want is to send a key combination with a timer.
And then wait for a specified time and then do the same.

I have started with this script but i can't figure out how to setup the timers.
I am not good at reading wikki's about this kind of things sadly.

 

Quote

#include <Array.au3>
Global Const $sFullPath = "C:\Program Files\obs-studio\bin\64bit\"
Global Const $sPIDname = "obs64.exe"
Global Const $sWinTitle = "[TITLE:OBS; CLASS:Qt5QWindowIcon]"
Global Const $sWinText = "OBS 30.1.2"

Global Const $sSendHide = "{CTRLDOWN}H{CTRLUP}" ; OBS hotkey to hide media (stop)
Global Const $sSendShow = "{CTRLDOWN}S{CTRLUP}" ; OBS hotkey to show media (play)

 

So what i need in that is a timer that telling the script to send the keycombo then a time to wait then repeat the function
I hope any of you out there have a suggestion how to make this possible :)
 

  • Moderators
Posted

Moved to the appropriate AutoIt General Help and Support forum, as the Developer General Discussion forum very clearly states:

Quote

General development and scripting discussions.


Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums.

Moderation Team

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Posted (edited)

Use AdlibRegister with the time you want between each Send.  Then just create a Sleep While Loop to keep your script running.

Try it and come back if you need further help.

When your post code, please use the method shown in the link.

Edited by Nine

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...