| View previous topic :: View next topic |
| Author |
Message |
Micahs
Joined: 01 Dec 2006 Posts: 413
|
Posted: Thu Dec 11, 2008 4:17 am Post subject: |
|
|
Yeah, the other touch screen user had a similar issue. My TS version solved that, but I never got back in touch with them so I could not really test it correctly.
The solution was to have the remap on all the time, and pass through a normal click if the mouse was not over the kb. Like I said, I haven't been able to do extensive testing, so it's nice to have a guinea pig...I mean a willing subject.
I will review the code and get back with you! Thanks. _________________
 |
|
| Back to top |
|
 |
Micahs
Joined: 01 Dec 2006 Posts: 413
|
Posted: Sat Dec 13, 2008 1:15 pm Post subject: |
|
|
All right. Here is the latest version (1.7.7) forked to Touch Screen Friendlyness for jtuttle: ahkosk touchscreen binary Let me know how/if this works for you.
I touched up your LOLWUT layout. What does LOLWUT mean, anyway?
The first post has been updated with the latest regular version. Major changes are: Not Much (tm)
Probably the coolest thing is the blob autosize stuff. When creating a background blob, just specify "*" for the width or height and the thing will be sized to fit in the gui. Add or subtract buttons, change the button width or height, and the blob will autosize to match.
There is better stuff coming, like:
- Resizable blobs - they change size with the gui dynamically.
- Scalable keyboards - stretch it to whatever size you want. Proportionate scale based on screen size - it will look the same on any resolution.
- Blob height or width anchored to a certain button or row. This will help with the scalable keyboards.
- Button or row placement anchored to a certain button or row. Same as above.
I plan to write up a general information/howto on the blob usage at some point. _________________
 |
|
| Back to top |
|
 |
jtuttle
Joined: 06 Nov 2008 Posts: 26
|
Posted: Sun Dec 14, 2008 4:11 am Post subject: |
|
|
| I tried that binary and all the layouts are completely inert. They show up, and fade in and out with mouse focus, but no amount of clicking will make them do anything. I can't drag them around, even. The lolwut layout looks perfect, though! LOLWUT was just something random I put in to differentiate the layout from the original stringbean. |
|
| Back to top |
|
 |
Micahs
Joined: 01 Dec 2006 Posts: 413
|
Posted: Sun Dec 14, 2008 11:12 pm Post subject: |
|
|
No amount of clicking with regular mouse or touch screen? What OS are you using? _________________
 |
|
| Back to top |
|
 |
jtuttle
Joined: 06 Nov 2008 Posts: 26
|
Posted: Mon Dec 15, 2008 7:46 am Post subject: |
|
|
| Vista SP1 |
|
| Back to top |
|
 |
Micahs
Joined: 01 Dec 2006 Posts: 413
|
Posted: Wed Dec 24, 2008 6:17 am Post subject: |
|
|
Sorry for the delay.
No amount of clicking with the mouse or touchscreen? If you use the mouse (or touchpad if on a laptop) does it work?
I don't have Vista, but my dad does. I will do some testing. I just thought of something. I have a cheap graphics tablet, a Jampad, that might behave similarly to a touchscreen. I will give that a try. _________________
 |
|
| Back to top |
|
 |
snprani Guest
|
Posted: Tue Jan 13, 2009 6:24 am Post subject: Please help me in getting this stealing the focus of window |
|
|
Hi all,
I am new to this scripting language. I know only VC++/MFC. I need to get the same functionality for my keyboard i.e it should be inactive and without focus.
Can anybody help me in understanding this code or please help to get that feature.
THanks
Prasanna. |
|
| Back to top |
|
 |
Micahs
Joined: 01 Dec 2006 Posts: 413
|
Posted: Thu Jan 15, 2009 5:45 am Post subject: |
|
|
Hi Prasanna,
Do you mean that you want this functionality in a keyboard written in c++, or using ahk? _________________
 |
|
| Back to top |
|
 |
snprani Guest
|
Posted: Thu Jan 15, 2009 10:36 am Post subject: On Screen Keyboard. |
|
|
I need that in C++. If you explain me how you got it in AHK , I may try it using VC++/MFC. I feel i can use those Win32 APIs to get that. Can you please share me your ideas how you got focusless and inactive window
Thanks a lot for your reply
Prasanna. |
|
| Back to top |
|
 |
Micahs
Joined: 01 Dec 2006 Posts: 413
|
Posted: Fri Jan 16, 2009 7:58 am Post subject: |
|
|
Briefly, when the mouse is over one of our guis, the left-click is remapped to a virtual key. When this happens, the program determines where the "click" happened and acts accordingly. All this without stealing focus because the gui never actually never receives a click event.
This module converts any gui to zero-focus. It has limitations, though. If you are only making a keyboard with buttons but no controls that have scrollbars, this will work well. I was thinking of converting ahkosk to using the module, but haven't gotten around to it -- I have more work to do on it yet before it is ready for scrollable controls.
You might look at my code and the source of AHK to get the C++ functions and API calls that are used. Specifically: hotkey creation and use, mousegetpos, and controlsend for starters. In my code, see *LButton, *LButton up, CheckForClick. The zero-focus module is more stripped down and might be better for your purposes. Have fun! _________________
 |
|
| Back to top |
|
 |
yehster
Joined: 16 May 2008 Posts: 12
|
Posted: Sun Feb 22, 2009 5:43 am Post subject: |
|
|
Is there a way to make a key which types out a phrase? kind of like fast strings, but I'd like it to be accessible through a single key.
i.e. I'd like a button that typed "Hello" with one press. |
|
| Back to top |
|
 |
Micahs
Joined: 01 Dec 2006 Posts: 413
|
Posted: Sun Feb 22, 2009 9:18 am Post subject: |
|
|
There is now. The latest version has it.
To have the key caption be the phrase sent, use:
| Code: | | <key function="KeyPhrase">Hello</key> |
To have a longer phrase than can be displayed in the caption, use:
| Code: | | <key function="KeyPhrase" phrase="Hello, how are you?">Hello</key> |
This will send a phrase instead of just a single character. Any questions, give a holler. _________________
 |
|
| Back to top |
|
 |
yehster
Joined: 16 May 2008 Posts: 12
|
Posted: Thu Feb 26, 2009 7:02 pm Post subject: Thanks! |
|
|
| Cool. I'm using it for entering medical information, specifically commonly used phrases/abbreviations. I use a tablet PC btw. |
|
| Back to top |
|
 |
fincs
Joined: 05 May 2007 Posts: 474 Location: Seville, Spain
|
|
| Back to top |
|
 |
Micahs
Joined: 01 Dec 2006 Posts: 413
|
Posted: Thu Feb 26, 2009 10:10 pm Post subject: |
|
|
@yehster
Thanks for the suggestion. When you say you are using a tablet pc, do you mean that you're using the touchscreen with AHKOSK?
@fincs
That is something that I've been working on for a rediculously long time. It is yet another script for displaying the subs and functions in the working script. It always hangs out displaying the sub or func where the cursor is, updating as the cursor moves. The dropdownlist has all of the subs and funcs and you click them to jump to them.
It also has many other useful things. I like it a lot but, of course, I'm biased. It's working good, except for some annoying issues (it sometimes eats the first click when you try to do something.) It too, is zero-focus, but uses my original technique. I planned to release it when I was happy with it. Maybe I should release an alpha. Unfortunately, this only works with SciTE v1.71 and below. I wanted to upgrade it to use newer versions, but haven't figured out the SciTE API yet.
I've grown used to it and am pretty much lost without it!  _________________
 |
|
| Back to top |
|
 |
|