09-23-2015, 10:41 AM
Sorry to bother you with another question about this, but if have the following situation (extracted from code above):
Where the first "int+ ApplicationHwnd=..." does not work because of the regex addition.
The line directly below does work, but targets the wrong window (if there are multiple).
Function tcmd_extension
Is there a way around this?
The window names are:
- "Total Commander" , for the first window
- "[#] Total Commander" for all the other windows (#=number beginning with '2' then '3' etc....)
It always needs to attach dialog-buttons to "Total Commander" not the one starting with "[#] "
Where the first "int+ ApplicationHwnd=..." does not work because of the regex addition.
The line directly below does work, but targets the wrong window (if there are multiple).
Function tcmd_extension
,,int+ ApplicationHwnd=win(F"^{ini_winname_main_app}" ini_winclass_main_app 0x200) ;; Does not work
,,int+ ApplicationHwnd=win(F"{ini_winname_main_app}" ini_winclass_main_app) ;; Works
,,;.
,,;.
,,;.
,,;
,,ifi(ApplicationHwnd) ;; Code below in 'gTimer'
Is there a way around this?
The window names are:
- "Total Commander" , for the first window
- "[#] Total Commander" for all the other windows (#=number beginning with '2' then '3' etc....)
It always needs to attach dialog-buttons to "Total Commander" not the one starting with "[#] "