Jump to content
gahhon

How to read and update data in Google SpreadSheet?

Recommended Posts

I don't find any relevant topic via Google Search. Please kindly advise how to read and update data in Google SpreadSheet.

Thanks a lot.

Share this post


Link to post
Share on other sites

Click here to see my signature:

Spoiler

Thoughts:

  • I will always thank you for the time you spent for me.
    I'm here to ask, and from your response, I'd like to learn.
    By my knowledge, I can help someone else, and "that someone" could help in turn another, and so on.

/*--------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

ALWAYS GOOD TO READ:

 

Share this post


Link to post
Share on other sites

@gahhon
Every post where someone asked about Google Spreadsheets refers to Google API :)


Click here to see my signature:

Spoiler

Thoughts:

  • I will always thank you for the time you spent for me.
    I'm here to ask, and from your response, I'd like to learn.
    By my knowledge, I can help someone else, and "that someone" could help in turn another, and so on.

/*--------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

ALWAYS GOOD TO READ:

 

Share this post


Link to post
Share on other sites

The reason why I am doing this is similar to database, since the database need to rent so I rather do in Google Docs (SpreadSheet) to check the values.

If this value is match and not exceed a certain, then I increment a value.

Share this post


Link to post
Share on other sites
Just now, FrancescoDiMuro said:

@gahhon
Every post where someone asked about Google Spreadsheets refers to Google API :)

I see the Guide section, it shows Java, PhP, Phython and etc. But not related to AutoIT script?

any advance?

Share this post


Link to post
Share on other sites

@gahhon
That's because you can't do it directly with AutoIt :)


Click here to see my signature:

Spoiler

Thoughts:

  • I will always thank you for the time you spent for me.
    I'm here to ask, and from your response, I'd like to learn.
    By my knowledge, I can help someone else, and "that someone" could help in turn another, and so on.

/*--------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

ALWAYS GOOD TO READ:

 

Share this post


Link to post
Share on other sites
22 hours ago, FrancescoDiMuro said:

@gahhon
That's because you can't do it directly with AutoIt :)

Awh. Maybe it is under-development with AutoIT tho :D

20 hours ago, Nine said:

you could use SQLite (no rent) 

But I still need a server to store the database?

I thought SQLite is just a Database language like mySQL, Oracle etc?

Other than connecting to Database, then compare and update the value, is there any way to work as what I want.

 

Achievement: I want to limit my designed application as per device.

For example: Company A is signed up for 30 devices to install and use this application, then application only can install 30 times with this Company A. (If using Database, then I compare with the Company ID and AmountInstall not greater and equal than 30 times)

Edited by gahhon

Share this post


Link to post
Share on other sites
29 minutes ago, Nine said:

No, this is why it is called Lite.  You can install it on any computer, and run it standalone.  Google it, download it, use it...

Then how is possible the application to read and update the Database data, while the application is not execute on my computer?

Share this post


Link to post
Share on other sites
9 minutes ago, gahhon said:

Then how is possible the application to read and update the Database data, while the application is not execute on my computer?

And how will you prevent any techies to erase your data, or modify your data ?  If it's only a question of counting the number of machines running your application, then you don't need a database.  But you certainly need a form of data encryption.

Share this post


Link to post
Share on other sites
3 minutes ago, Nine said:

And how will you prevent any techies to erase your data, or modify your data ?  If it's only a question of counting the number of machines running your application, then you don't need a database.  But you certainly need a form of data encryption.

So far based on my testing, I know the .au3 file can convert into .exe file, thus .exe file will encrypted all those of coding then the techies will not able to see the database information?
Any idea of how to do the form of data encryption? This is my first time to build the real-life application.
Much appreciate for the helps.

Edited by gahhon

Share this post


Link to post
Share on other sites

Hard to tell just like this, it will greatly depends on HOW you gonna manage access limitation to your application.  Will it be by user name /  by license key number / by machine name / etc.  Then maybe after all you will need a database to manage all that.  SQLite allows basic multi-users access and some kind of encryption. 

Share this post


Link to post
Share on other sites
On 16/01/2019 at 4:45 AM, Nine said:

Hard to tell just like this, it will greatly depends on HOW you gonna manage access limitation to your application.  Will it be by user name /  by license key number / by machine name / etc.  Then maybe after all you will need a database to manage all that.  SQLite allows basic multi-users access and some kind of encryption. 

Yeah. Regardless of by username, license key, machine name, etc, I still need database to manage all that.
and is not to manage access limitation, is prevent the user copy and paste to another machine.

Example: If user copy and paste to another machine (Machine B), then Machine B cannot execute my application due to the application is only executable on Machine A.

By the way, SQLite is only can be use within the local network tho :/

Share this post


Link to post
Share on other sites
5 minutes ago, gahhon said:

Example: If user copy and paste to another machine (Machine B), then Machine B cannot execute my application due to the application is only executable on Machine A.

Well good luck with that !  I worked for Oracle many years and they were never able to implement a decent solution for such a thing.  They finally decided to rely on client honesty,  Unless you are ready to receive tons of service support calls, I would think about it in depth.  Imagine one sec that your client decide to upgrade all their computers ?  You cannot force your client to be down for that !  Would you ?

Doesn't mean that you shouldn't have some kind of a hidden log to monitor who is accessing your application tho...

Share this post


Link to post
Share on other sites
4 minutes ago, Nine said:

Well good luck with that !  I worked for Oracle many years and they were never able to implement a decent solution for such a thing.  They finally decided to rely on client honesty,  Unless you are ready to receive tons of service support calls, I would think about it in depth.  Imagine one sec that your client decide to upgrade all their computers ?  You cannot force your client to be down for that !  Would you ?

Doesn't mean that you shouldn't have some kind of a hidden log to monitor who is accessing your application tho...

Well. You make the points tho.

Even though that I can monitor who is accessing the application, but I still need to figure what kind of data to be stored and how to store them.

Usually, company would use database to store this monitor log, but as your recommendation I don't think SQLite is the option tho.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By topgundcp
      Hi, 
      This is my very first post in this forum and am also new with Autoit programming so be easy on me.
      Below is the code that I am trying to get the index of the item selected. No problem getting the text.
      Case $listEdition   ; handle of the list             local $index=0             $item=GUICTRLRead($listEdition)    ; This will return the text in the list             ; ==============   The loop below always fails  ==================             ; Meaning _GUICtrlListView_GetItemSelected($listEdition, $i) always return FALSE. WHY ???????              For $i = 0 To $editionArray[0] - 1   ; The content of the list in an array where editionArray[0] contains total count of items                 If _GUICtrlListView_GetItemSelected($listEdition, $i) Then                     $index = $i                     exitloop                 EndIf              Next              ;===================================================             ConsoleWrite( "Select Edition:     " & $item & "  index: " & $index & @CR) ....... Please look at the comments in the code & the pix attached.
      _GUICtrlListView_GetItemSelected($listEdition, $i) always returns FALSE.
      Another problem is on the list. It also populate  the total count of items from the Array. How can I skip this item from populating to the list ?.
      Please advise and thanks

    • By n0ktar
      is it possible to make a wall chams in rainbow six siege using autoit scripts? tell me please and how . 
    • By Rskm
      Hi, I am using excel as input media for my program. The excel file (i tried with .xls, .xlsx and .xlsm format) has inputs which the autoit script reads during the run and performs few calculations. Some times (not always), after the run, when i try to open the excel file manually, the file doesnt open at all in excel. see the screenshot attached. However, if the execute the autoit script, the scripts still reads the existing data from that excel and performs the calcs. I copied the excel file to another computer and there too, it doesnt open.  So, after this, i cannot edit the excel forever (if i need to change any inputs). It is only this particular file that got affected. other excel files works normal.  What could be the problem here.  please help as this is a new challenge for me during my program development. 

    • By TheAutomator
      Hi everyone!

      I'm using AutoIt for several years now and I really get the hang of it!
      I'm quite the curious OCD perfectionist kind of guy, so I can't help wondering..
      what would be the best way to program stuff for the compiler / interpreter / scripting engine?
      We're talking about the inner workings of the AutoIt's core here, and how to give it as less friction as possible but also take care of the machine running the script.
      For example,
      Imagine a script where we would constantly have to assign a Boolean value to a variable:
      ; A: local $bool = false $bool = true $bool = true $bool = false ; B: local $bool = false check(true) check(true) check(false) func check($b) if $bool = $b then return $bool = $b endfunc In this case, would it be better to just overwrite (A) the variable or first check if we really need to (B)?
      What would be best for the computers memory if it had to do this for a year non stop?
      Another example, imagine you're writing a function with an if statement.
      If you would look under the hood of AutoIt, what would be the best way to give your computer as less work / code nesting stack filling as possible:
      ; A: func decide($b_Input) if $b_Input then ;do something else ;do something else endif endfunc ; B: func decide($b_Input) if $b_Input then ;do something return endif ;do something else endfunc Last one for now:
      ; A: while 1 ; do stuff wend ; B: while true ; do stuff wend Isn't AutoIt taking an extra step in converting 1 to a Boolean in example (A)?
      Or is it the other way around and does the (B) way make AutoIt first convert a keyword (true or false) to a numerical value (0 or 1).
      I think this kinda detail stuff is quite interesting, makes me wonder how AutoIt converts and runs our code.
      What are your opinions on this topic?
      Any coders who know more about the inner workings of AutoIt?
      Any people like me who ask themselves similar questions (with examples)?

      Let me know! 😉
    • By v120
      Rapid Fire Mouse Hack Script
      *snip*
       
×
×
  • Create New...