Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Error 3353 - Nesting of Structure too complex
;=========================================== ButtonPushed=Dialog("XcelleNet") if buttonpushed == 2 then goto Quit if RADIO == 1 Run ("c:\nodesys\nodecomm.exe", "") else Run ("c:\nodesys\winauto.exe", "-d 3 1") endif :Run_Session if AppExist("winauto.exe") == @TRUE timedelay(15) goto Run_Session endif :Done if RADIO == 2 WinActivate("IBM") sendkeysto("IBM","!{F4}y") Run ("c:\nodesys\nodecomm.exe", "") endif :QuitIn certain undocumented times I get the following error:
3353 Nesting of structures too complex "if AppExist("winauto.exe") == @TRUE"Any ideas why?
Take out the "goto Run_Session" in your if/endif loop. Try...
;============================================== ButtonPushed=Dialog("XcelleNet") if buttonpushed == 2 then goto Quit if RADIO == 1 Run ("c:\nodesys\nodecomm.exe", "") else Run ("c:\nodesys\winauto.exe", "-d 3 1") endif :Run_Session while AppExist("winauto.exe") == @TRUE timedelay(15) endwhile :Done if RADIO == 2 WinActivate("IBM") sendkeysto("IBM","!{F4}y") Run ("c:\nodesys\nodecomm.exe", "") endif :QuitAlso see the following tech supt web page for more details:
Nesting of Structures Too Complex or Deep
;======================================================= :wait4child1 name = char2num("Wait (Cancel to halt)") char = wingetactive() active = char2num("%char%") if name == active then sendkey("~") else gosub wait4child1 returnThe script waits for a program to finish processing. When the program is finished it displays a message box with the title "Wait (Cancel to halt)". So I store the name of the box in a variable and then convert it to a number so that I can compare it to the real thing when the message box is displayed.
Why am I getting this error??? Thanks in advance for any help.
ORIGINAL CODE:
:wait4child1 name = char2num("Wait (Cancel to halt)") char = wingetactive() active = char2num("%char%") if name == active then sendkey("~") else gosub wait4child1 returnMODIFIED VERSION:
:wait4child1 while 1 name = char2num("Wait (Cancel to halt)") char = wingetactive() active = char2num(char) if name != active then continue sendkey("~") break return
Article ID: W12970
Filename: Error 3353 Structure Too Complex.txt
File Created: 2017:08:29:11:48:30
Last Updated: 2017:08:29:11:48:30