Jump to content

eliass123

Members
  • Posts

    19
  • Joined

  • Last visited

Everything posted by eliass123

  1. managed to do it using "Exit". forgot about that ControlSend ( "OBS 21.1.0 (64bit, windows) - Profil: Unbenannt - Szenen: Unbenannt", "", "[CLASS:Qt5QWindowIcon; INSTANCE:1]", "+{f12}" ) ;start recording Sleep(10) Send ("+{f5}") ; I need this for the script to trigger _ExtendTime when I press it the second time. Sleep(10) HotKeySet("+{f3}", "_replay") ; Sleep(10) Send ("+{f3}") ;this is what I only want the first time. It saves the replay. Sleep(10) AdlibRegister("_StopRecord", 1000*60*15) Sleep(10) ;hierhin exit? While 1 Sleep(10) WEnd Func _StopRecord() Sleep(10) ControlSend ( "OBS 21.1.0 (64bit, windows) - Profil: Unbenannt - Szenen: Unbenannt", "", "[CLASS:Qt5QWindowIcon; INSTANCE:1]", "+{f11}" ) Sleep(10) HotKeySet("+{f5}", "_ExtendTime") Exit EndFunc Func _ExtendTime() Sleep(10) $iTime = 3 ;stop recording after 15 minutes AdlibRegister("_StopRecord", 1000*60*$iTime) Exit EndFunc Func _replay() Sleep(10) ControlSend ( "OBS 21.1.0 (64bit, windows) - Profil: Unbenannt - Szenen: Unbenannt", "", "[CLASS:Qt5QWindowIcon; INSTANCE:1]", "+{f6}" ) EndFunc edit. still doesnt work
  2. dont know how to do it im just stuck in loops. Also, I can't use a keyboard shortcut to start the script the first time. I can only open the script.exe via a keyboard button. I think otherwise it would be easier Either it's not possible with only hotkeyset or I don't get it i might need something like "if that window is already running" but that would be something with singleton and I didnt get how to use that one as well t i just tried like 5 or 6 versions of it so at some point it got messy and I used another file. my main problem is that I have to set the save replay hotkey as well as send it every time I start the script but even if I set a new hotkey for that in the func _ExtendTime() it would still change the hotkey back every time I used my only button to run the script or with more general words: (btw im not english so i have communication problems anyway) I don't know how to make a script that changes its function the second time you activate it while only using one single button the whole time that only has the function to activate the script itself.
  3. but what is the name of the function that allows me to do that? (edit: HotKeySet, right?) well I was just joking cause that's kinda how it felt to me since I'm a beginner
  4. my current version of the script is AdlibRegister("_StopRecord", 1000*60*15) HotKeySet("+{f6}", "_ExtendTime")                                                                                                                       ControlSend ( "OBS 21.1.0 (64bit, windows) - Profil: Unbenannt - Szenen: Unbenannt", "", "[CLASS:Qt5QWindowIcon; INSTANCE:1]", "+{f12}" )      ;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 = 15                             ;stop recording after 15 minutes     AdlibRegister("_StopRecord", 1000*60*$iTime)  ;x1000x60 because from miliseconds to minutes  EndFunc just removed the messageboxes, added a fixed value instead of the inputbox (i decyphered that shit) even though I didn't find an explanation for how to use $iTime online and I removed the semicolons (bugfixer Ph.D), everything works fine so far Now I want to add a new feature. The feature should be activated when I start the script but not while the script is already running. (The feature is called replay puffer and allows you to save replays. It runs the whole time on your ram and only remembers the last eg 5 minutes of what you were doing. Then you press a hotkey and the 5 minute clip is saved on your hard drive) ControlSend ( "OBS 21.1.0 (64bit, windows) - Profil: Unbenannt - Szenen: Unbenannt", "", "[CLASS:Qt5QWindowIcon; INSTANCE:1]", "+{f6}" ) ;save replay ;wanna use the same hotkey for everything AdlibRegister("_StopRecord", 1000*60*15) HotKeySet("+{f6}", "_ExtendTime") ;wanna use the same hotkey for everything The problem is that I want to use the same hotkey to start the entire script (including the feature) as well as to extend the time. (This means that every time I wanted to extend the time a 5 minute clip that I am already recording or have recorded via the regular method already will be saved on my hard drive unnecessarily) A solution I thought of would be that as soon as I press a button to activate the entire script the buttons' hotkey would turn into a different one which I could set up to extend the time, although I don't know how to do this Any suggestions? greetings
  5. okay but how should I implement the controlsends into the script then?
  6. thank you for your effort I have to remove the " ; " before the "ControlSend" otherwise the key command isn't actually sent to obs (so the recording wouldn't start). The problem now is that the script doesn't run continuously in the background at all (although it sends "+{f12}" to obs correctly) Instead, I get this error message on start . Also, how do you extend the time without entering something into an inputbox? I'd like to extend the time by a set amount just via 1 hotkey.
  7. sorry for the late answer the pages of the functions you mentioned look very confusing and complicated to me. I'd appreciate if any of you guys would make me a blanko instead. I also couldn't find any better explanations on google/youtube
  8. avast didn't work but I used regedit to permanently disable windows defender #imoneofthehardones
  9. Hey, I've already seen the sticky thread on autoit virusses but the first post doesn't mention windows defender and the thread is quite inactive so I made a new one. I tried sending a simple keycombination to a program when my pc starts using 1) task scheduler and then 2) windows autostart folder. In both cases it's detected as a virus. I also tried adding the files as exeptions to windows defender while they were in their original folder, the autostart folder and I chose the .exes as well as the .au3s I also tried to add an exeption using the process name you can find on the task manager. (Tried to type in the name with .exe as well as without) I also changed the properties of the scripts so that they are started as an administrator. My script looks like this Sleep(15000) ControlSend ( "OBS 21.1.0 (64bit, windows) - Profil: Unbenannt - Szenen: Unbenannt", "", "[CLASS:Qt5QWindowIcon; INSTANCE:1]", "+{f8}" ) please help me... those guys from microsoft are mental
  10. Hey, I already wrote this "script" (lel) to have an instant "record the next 15 minutes"-button: ControlSend ( "OBS 21.1.0 (64bit, windows) - Profil: Unbenannt - Szenen: Unbenannt", "", "[CLASS:Qt5QWindowIcon; INSTANCE:1]", "+{f12}" ) start recording Sleep(900000) ControlSend ( "OBS 21.1.0 (64bit, windows) - Profil: Unbenannt - Szenen: Unbenannt", "", "[CLASS:Qt5QWindowIcon; INSTANCE:1]", "+{f11}" ) stop recording after 15 minutes the problem is: if eg 10 minutes passed after starting the recording and I wanted to extend the recording for another 15 minutes by using this script the script would still stop the recording after the 5 remaining minutes instead of 15. I don't understand how to set up "if script is already running, cancel that script". i've read a forum post that said you should use something with _singleton for this but I didn't understand how to use it. Can someone maybe write a blanko for me or give me a better explanation for it? Appreciating your help, eliass123
  11. I really have no clue how to do timestamps even this page couldn't help me https://www.autoitscript.com/autoit3/docs/macros/TimeAndDate.htm edit found it out
  12. Hey, I want to make a macro that sends a timestamp to a background window like notepad and then send ctrl s How do I do that? Greetings
  13. shift r starts the recording, I could change that keybinding or if by "controlclick" you mean clicking on the "start recording"-button instead I don't believe it's possible while the program is in the background, is it? do I need to provide te control ID? Don't know where to find it the window activating thing might be possible but could be problematic if I was in a videogame
  14. but still dont know how to do it
  15. got it, the window header is the top line text
  16. not sure if this is the relevant information don't know what a window header is, but that's a screenshot of the obs window
  17. that also doesnt work: ControlSend("OBS", "", "","+r")
  18. Hey, I just wanna send the hotkeys shift r to my obs window while it is inacitve. At first I used if ProcessExists("obs64.exe") Then winactivate("OBS") EndIf Send("+r") That thing works so the name of the window "OBS" is correct. But I don't want to have the window in the foreground so I tried controlsend like this ControlSend ("OBS", "+r") and it doesn't work at all so I wanted to know what to change Greetings
×
×
  • Create New...