x11 - simulate a button click - x11

I have a window id and I want to simulate a button click on that window. I can do that using XSendEvent function, but then I need to know a button position. Does exists other way to do this ( for example using a button title ) ?

Related

javafx : ui toggling for buton clicks

I have some button (JFoenix buttons) in my JavaFX program which is in left column below :
I want to look them like clicked once they are clicked and toggle if others are clicked. How do I do this?

View another window during slideshow

I'm trying to view a window while working with the slideshow, but on clicking on slideshow again other window gets minimized. So, How to view another window during slideshow without the slideshow being unaffected?
In powerpoint, go to "Slide Show" (or just "Show" depending on your version) at the top menu bar.
Then click "Set Up Show....." (or just "Set Up" depending on your version)
Under Show type, select "Browsed by an individual (window)" and click OK.
This will put it into a window so you can go back and fourth like you are talking about.

Image changing while pressed

I have 2 images for a JComponent, one of an unpressed button, and one of a pressed button. When I click the button, I want the image to change for the pressed one, but only while I am clicking. Which means whenever I release the mouse button, the image goes back to the unepressed button.
How can I do this?
Using a JButton, set the standard and pressed icons.

Toolbar Button and SendMessage() Function Difficulties

I want to make a program (program 1) that will click a toolbar button on another program (program 2). I have the handle of the window the toolbar button is in and I have its button ID. At first I thought I could use the function:
SendMessage (buttonHandle, BN_CLICK, 0, 0);
but I have no clue as to how to get the handle of the tool bar button. I tried to use the function:
GetDlgItem ( windowHandle, buttonID);
but it doesn't work. I also have been told that since it's a toolbar button, there is no specific handle for it... kind of odd, not sure how that works...
Question 1:: is there a handle for toolbar buttons and how may I get it?
Question 2 (MAIN AND MOST IMPORTANT QUESTION!):: what function can I use to click on a toolbar button? (please mention the parameters for the function too)
Is there a handle for toolbar buttons and how may I get it?
No. Toolbar buttons are non-windowed. They do not have window handles.
What function can I use to click on a toolbar button?
You use UI Automation to automate other applications.

How to change button on button click in blackberry

I want to change button on same button click how i can do that in blackberry. i used frame layout in android for overlay two field one after above so how i can change field on same click in blackberry?
like e.g i want to kept two buttons on same position when i click btn1 btn2 should display and when i click btn2 btn1 should display
Hay i done with replace method thanks for all of u for reply
i used
vfm.replace(oldField, newField);
to swap
Changing part of the screen in when button clicks in Blackberry //here is the link

Resources