TariqMehmod
Programmer
Sir I am trying to send message on whatsapp with following codes
The command work fine, no issue
But I want to send above message into 2 lines so I add CRLF
When I run command is says
command contains unrecognized command phrase/keyword
Please help me to send above message in 2 lines like this
Regards
Code:
Declare Integer FindWindow In WIN32API String , String
Declare Integer SetForegroundWindow In WIN32API Integer
Declare Integer ShowWindow In WIN32API Integer , Integer
Declare Integer ShellExecute In shell32.Dll ;
INTEGER hndWin, ;
STRING cAction, ;
STRING cFileName, ;
STRING cParams, ;
STRING cDir, ;
INTEGER nShowWin
Local lt, lhwnd
cPhone=[923000000000]
cMessage='How are you sir?'+SPACE(2)+'what are you doing'
comando='whatsapp://send?phone=&cPhone&text=&cMessage'
=ShellExecute(0, 'open', comando,'', '', 1)
Wait "" Timeout 3
lt = "Whatsapp"
lhwnd = FindWindow (0, lt)
If lhwnd!= 0
SetForegroundWindow (lhwnd)
ShowWindow (lhwnd, 1)
ox = Createobject ( "Wscript.Shell" )
ox.sendKeys ( '{ENTER}' )
*Messagebox ( "Message Sent" )
Else
Messagebox ( "Whatsapp no activated!" )
Endif
The command work fine, no issue
But I want to send above message into 2 lines so I add CRLF
Code:
#define CRLF CHR(13)+CHR(10)
cMessage='How are you sir?'+CRLF+'what are you doing'
When I run command is says
command contains unrecognized command phrase/keyword
Please help me to send above message in 2 lines like this

Regards