09-14-2012, 10:09 PM
thanks ankesh i tried what you said and i included the ExitActionIteration statement the way i have mentioned below, but now when the second function is false the script just stop, what i want it do is continue with the next CINNUMBER from the excel list... hope you can help with this
Code:
Var = Window("foreGround:=True").GetROProperty("hwnd")
Set Dwindow1=description.Create
Dwindow1("micclass").value=("Window")
Dwindow1("hwnd").value=Var
Window(Dwindow1).Activate
wait 0,100
Set Keyboard = DotNetFactory.CreateInstance( "Microsoft.VisualBasic.Devices.Keyboard", "Microsoft.VisualBasic" )
Call Keyboard.SendKeys( "^a", True )
Call Keyboard.SendKeys( "^c", True )
Set Dwindow2=description.Create
Dwindow2("micclass").value=("Window")
Dwindow2("text").value="Closed Account - Notepad"
Window(Dwindow2).Activate
Call Keyboard.SendKeys( "^v", True )
wait (1)
Call Keyboard.SendKeys( "~", True )
Call Keyboard.SendKeys( "~", True )
Window(Dwindow1).Activate
Window(Dwindow1).Close
Window(Dwindow).Activate
End Function
ExitActionIteration