send hotkey to mouseclick

This forum is for eXpress++ general support.
Post Reply
Message
Author
bwolfsohn
Posts: 655
Joined: Thu Jan 28, 2010 7:07 am
Location: Newberry, Florida USA
Contact:

send hotkey to mouseclick

#1 Post by bwolfsohn »

trying to click a button on a dialog..
oInternetButton is a DCPUSHBUTTON
F9 is working; wtf pops up..

but, the button is not clicked..

suggestions ??

DCHOTKEY xbeK_F9 ;
ACTION {||(wtf 'here'). PostAppEvent(xbeM_LbClick,,,oInternetButton)} ;
GROUP 'HOTKEYS'
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
breadmanbrian@bsky.social
http://www.breadmanrises.com
FB travel group: The Breadman Rises

Wolfgang Ciriack
Posts: 494
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: send hotkey to mouseclick

#2 Post by Wolfgang Ciriack »

Try it with PostAppEvent( xbeP_Activate,,, oInternetButton ) .
_______________________
Best Regards
Wolfgang

bwolfsohn
Posts: 655
Joined: Thu Jan 28, 2010 7:07 am
Location: Newberry, Florida USA
Contact:

Re: send hotkey to mouseclick

#3 Post by bwolfsohn »

Wolfgang Ciriack wrote:Try it with PostAppEvent( xbeP_Activate,,, oInternetButton ) .
ding! ding! ding! We have a winner!!!

I was in the right church., just the wrong pew..

thanks so much..
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
breadmanbrian@bsky.social
http://www.breadmanrises.com
FB travel group: The Breadman Rises

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: send hotkey to mouseclick

#4 Post by c-tec »

Hi,
I use the ACCELKEY clause, this works for me
regards
Rudolf
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

User avatar
Tom
Posts: 1296
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: send hotkey to mouseclick

#5 Post by Tom »

You don't need to send events to a pushbutton if you want the button's action to be initiated. Just do this:

Code: Select all

Eval(oButton:Activate)
This will evaluate the action codeblock of the button, as if the button was clicked.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

Post Reply