Search found 872 matches
- Sat Sep 09, 2023 1:53 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Detect internet connectivity
- Replies: 26
- Views: 13501
Re: Detect internet connectivity
Let's see... connect your Mac to internet wifi (disconnect ethernet if connected) in the script: line 3 "put url" line 4 "if Json is empty" and following will run fine, reporting immediately the IP turn off wifi on Mac in the script: line 3 "put url" --at this point, not being connected, the script ...
- Sat Sep 09, 2023 11:04 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Detect internet connectivity
- Replies: 26
- Views: 13501
Re: Detect internet connectivity SOLVED (?)
I found the solution for my script, sending a "no_reuse" = true" with the tsNetGetSync. Now this script works very fast on iOS, Android and OSX, reporting "no internet" or the external IP. If you find something that, according to you, does not fit or can be a problem in the log run, PLEASE do your o...
- Sat Sep 09, 2023 9:50 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Detect internet connectivity
- Replies: 26
- Views: 13501
Re: Detect internet connectivity
Thanks. You got it but there is more. My requirements: being a published App, I must use a URL that I am sure will work forever (sigh). As I wrote before, I was using "http://ifconfig.me/ip" but now it returns the IPV6 (don't know why). But let us assume that your suggested URL will work consistentl...
- Fri Sep 08, 2023 3:44 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Detect internet connectivity
- Replies: 26
- Views: 13501
Re: Detect internet connectivity
1) You stand correct, Mark. I removed both the tsNetInit and the tsNetClose and now it works super on Android. BUT on OSX and iOS, after changing the SSID, on the first run it returns no connection (I guess is cached). Only on a second run of the script it returns the new IP. So (sigh) I modified t...
- Fri Sep 08, 2023 11:10 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Detect internet connectivity
- Replies: 26
- Views: 13501
Re: Detect internet connectivity
If you refer to this code: on mouseUp put "" into fld "TheAnswer" tsNetInit tsNetSetTimeouts 5,5000, 5000, 5000, 0, 0 put "https://api.ipify.org?format=json" into tGetString put tsNetGetSync(tGetString, tHeaders, tRecvHeaders, tResult, tBytes) into tTheAnswer tsNetClose put tTheAnswer into fld "TheA...
- Fri Sep 08, 2023 12:25 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Detect internet connectivity
- Replies: 26
- Views: 13501
Re: Detect internet connectivity
Another post resumed... My standalone (iOS and Android) needs to know if the device is connected to internet and to obtain the public IP (not the local IP) I had a script that was working fine, using "http://ifconfig.me/ip". Then, on the last update, I realised that the website started to respond wi...
- Wed Sep 06, 2023 4:06 pm
- Forum: Android Deployment
- Topic: My local IP address
- Replies: 28
- Views: 20542
Re: My local IP address
I resume this old conversation, because I have some doubts. Running this on the Mac,connected both to wifi and ethernet: on mouseUp pButtonNumber answer "networkInterface:" & cr & the networkinterfaces & cr & "JacqueFunct:" & cr & localIP() end mouseUp --Jacque local ip function function localIP -- ...
- Tue Sep 05, 2023 6:41 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Algorithm for deleting files
- Replies: 8
- Views: 3747
Re: Algorithm for deleting files
Correct, Jacque. Thanks. Any way I was hoping on some slicker trick to do this thing. All these repeat loop may not be efficient enough when deleting from a list of hundreds filenames. One more thing that I don't know if the "delete file filepath" command is time consuming or not. My final code is t...
- Tue Sep 05, 2023 11:20 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Algorithm for deleting files
- Replies: 8
- Views: 3747
Re: Algorithm for deleting files
The best I could think of, is the following: on mouseUp --create a dummy list repeat with U = 1 to 11 put U & "_testuser2@" & cr after tList end repeat put "12_testuser1@" & cr after tList put "cane_testuser3@" after tList --get list of owners set the itemdelimiter to "_" repeat for each line tLine ...
- Tue Sep 05, 2023 10:37 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Algorithm for deleting files
- Replies: 8
- Views: 3747
Algorithm for deleting files
Hello. I am trying to find the best and fastest way, on standalone opening, to delete stored files, according to some requirements: I have a list of file names (there may be hundreds of lines) similar to this (underscore delimited): (dateHour_userEmail) 20230305201146_user1@some.it 20230405201316_us...
- Tue Aug 22, 2023 11:27 am
- Forum: Announcements
- Topic: [ANN] Release LiveCode 9.6.10 RC-1
- Replies: 4
- Views: 6179
Re: [ANN] Release LiveCode 9.6.10 RC-1
Hello. Please remember also of LC 10 updates... When will the reunification of LC9 and LC10 happen? The chronic delay of LC updates compared to OSX and xCode, creates further difficulties in maintaining our published App, the compilation of which is forcedly dependent on LC10, which itself is update...
- Sat Aug 19, 2023 5:28 pm
- Forum: LiveCode Builder
- Topic: LCB Debugging Strategies
- Replies: 9
- Views: 16046
Re: LCB Debugging Strategies
Monte probably knows, since he created form me a complex extension, involving a SDK.
- Wed Aug 16, 2023 3:26 pm
- Forum: LiveCode Builder
- Topic: LCB Debugging Strategies
- Replies: 9
- Views: 16046
Re: LCB Debugging Strategies
Hello. @mdoub: At the moment you are limited to using the 'log' command in LCB which outputs messages into the extension builder log field. However, we are intending for there to be an out of process debugger which will allow you to step through code like the debugger in LCS and other environments. ...
- Wed Aug 09, 2023 5:37 pm
- Forum: Android Deployment
- Topic: Billing library update
- Replies: 9
- Views: 3999
Re: Billing library update
I created a bug report 24301, because I think this regards in app purchase handling of LC.
- Tue Aug 08, 2023 8:03 pm
- Forum: Android Deployment
- Topic: Billing library update
- Replies: 9
- Views: 3999
Re: Billing library update
No scam.
It appears on the google console web page, line 5
It appears on the google console web page, line 5