• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Clicking a button using a second button to use the code that is behind it.

Community Beginner ,
May 18, 2022 May 18, 2022

Copy link to clipboard

Copied

Here is an image of software that I am writing (as a teacher) to generate questions for my students.

The button next to the questions has been pressed to show the question. It is coded with Javascript in Animate. 

Is there a way that I can code the START button at the top to simulate the pressing of the question button. In the end what I am aiming to do is to click the start button, then one by one the buttons down the side are clicked after a time delay, by only pressing the start button

I just want to have to avoid recoding if possible and just automate the clicking of the buttons so that they questions are revealed with a time delay.

If any one can help with this pretty vague request, it would be much appreciated.

Thank you.Capture 1.jpg

Views

110

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 19, 2022 May 19, 2022

Copy link to clipboard

Copied

Without understanding the code, I can only suggest a possible solution. For instance, isolating the function that is called when the question button is pressed and then calling that function after the delay. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 19, 2022 May 19, 2022

Copy link to clipboard

Copied

Thank you - I will have a go at that over the weekend and see what I can do. I can get the code to you if i can't sort it our myself. Thanks for your help.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 19, 2022 May 19, 2022

Copy link to clipboard

Copied

you should be able to do that with a couple if statements. The other option is you have 2 buttons that sits on top of each other and you just make them go away by the visibility. This way when you click a button it would disappear and a new button would appear and vice-versa. 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 19, 2022 May 19, 2022

Copy link to clipboard

Copied

LATEST

I'll follow these up as well as the previous suggestion - looks like I have a path forward. Thanks for taking the time to reply. I will let you know how I go.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines