HI,
I need to send a file through whatsapp. I used below method. but a small doubt.
int li_connect
ole_wsh = Create OleObject
li_connect = ole_wsh.ConnectToNewObject("WScript.Shell") //
ole_wsh.Run(whatsapp exe path here )
ole_wsh.appActivate("Whatsapp")
sleep (2)
ole_wsh.SendKeys("+{TAB}")
ole_wsh.SendKeys("{ENTER}")
ole_wsh.SendKeys("{DOWN}")
ole_wsh.SendKeys("{DOWN}")
ole_wsh.SendKeys("{DOWN}")
ole_wsh.SendKeys("{DOWN}")
ole_wsh.SendKeys("{ENTER}") // now it is reached file attachment dialogbox.
In this box I need to paste my file in the file name area without use manual selection.
Have any chance ?.