Coder Social home page Coder Social logo

Comments (3)

duane-j-wagner avatar duane-j-wagner commented on September 14, 2024

Have you tried
await context.workbook.worksheets.onActivated.add( this.onSheetActivated);
and onSheetDeactivated?

from office-js.

shanshanzheng-dev avatar shanshanzheng-dev commented on September 14, 2024

Hi @duane-j-wagner Thanks for your help. @TarviksTheDev could you try this? we'll also take a look and report back if we have a suggestion for you.

from office-js.

TarviksTheDev avatar TarviksTheDev commented on September 14, 2024

Dear @duane-j-wagner and @shanshanzheng-dev ,

Thank you for your valuable time and assistance with my previous query regarding the timer functionality in my Excel add-in.

While I've successfully implemented the suggested solution using context.workbook.worksheets.onActivated.add( this.onSheetActivated); and onSheetDeactivated, I've encountered limitations in its effectiveness. The timer currently pauses only when switching between sheets within the same Excel workbook, but I need it to pause when the Excel window is minimized or when the user transitions to another application or tab.

I'm seeking alternative approaches or technologies that can accurately detect Excel's inactivity. I'm open to exploring different frameworks or solutions, as long as they provide a robust and reliable method for pausing the timer in these scenarios.

Thank you again for your continued support and expertise. I look forward to your insights and potential solutions.

from office-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.