Temporary "Hang"

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Googie85
Posts: 226
Joined: Tue Aug 05, 2014 10:07 am

Temporary "Hang"

Post by Googie85 » Thu Aug 22, 2024 2:09 am

Hii Guys!!

I am trying to receive a file over sockets and it seems to "hang" on the following code.

Code: Select all

on NEWMESSAGE theIP pmsg
 if char -5 to -1 of pmsg is "file§" then
When I press down on the Android screen, the transfer is instantly received (over LAN). Otherwise, it pauses for 5 to 10 seconds before the transfer completes. I have tried "focus on nothing" and that doesn't produce the desired result. Is there a way I can produce a screen click or something similar to load the received file as soon as it gets transferred?

I hope I have explained myself enough!

Many Thanks,

Googie.

EDIT: I have also tried the following:

Code: Select all

put char -5 to -1 of pmsg into temp
if temp = "file§" then

Post Reply