@ kentatkoylia i would still like to see the code when your formatting string fileName before you use it in the act child(F"{fileName}") statement.
Also on your old computer what was qm version?
from some test i have done the only way i can make this
work is by first activating the parent window
here is my test function to show my results( tested on win7 & win10) same results with current qm version
Function act_child_F_test
@ Gintaras is there a difference in how child works in current qm version compared to other qm versions? My thought is maybe he was using an older qm version that his code would work on but now that he is on a different version it doesn't . Idk its just a thought.
Also on your old computer what was qm version?
from some test i have done the only way i can make this
work is by first activating the parent window
here is my test function to show my results( tested on win7 & win10) same results with current qm version
Function act_child_F_test
out
str cn="SysTreeView32"
str pn="Quick Macros"
str chn="Running items"
ArrangeWindows(0)
1
str fileName=F"{chn} {cn} {pn}"
out "starting test 1"
act child(F"{fileName}");;this fails everytime
err
,out "error test 1"
,out _error.description
,1
,out "starting test 2a"
,fileName=F"{chn}"
,act child(F"{fileName}");;this fails unless parent window is active
,err
,,out "error test 2a"
,,out _error.description
,,out "starting test 2b after activating parent window first"
,,act _hwndqm
,,1
,,act child(F"{fileName}");; now this works
,,err
,,,out "error test 2b"
,,,out _error.description
1
ArrangeWindows(0)
1
out "starting test 3"
act child(F"{chn}" F"{cn}" F"{pn}");;this works always
err
,out "error test 3"
,out _error.description
ArrangeWindows(0)
1
out "starting test 4"
act child(F"{chn}" "SysTreeView32" "Quick Macros");;works always
err
,out F"error test 4"
,out _error.description
ArrangeWindows(0)
1
out "starting test 5"
act F"{chn}";;of course doesnt work cause window name is wrong
err
,out F"error test 5 {chn}"
,out _error.description
1
act F"{pn}" ;; works cause window name is correct
@ Gintaras is there a difference in how child works in current qm version compared to other qm versions? My thought is maybe he was using an older qm version that his code would work on but now that he is on a different version it doesn't . Idk its just a thought.