IMG Home PageIMG ProductsProduct DownloadsOrdering InformationTechnical Support and Frequently Asked QuestionsDeveloper's Corner and UtilitiesAbout IMG
CustomersIMG ResellersMedia InformationIMG Events / Trade ShowsUseful LinksIMG Contact InformationIMG Information / Policies

IMG KnowledgeBase & Frequently Asked Questions

IMG Logo



Search FAQ's

Keyword Keyword Search Help
Category Type Product Version

Searching for ID: QU2019120947

QU2019120947
Can I make a button with a Key Action of a mouse left-click?

Yes, there are mouse options available in the Windows platform. (If these actions are desired in a different platform, please contact IMG Technical Support). These have been available since 2.16, and are included in the current 2.20 version.

PLEASE NOTE: There are a few important things to consider when looking at this as a solution to a problem.

1) This is not a recommended solution to any problem that views a button action generating a mouse click event as the solution. Why? Because to generate this action, a user need to generate a touch/mouse click event to select the button. This means that the mouse cursor is currently at the button location, and not where you want the mouse click to occur. Furthermore, all well written Windows applications should provide a keyboard interface to do required actions within the application. This is why the recommended solution is to use the keyboard interface and generate the appropriate keyboard sequence to accomplish the task desired.

2) There can be serious resolution issues - to truly generate the mouse click at a different location, you need to move the mouse cursor, then generate the mouse click. If the system changes, or you run on a different type of system, and the screen resolution is different, your well crafted solution will be clicking in the wrong spot. This is why the recommended solution is to use the keyboard interface and generate the appropriate keyboard sequence to accomplish the task desired.

3) Shift-F10 ( Key Action: [Shift-Down][F10][Shift-Up] ) can open the context menu (e.g. right-click) on the currently selected (keyboard focus) item. Alt-Esc ( Key Action: [Alt-Down][Esc][Alt-Up] ) will scroll through currently opened applications. Ctrl-A ( [Ctrl-Down]a[Ctrl-Up] )will select all. Understanding Windows built-in keyboard short-cuts and specific Application keyboard shortcuts highly recommended in solving actions where you think you need a mouse click.

With clear understanding of these issues, there can be specific situations where mouse actions are the only way to accomplish a task, and to that end, for fixed/controlled systems, these features were added. For a full list of Key Action macro sequences to geneerate mouse events, see this tech item: http://www.imgpresents.com/imgfaq.htm?keyword=PU2005120236 (Refer only to the Usage notes)

Some typical Key Action macros might be:

[Mouse:MOVE=142,222][Mouse:LCLICK]

[Mouse:MOVE=1023,421][Mouse:RCLICK]

Category: UsingType: Question/Answer Product: Build-A-BoardVersion: 2.20

Notes:



IMG Home PageIMG ProductsProduct DownloadsOrdering InformationTechnical Support and Frequently Asked QuestionsDeveloper's Corner and UtilitiesAbout IMG
CustomersIMG ResellersMedia InformationIMG Events / Trade ShowsUseful LinksIMG Contact InformationIMG Information / Policies


As seen in ...

Yahoo!finance