autohotkey - Ableton Issue while trying to control click -


even though have read docs , watched tutorials complete beginner apologize if silly question. have tried quite while no results.

i want have numpad0 key press global recording button in ableton live not want through mouse coordinates (1. because windows might minimized when need record , 2. because want implement in future in order able press recording button on individual tracks create them, might range 1 80 new tracks example)

the thing windows class dynamically changes , control id not shown in winspy.

this have been doing:

groupadd, live, ahk_class  afx:0000000140000000:0:0000000000000000:0000000000900015:00000000007a04c3 groupadd, live, ahk_class  afx:0000000140000000:0:0000000000000000:0000000000900015:0000000000200651 groupadd, live, ahk_class  afx:0000000140000000:0:0000000000000000:0000000000900015:0000000000290651 groupadd, live, ahk_class  afx:0000000140000000:0:0000000000000000:0000000000900015:00000000001e05f1  curmode := 1 return   numpad0::  setcontroldelay -1  controlclick, ahk_group live0,,,,,na  return 

so, issues these: 1. in groupadd command have put window classes have seen yet believe there might more classes, appear everytime open new ableton window. 2. in control click command, havent put control id because couldnt find it.

any advice on how finish code or change different in order press record button in ableton, without using coordinates?

edit: code im trying now, following suggestions havent got results yet:

settitlematchmode, regex settitlematchmode, slow  #ifwinactive, .*als numpad0::f9 #ifwinactive return 

and 2 version of that, not working either

settitlematchmode, regex settitlematchmode, slow  #ifwinactive, afx:0000000140000000 numpad0::f9 #ifwinactive return 

while i've never used groupadd, if there's finite number of class permutations, seems me regexmatch against , form group inside that. groupadd spec seems make parameters optional beyond groupname, perhaps skip class declaration after confirming you've got right window.

example:

wingettitle, title, wingetclass, class, if (regexmatch(title, "ableton live.*") , (regexmatch(class, "(abletonclass1|abletonclass2|abletonclass3)"))) {     ; stuff } 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -