Forum Discussion
ory_z
14 years agoContributor
I think your problem is not re-evaluating the object after the key press down.
What happens is that when you evaluate the expression [Aliases.TMDS.frmSingleFormAuthorityCP.gbTNT.btnRepeatTNT.WaitChild("btnRepeatTNT", 1000).Exists ] TC returns a stub object (similar to other wait methods, see for example WaitWindow)with Exists = False
After that, the object never gets refreshed to check if now the object does in fact exist
I would add a line this way:
while not Aliases.TMDS.frmSingleFormAuthorityCP.gbTNT.btnRepeatTNT.WaitChild("btnRepeatTNT", 1000).Exists
Call Aliases.TMDS.FrmSingleFormAuthorityCP.gbTNT.Keys("[Down]")
Call Aliases.TMDS.frmSingleFormAuthorityCP.gbTNT.btnRepeatTNT.WaitChild("btnRepeatTNT", 1000)
wend
Call Aliases.TMDS.frmSingleFormAuthorityCP.gbTNT.btnRepeatTNT.ClickButton
Help this helps.
What happens is that when you evaluate the expression [Aliases.TMDS.frmSingleFormAuthorityCP.gbTNT.btnRepeatTNT.WaitChild("btnRepeatTNT", 1000).Exists ] TC returns a stub object (similar to other wait methods, see for example WaitWindow)with Exists = False
After that, the object never gets refreshed to check if now the object does in fact exist
I would add a line this way:
while not Aliases.TMDS.frmSingleFormAuthorityCP.gbTNT.btnRepeatTNT.WaitChild("btnRepeatTNT", 1000).Exists
Call Aliases.TMDS.FrmSingleFormAuthorityCP.gbTNT.Keys("[Down]")
Call Aliases.TMDS.frmSingleFormAuthorityCP.gbTNT.btnRepeatTNT.WaitChild("btnRepeatTNT", 1000)
wend
Call Aliases.TMDS.frmSingleFormAuthorityCP.gbTNT.btnRepeatTNT.ClickButton
Help this helps.
Related Content
- 6 years ago
- 8 years ago
Recent Discussions
- 3 days ago
- 3 days ago
- 6 days ago