Using a Google disk document to transfer information to the application: html instead of txt - Forum

Forum Navigation
You need to log in to create posts and topics.

Using a Google disk document to transfer information to the application: html instead of txt

There is an idea of a simple chat, but it did not work out...
Tried to use Google disk for the purpose of transmitting text information to the application.
I created a text file, opened access to it (created a link). This link was placed in the VisualNEO Win command (DownloadFile or InternetGet), but some web-abracadabra in the form of html symbols is downloaded, instead of the text string, which I originally recorded in the file.
In this case, the downloaded file does not contain the text that should be there. Apparently, it is encoded.
Has anybody tried to pass a line to the VisualNEO Win application using a file link for Google disk sharing?
What am I not taking into account?

Here is the code used on the timer to check for changes in the file (if there is a new message):

InternetGet "https://drive.google.com/file/d/1YJq***Shortened***eOuxZ/view?usp=sharing" "[messageNew]" "HideProgress+Async"
If "[messageNew]" "<>" "[messageOld]"
AlertBox "Post" "[messageNew]"
SetVar "[messageOld]" "[messageNew]"
EndIF

 

The answer is found!

The true download link will appear in your browser address bar for some time if you click on the download button. This link should be copied into the InternetGet parameter. Thus, the idea of a chat, in which data exchange is carried out with the help of Google disk files is quite feasible! :)

 

 

@vadim I'm curious about how to create a chat using Google Drive. How do you update the text content from your app? It's necessary to install Google Drive software and share a specific folder with whom you want to chat?

Best regards.

@luishp

Yes, I tested it, now I can answer it.
You can use Google Drive service to exchange information between VisualNEO Win projects.
It can be a chat or just a control command (in the form of special words). I have checked for now to pass only text. It works!

On the example of a chat:
Google Drive should work on your computer - it will update the local file for your answers and provide a public link to it. You should first open this link in your browser and click the "download" button on the page to view the document. A download link will appear in the address bar for a second, so you need to copy it. This link should then be placed in the command parameter (DownloadFile or InternetGet), in the application that your conversation partner will have. This way he will receive your answers. Your conversation partner should do the same - he or she should create a file for his or her answers, which will give you the link.

Thus, answer files always store only one last message from their sender. And the message history file is created and added to the local computer.

Restrictions:
1) I have checked that the link will not work if you use a corporate google account where the administrator has disabled the download (this is reported when trying to make the link public). But from personal accounts everything works fine.
2) The update speed will not be instantaneous. But in principle this is the way to transfer data.
3) Your program must also be in the Google Disc folder, otherwise it will not be able to write to a file that is synchronized by Google.

luishp has reacted to this post.
luishp

Hola, yo utilizo algo parecido con dropbox, para actualizaciones de mi software etc

Lo había intentado con Drive pero no supe hacerlo, gracias a lo que has puesto lo he conseguido pero haciendo algún cambio en la dirección:

(traducido translate.google)

Hello, I use something similar with dropbox, for updates of my software etc.

I had tried with Drive but I did not know how to do it, thanks to what you have put I have succeeded but making some change in the address:

InternetGet "https://drive.google.com/u/0/uc?id=0BwdfwfgwwfgwfgwdgwdfgwfHc&export=download" "[messageNew]" "HideProgress+Async"

Gracias. Un saludo

That's right! The address should be changed exactly as you have shown. It is acceptable to delete the characters "u/0/" that precede the characters "uc?id=". But in order not to change the address manually you can copy it from the address bar after clicking on the "download" button on the open document page in your browser. The link in the desired form will appear there for a second. But you can also fix it manually, of course. Thank you, noted it!

I did not use Dropboxes for similar purposes. Thank you for the useful information!!

 

@Vadim,

Is it possible to configure GDrive to server a large file without showing the who can't virus check BS ?

I've been trying to figure that out for years ;-)

Thanks for sharing what you do ;-)

rcohen

@rcohen

Is it possible to configure GDrive to server a large file without showing the who can't virus check BS ?

Sorry, using Google Translator, I was not able to understand this question. What does BS mean?

 

@vadim

What does BS mean?

The B stands for B*** (male version of bovines) and S stands for S*** (as in feces) :-))

I still don't understand the question "Is it possible to configure GDrive to server a large file without showing the who can't virus check" ... perhaps a typo in the text ?

Sorry for the delay in responding.    I have a full plate atm ;-)

Gaev, thanks for translating ;-)  ;-)

When you download a file from GDrive, larger than a given file size ... it FIRST shows you a prompt saying that it's too large to scan for virus's, download anyway?      Because of this, I can't download directly via link (for downloads in software) without this nag screen giving away the location of the file.

And so I'm needing to figure out if there is a way to eliminate that prompt or squash it and keep going... ;-)

Thanks

I will likely be guilty of delayed responses to most forum activity...     And thanks for your feedback

 

 

@rcohen

When you download a file from GDrive, larger than a given file size ... it FIRST shows you a prompt saying that it's too large to scan for virus's, download anyway?

I didn't know; I don't have very large files ... especially of the BS kind :-))

Because of this, I can't download directly via link (for downloads in software) without this nag screen giving away the location of the file.
And so I'm needing to figure out if there is a way to eliminate that prompt or squash it and keep going... ;-)

This link (from my Google search) ...

https://www.marstranslation.com/blog/how-to-skip-google-drive-virus-scan-warning-about-large-files

... might just do the trick for you.

Vadim has reacted to this post.
Vadim

Nice!   Thank you Gaev.   I did indeed look for a solution but couldn't find one.   I'll check this one out and see if it works.   The trouble with hacks like this, I'm finding, is that they change things often and what works this week, may not work next week. ;-0

I am, of course, interested in keep large files with large download expectations off my little hosting acct.  As you know I gave up my dedicated servers a few years ago when I shifted direction ;-0

Thanks again Gaev!!  Much appreciated.

rcohen

It is possible, yes, download a large file without the nag, but need a plugin to direct acess teh Goggle Drive

rcohen has reacted to this post.
rcohen

Indeed to automate that process would be sweet ;-)