AutoHotkey Community

It is currently May 26th, 2012, 2:15 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 159 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8, 9, 10, 11  Next
Author Message
 Post subject:
PostPosted: December 11th, 2008, 4:17 am 
Offline

Joined: December 1st, 2006, 9:27 am
Posts: 460
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.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 13th, 2008, 1:15 pm 
Offline

Joined: December 1st, 2006, 9:27 am
Posts: 460
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.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 14th, 2008, 4:11 am 
Offline

Joined: November 6th, 2008, 7:43 pm
Posts: 26
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 14th, 2008, 11:12 pm 
Offline

Joined: December 1st, 2006, 9:27 am
Posts: 460
No amount of clicking with regular mouse or touch screen? What OS are you using?

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 15th, 2008, 7:46 am 
Offline

Joined: November 6th, 2008, 7:43 pm
Posts: 26
Vista SP1


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 24th, 2008, 6:17 am 
Offline

Joined: December 1st, 2006, 9:27 am
Posts: 460
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.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
PostPosted: January 13th, 2009, 6:24 am 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 15th, 2009, 5:45 am 
Offline

Joined: December 1st, 2006, 9:27 am
Posts: 460
Hi Prasanna,
Do you mean that you want this functionality in a keyboard written in c++, or using ahk?

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject: On Screen Keyboard.
PostPosted: January 15th, 2009, 10:36 am 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 16th, 2009, 7:58 am 
Offline

Joined: December 1st, 2006, 9:27 am
Posts: 460
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!

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 22nd, 2009, 5:43 am 
Offline

Joined: May 16th, 2008, 8:09 pm
Posts: 12
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 22nd, 2009, 9:18 am 
Offline

Joined: December 1st, 2006, 9:27 am
Posts: 460
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.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Thanks!
PostPosted: February 26th, 2009, 7:02 pm 
Offline

Joined: May 16th, 2008, 8:09 pm
Posts: 12
Cool. I'm using it for entering medical information, specifically commonly used phrases/abbreviations. I use a tablet PC btw.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 26th, 2009, 8:26 pm 
Online
User avatar

Joined: May 5th, 2007, 7:24 pm
Posts: 1240
Location: Seville, Spain
How did you get that toolbar in SciTE shown in the screenshot?

_________________
fincs
Highly recommended: AutoHotkey_L (see why) (all my code snippets require it)
Formal request to polyethene - I support the unity of the AutoHotkey community
Get SciTE4AutoHotkey v3.0.00 (Release Candidate)
[My project list]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 26th, 2009, 10:10 pm 
Offline

Joined: December 1st, 2006, 9:27 am
Posts: 460
@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! :oops:

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 159 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8, 9, 10, 11  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 17 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group