Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6627779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:03:15+00:00 2026-05-25T22:03:15+00:00

Long story short – In order to make something work correctly, I need to

  • 0

Long story short – In order to make something work correctly, I need to simulate the user clicking on an image which doubles as a button and calls yet another function. I’ve tried simply calling the function, but it didn’t work… for some reason, it only seems to work when the user clicks the button. Is it possible to 1) simulate clicks and 2) make the application think that the user clicks on a specific image?

Full story – My application (a scheduling application) allows the user to replace one student with another. In order to do this, the user can bring up a list of available students. Once the list is presented, and the user selects a new students name, that new name is supposed to replace the old name. Instead, the text box simply goes blank. Now, if I click a image (which acts like a button) that increases the length of a that scheduled activity by one day, the name appears for whatever reason. I’ve tried simply calling the function that increases the number of days, but it doesn’t work. For some reason, it would appear that only the user clicking the image (button) seems to make the new user name show up in the text box. This is why I would like to simulate the user clicking the “increase by 1 day” image.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T22:03:15+00:00Added an answer on May 25, 2026 at 10:03 pm

    Yes, manually create and dispatch the click event.

    Something along the lines of this:

    var clickEvent : MouseEvent = new MouseEvent(MouseEvent.CLICK)
    // set other relevant properties on the click event
    myButton.dispatchEvent(clickEvent);
    

    However, I suspect this is not the ‘best’ solution, but more of a work around. It sounds like there is some other problem with your code and how the text is put into the display when it is changed. Without seeing more code or knowing more about your apps layout, it’s hard to say for sure.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Long story short, client's hosting is using php 5.2.5 and i desperately need to
To make a long story short I have to use processing in a class
Long story short I need to defun ts_div and allow it to be a
Long story short, I need to get up to speed with Joomla fast .
Long story short... This doesnt work: Process p = new Process(); p.StartInfo.FileName = @External\PsExec.exe;
Long story short, I need to get the total scroll size for a text
Long story short, I ended up deleting the root user from PHPMyAdmin in EasyPHP.
Long story short, I have a LaunchActivity which is always called by LAUNCHER (i.e.
Long story short, I want to call format with arbitrarily named arguments, which will
Long story short, each time a user views a resource, an Event model object

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.