Search found 52 matches
- Sat Dec 11, 2021 9:20 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: How to extract whole text from a PDF file with the PDF widget?
- Replies: 9
- Views: 3626
Re: How to extract whole text from a PDF file with the PDF widget?
Do you like the result? I am not sure what you mean. I have opened the PDF file with the Preview app and then selected the whole text with ctrl/cmd-A. By copying the text with Ctrl/CMD-C it gets into the clipboard where I can import it into my Livecode app as text. This works fine, a minor problem ...
- Fri Dec 10, 2021 5:08 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: How to extract whole text from a PDF file with the PDF widget?
- Replies: 9
- Views: 3626
How to extract whole text from a PDF file with the PDF widget?
Hi,
I have a PDF filewith text and pictures, but I just want the text.
I can do it manually with Ctrl-A and Ctrl-Copy by viewing the file with Preview on MacOS.
I have a business licence and want to use the PDF widget but I cannot find a way to do it.
Can someone help me out?
Cheers,
Torsten
I have a PDF filewith text and pictures, but I just want the text.
I can do it manually with Ctrl-A and Ctrl-Copy by viewing the file with Preview on MacOS.
I have a business licence and want to use the PDF widget but I cannot find a way to do it.
Can someone help me out?
Cheers,
Torsten
- Fri Jun 11, 2021 3:20 pm
- Forum: LiveCode Builder
- Topic: How to call Java methods from LCB?
- Replies: 1
- Views: 6255
How to call Java methods from LCB?
HI, I want to say to my Android device that it should make a very short vibration. I know that I have to write a Livecode Builder library which seems to be easy. BUT now I have the problem to transform some Java code I have found into the correct foreign handler. Here is the Java code which seems to...
- Thu Jun 10, 2021 7:47 am
- Forum: Android Deployment
- Topic: How to make a short vibrate on Android?
- Replies: 2
- Views: 2252
Re: How to make a short vibrate on Android?
Hi Klaus, your suggestion is correct. Does anybody have more specific advise about how complex it is to write this widget? It seems to be a very simple command and I hope that the LCB code could be also simple, but I have not found any examples of a simple java command like this. In the simplest for...
- Wed Jun 09, 2021 8:31 am
- Forum: Android Deployment
- Topic: How to make a short vibrate on Android?
- Replies: 2
- Views: 2252
How to make a short vibrate on Android?
Hi, instead of the mobileVibrate command, which has a standard length, I want to have a very short vibration. There is a way to to do this in Java: https://stackoverflow.com/questions/13950338/how-to-make-an-android-device-vibrate-with-different-frequency // Get instance of Vibrator from current Con...
- Sat May 29, 2021 4:34 pm
- Forum: Internet
- Topic: How to put Accept-Language into Browser-Widget requests?
- Replies: 4
- Views: 5984
Re: How to put Accept-Language into Browser-Widget requests?
I made some progress but also saw a strange behavior of the widget: If you create a stack with browser widget und a buttion with this script: on mouseup set the httpheaders to "Accept-Languages: fr" set the url of widget "Browser" to "https://manytools.org/http-html-text/browser-language/" end mouse...
- Thu May 27, 2021 3:05 am
- Forum: Internet
- Topic: How to put Accept-Language into Browser-Widget requests?
- Replies: 4
- Views: 5984
Re: How to put Accept-Language into Browser-Widget requests?
Hi andresdt, thanks for the information but maybe I explained my problem not detailed enough. I want to navigate and load webpages with the browser widget and I am not using POST or GET command to get the page content. So the problem is: how to tell the browser widget that it should use the httphead...
- Wed May 26, 2021 2:32 pm
- Forum: Internet
- Topic: How to put Accept-Language into Browser-Widget requests?
- Replies: 4
- Views: 5984
How to put Accept-Language into Browser-Widget requests?
Hi, I want to tell the browser widget that it should ask the website for a representation in a specific language. As I have understood so far, this information has to be put in the httpheader: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language But how can I configure the brows...
- Sat May 15, 2021 10:09 pm
- Forum: Android Deployment
- Topic: My local IP address
- Replies: 28
- Views: 24882
Re: My local IP address
I discovered that Livecode does not need the shell commands, you can get all relevant information with networkInterfaces :D function get_internal_IP put the networkInterfaces into tInterfacesList repeat for each line tInternal_IP in tInterfacesList if tInternal_IP is "127.0.0.1" then next repeat els...
- Sat May 15, 2021 5:45 pm
- Forum: Android Deployment
- Topic: My local IP address
- Replies: 28
- Views: 24882
Re: My local IP address
Hi, I had the same problem for my project and I discovered the ways to find the internal (WLAN) IP for the Livecode device on Windows, MacOS and Android. Here ist the tested handler for them: put get_internal_IP() function get_internal_IP put the platform into tPlatform switch tPlatform case "MacOS"...
- Fri May 14, 2021 3:58 pm
- Forum: Windows
- Topic: Determining External IP Address.
- Replies: 5
- Views: 8693
Re: Determining External IP Address.
Eayiest way with LC server (which can be rented < 4 $ monthly on www.hostm.com) is this script:
The output is the ip of the client.
Cheers,
Torsten
Code: Select all
<?lc
put $_SERVER["REMOTE_ADDR"]
?>
Cheers,
Torsten
- Fri Mar 19, 2021 3:38 pm
- Forum: CGIs and the Server
- Topic: Server : send email with PDF attachment
- Replies: 4
- Views: 11854
- Wed Dec 16, 2020 11:55 pm
- Forum: Talking LiveCode
- Topic: You cannot trust arithmetic anymore
- Replies: 42
- Views: 16857
Re: You cannot trust arithmetic anymore
RTFM
In the dictionary:
"While using non-integer number and divisor usually produces sensible results, mathematically, integer division is generally defined as a function over the integers, and the results using non-integers may not consistently be what you expect."
Cheers,
Torsten
In the dictionary:
"While using non-integer number and divisor usually produces sensible results, mathematically, integer division is generally defined as a function over the integers, and the results using non-integers may not consistently be what you expect."
Cheers,
Torsten
- Sat Nov 07, 2020 11:23 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Number between .....
- Replies: 4
- Views: 4078
Re: Number between .....
If you need the comparison more than once in your code, it is better to create a custom handler :-) numberWithin (2,2,4) --> true numberWithin (5,2,4) --> false function numberWithin pNumber, pMin, pMax if pNumber >= pMin and pNumber <= pMax then return true else return false end if end numberWithin...
- Mon Aug 17, 2020 5:03 pm
- Forum: Internet
- Topic: Browser widget does not suppüort WebGL2
- Replies: 13
- Views: 13846
Re: Browser widget does not suppüort WebGL2
Hi Klaus, the problem with Safari in macOS is that WebGL is off by default, but can be activated via developer mode: German version: Menü / Entwickler / Experimentelle Funktionen / WebGL 2.0 Then it works! I have found this discussion about how to enable WebGL in macOS apps: https://stackoverflow.co...