Okay I fixed it with the help of some E_mails from their technical support
This is the diagram they sent me
I connected it exactly like this without needing an intermediate male DB-9 cable to fit into the female DB-9 of the RS232 module
I also knew exactly what the LCD sent and traced it byte by byte with the help of this video and their handbook
Also in case of the configuration setup here's another screen shots they sent me for my model which was
HKT050ATA-C
So I'll attach the code I used to check for the touch key response example which is in this video
So what this code does is use the Arduino's LED on pin 13 to validate that the LCD sent certain values to the Arduino
This only takes action on the last 2 icon touch keys which are ( 00 ) and ( FF )
If you click on 00 , the LED in the Arduino turns on
If you click on FF , the LED in the Arduino turns off
/*
This code is used to check for the last 2 touch keys only, the ones that send certain values acompanied by the address of the VP_16 variable used in the process
which is in this case 0x 00-08-00-00
So when I click on the icon touch key that says 00, the LED turns on
when I click on the icon touch key that says FF or 256 , the LED turns OFF
*/
/**********************LCD variables******************************************/
int temp;
/****************************************************************/
void setup() {
Serial.begin(115200);//don't forget to set it on your LCD configuration setup in RGtools
pinMode (13,OUTPUT);//arduino LED set as OUTPUT
digitalWrite(13,LOW);//LED initially OFF
while(!Serial){;}//wait for serial port to connect.Needed for native USB port only
}
void loop() {
Serial.read();//0xaa head
Serial.read();//0x77 touch command
Serial.read();//0x00 start address
Serial.read();//0x08
Serial.read();//0x00
Serial.read();//0x00end address
Serial.read();//0x00//valuebyte1
temp=Serial.read();//valuebyte0 but i know anyway that the lcd display project on RGtools changes only the first byte so I ignored the other byte
Serial.read();//tailbyte0
Serial.read();//tailbyte1
Serial.read();//tailbyte2
Serial.read();//tailbyte3
if(temp==0x00){
digitalWrite(13,HIGH);
}
if(temp==0xFF){
digitalWrite(13,LOW);
}
for(int i=0; i <= 20; i++){delayMicroseconds(1000);}
}


