You need to use a switch, not a button. You need to wire the switch properly, with pullup or pulldown resistor, since you are not using the internal pullup resistor.
if(digitalRead(BUTTON)==HIGH){
Serial.print("t1.txt=");
Serial.write(0x22);
Serial.print("READY");
Serial.write(0x22);
Serial.write(0xff);
Serial.write(0xff);
Serial.write(0xff);
}
Where is the serial data going?
I have tried on my page 0's preinitialize and post initialize tab
When you post ALL of your real code, and explain how the button is sewn onto the Arduino, you might get some help. Until then, all you are going to get is answers like this.
Trigger Nextion "start" button to start the arduino
Normally, one starts the Arduino by applying power to it. I'd having a hard time visualizing how the Arduino can be causing the Nextion to display a page with a strat button, when the Arduino is not started.
Perhaps you have some other definition of "start" in mind.