AHQuickAction3D Button Press in code

Comalco

Member
Licensed User
Longtime User
I am playing with the AHQuickAction3D library.
I have a simple 3D menu sitting under a "Menu" button.
I would like the 3D menu to time out and close if nothing has been selected.

So I have initialised a timer for 5 secs, and on the Timer_Tick event I would like to close the 3D menu, but I am assuming I have to emulate a button press in code (as though I had touched the Menu button to close the 3D menu......

I have browsed through the forum but haven't seen an example.......

How do you emulate a button press in code?
 

Comalco

Member
Licensed User
Longtime User
Closing the Menu

From reading the forums......activity.finish closes the menu, and the app.
Selecting one of the menu items also closes the menu, so if one of my selections was a "Exit", how can I select it and generate a 'button press' from within my code??

There doesnt seem to be a close method in this ??
 
Upvote 0

JonPM

Well-Known Member
Licensed User
Longtime User
Sub Button1_Click
... Do whatever here
End Sub

Is that what you're asking?
 
Upvote 0

Comalco

Member
Licensed User
Longtime User
Sorry, no, I want to simulate a button press

Sorry so, as per my first post.......
If the menu is selected and it opens, but no selection is made, I want to shut it. But with no close method (that I can see) the only way to do this would seem to be to run a timer, and when it times you simulate a button press in code to shut it down.

I am not generating a click event because I am not selecting anything...this is what I want to use to shut the menu as a timeout.....otherwise is stays open indefinitely waiting for a button press..............
 
Upvote 0

shasunder

Member
Licensed User
Longtime User
Comalco, did you find out how to simulate a button press in AHQuickAction3D after some duration? please let me know.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…