Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
the 'act' command
#8
@ 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 

Code:
Copy      Help
act child(F"{fileName}")
 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
Code:
Copy      Help
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.


Messages In This Thread
the 'act' command - by [email protected] - 07-20-2018, 10:26 PM
RE: the 'act' command - by Kevin - 07-20-2018, 11:23 PM
RE: the 'act' command - by Gintaras - 07-21-2018, 04:42 AM
RE: the 'act' command - by [email protected] - 07-21-2018, 11:57 AM
RE: the 'act' command - by Gintaras - 07-21-2018, 12:39 PM
RE: the 'act' command - by [email protected] - 07-21-2018, 03:01 PM
RE: the 'act' command - by Gintaras - 07-21-2018, 03:51 PM
RE: the 'act' command - by Kevin - 07-24-2018, 07:01 PM
RE: the 'act' command - by Gintaras - 07-24-2018, 07:11 PM
RE: the 'act' command - by Kevin - 07-24-2018, 07:31 PM
RE: the 'act' command - by Gintaras - 07-24-2018, 07:43 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)