Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/19/2022 in all areas

  1. If you are making a change to Voicemeeter parameters and then rerunning the script, then that is why you are seeing odd results. The APIs do not work that way. The only way you will accurately see your changes running your script that way would be to change the parameters, stop & restart Voicemeeter, and then rerun your script. If you want to be able to monitor parameter changes in real time, then you need to poll for changes by constantly checking for changes using the Is...Dirty API functions and when it is true, then do what you want to do. I do the polling using a loop, but I guess you could also use some sort of timer-based method like AdlibRegister(). In my test script, I check for parameter changes about 10 times a second. That seems to work fine. The log below is an example run of a script that monitors for parameter changes using the VBVMR_IsParametersDirty() API and displays a few specific parameters whenever it detects ANY parameter change. In the log below, you can see that I toggle A1, Mono, and Mute in the first strip. I then toggle them again in the same order. 2022-05-18 15:37:38 DllOpen successful 2022-05-18 15:37:38 VBVMR_Login successful 2022-05-18 15:37:38 2022-05-18 15:37:38 Strip[0].A1 = True 2022-05-18 15:37:38 Strip[0].Mono = True 2022-05-18 15:37:38 Strip[0].Mute = True 2022-05-18 15:37:44 2022-05-18 15:37:44 Strip[0].A1 = False 2022-05-18 15:37:44 Strip[0].Mono = True 2022-05-18 15:37:44 Strip[0].Mute = True 2022-05-18 15:37:46 2022-05-18 15:37:46 Strip[0].A1 = False 2022-05-18 15:37:46 Strip[0].Mono = False 2022-05-18 15:37:46 Strip[0].Mute = True 2022-05-18 15:37:48 2022-05-18 15:37:48 Strip[0].A1 = False 2022-05-18 15:37:48 Strip[0].Mono = False 2022-05-18 15:37:48 Strip[0].Mute = False 2022-05-18 15:37:50 2022-05-18 15:37:50 Strip[0].A1 = True 2022-05-18 15:37:50 Strip[0].Mono = False 2022-05-18 15:37:50 Strip[0].Mute = False 2022-05-18 15:37:51 2022-05-18 15:37:51 Strip[0].A1 = True 2022-05-18 15:37:51 Strip[0].Mono = True 2022-05-18 15:37:51 Strip[0].Mute = False 2022-05-18 15:37:52 2022-05-18 15:37:52 Strip[0].A1 = True 2022-05-18 15:37:52 Strip[0].Mono = True 2022-05-18 15:37:52 Strip[0].Mute = True 2022-05-18 15:37:54 2022-05-18 15:37:54 VBVMR_Logout executed 2022-05-18 15:37:54 DllClose executed My example script is below. Click "Reveal hidden contents" to view it.
    2 points
  2. Hi @Vikramjeet. If StringRegExp($line, "\bBOB\b", 0) Then \b is a word boundary
    1 point
  3. NassauSky, Here is how I might go about coding a solution: AutoItSetOption ( "MustDeclareVars", 1) Opt("GUIOnEventMode", 1) HotKeySet("{ESC}", "_Exit") Global $getCustomName = "Button" Global $hGUI = GUICreate("myHelper") Global $hExportList = GUICtrlCreateButton("Export List",200,25,80,25) ;x,y,w,h GUICtrlSetOnEvent(-1, "myFunction") GUISetState() myFunction_Direct("Direct") While 1 Sleep(10) WEnd Func myFunction_Direct($Param = True) $getCustomName = $Param myFunction() $getCustomName = "Button" EndFunc Func myFunction(); Handle both a button press in EventMode and a call to the function If $getCustomName = "Button" Then MsgBox(0,"Custom Name","Called through button press") Else MsgBox(0,"Custom Name","Called through function call with param: " & $getCustomName) EndIf EndFunc Func _Exit() Exit EndFunc M23
    1 point
  4. Melba23

    To add a func in gui...

    Sinko89, First, please use Google translate or something like it to get your posts close to understandable - I am afraid I must tell you that your English is absolute rubbish and no-one can understand what you are trying to say. Second, just how far have you got with this project? Is it just a basic GUI or do you have any underlying code to go with it? For example, do those combos actually have anything in them? Third, just what is it you expect this GUI to do? Although I suspect that it might become clearer if we could understand your posts. As far as I can tell you seem to want to concatenate various AutoIt commands into a single executable - these commands being listed in the various columns. But how do you intend to add the various variables to the commands - the combos appear to be very generic command "words" without the parameters which are necessary for them to become actual "commands". So over to you: make your goals clearer and we might be able to offer some advice on how to proceed, but I must warn you that if you expecting someone to code everything for you then you are in the wrong place. 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. M23
    1 point
  5. After some looking into this, it might really be similar to accessing the systray via a TBBUTTON structure (I use in HMW to access the systray). https://www.codeproject.com/Articles/10497/A-tool-to-order-the-window-buttons-in-your-taskbar
    1 point
  6. thatboy, when you reply to a post simply add your text at the end of the thread in the "Reply to this topic .." field. There is no need to quote the post you want to reply to - we know what we have written 😉
    1 point
  7. As I notice, you are already looking in corresponding posts. Maybe this might fit : https://www.autoitscript.com/forum/topic/32666-coverting-xy-coords-for-various-screen-resolutions/ Finally, it's "just" some math
    1 point
  8. It depends significantly on how your script performs the automation. If you went the (not recommended) way via MouseMove/MouseClick on absolute coordinates, then a conversion algorithm would be conceivable. A better approach would be the use of Control-ID's, since they work independently of absolute X-Y values. Could you describe your current method more detailed?
    1 point
×
×
  • Create New...