본문 바로가기

Programming/Etc

[학사] 아주대 - Print.scp 변경

Number nHandle
Number nChildhandle1
Number nChildhandle2
Number nChildhandle3
Number nChildhandle4 = -1

Number TimeOut
Put("")

Do
 nHandle = FindWindow(0,0,"#32770","AIMSII")
 If nHandle != 0
    Break
 EndIf
EndDo

nChildhandle1 = FindWindow(nHandle,0,"AfxOleControl80u","")
nChildhandle2 = FindWindow(nChildhandle1,0,"#32770","")
nChildhandle3 = FindWindow(nChildhandle2, 0, "Button", "Button0" )
nChildhandle4 = FindWindow(nChildhandle2, nChildhandle3, "Button", "Button0" )

PostMsg( nChildhandle4, 513, 0, 589829 )
PostMsg( nChildhandle4, 513, 0, 589829 )
PostMsg( nChildhandle4, 514, 0, 589829 )

Delay( 0.5 )

nChildhandle1 = FindWindow(0,0,"#32770","AIMSII")
nChildhandle2 = FindWindow(nChildhandle1,0,"Button","확인")

PostMsg( nChildhandle2, 513, 0, 589829 )
PostMsg( nChildhandle2, 513, 0, 589829 )
PostMsg( nChildhandle2, 514, 0, 589829 )

Delay( 0.5 )

Put(nChildhandle1 + "<br>")
Put(nChildhandle2 + "<br>")