Hi, I want to use a portion of a touchscreen (about 1 square inch at the bottom right) to trigger a command that says F7. Ideally the area would be shown as a transparent box, but it could be a large icon too. Where do I find the syntax to define the area?
Basically I want to use this to call up a routine (W-Wedge) that takes a weight from an electronic scale and inputs it to a POS application. I would also like to use it to set up keys across the bottom of the screen to call up various search fields, or use them to act like hot keys in a POS system.
I've looked through the help but can't quite find what I want.
Using a portion of a touchscreen as a button
Started by
AlbanJ
, Sep 29 2008 02:15 PM
1 reply to this topic
#1
-
Posted 29 September 2008 - 02:15 PM
AFAIK, AHK doesn't have any built-in support for touch-screens specifically. That being said, If your touch screen defaults to clicking the mouse when you touch it, you can easily make a little square GUI window that is transparent white (or tie-dye) and make it stay on top of other applications and catch mouseclicks and do things.
Gui, Color, 0xFFFFFF Gui, Font, w600 s40, Arial Gui, Add, Text, w110 h110 x0 y0 gClickethMe, Msg`nBox Gui, +AlwaysOnTop -Caption +LastFound Gui, Show, % "X" A_ScreenWidth - 120 " Y" A_ScreenHeight - 150 , HotButtonWindow WinSet, Transparent, 160 return ClickethMe: msgbox I dun been clicked`n`nclose this, then press [esc]`nto get rid of the box return GuiEsc: exitapp returnI'm no gui expert, so if it's ugly, I take no responsibility.
#2
-
Posted 29 September 2008 - 07:01 PM