AutoHotkey Community

It is currently May 27th, 2012, 11:04 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 159 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11  Next
Author Message
 Post subject:
PostPosted: April 13th, 2011, 8:52 am 
Offline

Joined: March 7th, 2011, 2:59 am
Posts: 151
Image Thanks! And sorry, I forgot to mention I have AHK Basic already installed. :oops: Image

Image :lol:


Report this post
Top
 Profile  
Reply with quote  
 Post subject: faststrings
PostPosted: April 14th, 2011, 1:34 am 
micahs, thank you very much for updating the script (and the undeserved credit you gave me). I still feel like an idiot, I have re-downloaded source.zip from the first post but I don't see the upgraded script. Is it in another area?

Thanks again for taking the time to fulfill my request.

max


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 14th, 2011, 1:55 am 
Offline

Joined: December 1st, 2006, 9:27 am
Posts: 460
You are right. I uploaded an old archive by mistake. I just uploaded a new version that actually has the changes. Try it again. Sorry about that!

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject: faststrings
PostPosted: April 14th, 2011, 2:22 am 
micahs, I re-downloaded the file but i still can not find the changes.

Thanks,


max


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 14th, 2011, 3:38 am 
Offline

Joined: December 1st, 2006, 9:27 am
Posts: 460
To misquote a famous movie, "What we have here is a failure to communicate."

Now that the stuff is actually uploaded, there is nothing you need to add or change for this to work. The "english-fancy-maxximon" layout is included, too. Just run kb_main.ahk and select your layout. There are no new files - the changes were to existing ahk files.

Look in the "res\layouts" folder and see if you have the "english-fancy-maxximon" xml file. If so, you have the right version of AHKOSK. Just run it and select the maxximon layout. You should be in business.

micahs

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject: faststrings
PostPosted: April 14th, 2011, 4:06 am 
It works perfectly, this is exactly what I needed, thank you.

One more question regarding the hotstrings:

are they loaded waiting for the key activation or do I have to activate the

the hotstrings some other way. When I type btw<sp> or btw<.> nothing happens. Is this the proper use?

Thanks very much again,

max


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 14th, 2011, 4:19 am 
Offline

Joined: December 1st, 2006, 9:27 am
Posts: 460
I just tested the hotstrings and they worked for me. Keep in mind that these hotstrings are not the standard hotstrings for AHK. These only work if you type them with the AHKOSK keyboard. I might change it so they work with either the physical or software keyboard, but for now they only work for the AHKOSK.

micahs

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 18th, 2011, 5:14 pm 
I'm still really new to AHK, and just want to use it to show and hide this OSK so that I can type with my Xbox controller when using it as a mouse. Could someone help a newbie out with a sample script that will just toggle show/hide for AHKOSK when I press a key combo?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 18th, 2011, 6:30 pm 
Offline

Joined: December 1st, 2006, 9:27 am
Posts: 460
Hey there! Welcome to AHK.

If you put this at the bottom of your kb_main.ahk file, it will toggle the display of the kb. It is set for alt-z, but you can change it to whatever you want. Check the docs for "Hotkey" and you'll see the key options. HTH
Code:
!z::
   what := !what
   If(what)
   {   SetTimer,dockTimer,-1
      leftclick("on")
   }
   Else
   {   Loop,Parse,guiList,`,   ;loop through guiList
      {   If(A_LoopField) and (A_LoopField != thumb_guiID)
         {   WinHide,ahk_id %A_LoopField%
            keyID_tmp := guiID%A_LoopField%_auxkey_ID   ;get the key id
            keyID%keyID_tmp%_sticky=0   ;reset the toggle for the button for this gui, if any
         }
      }
      leftclick("off")
      Gosub, dockStateChange
   }
Return


micahs

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 13th, 2011, 8:53 pm 
Offline

Joined: June 29th, 2010, 1:01 pm
Posts: 123
love this app! I am so jealous that I can't even modify it let alone write it.

I'm trying to tweak it a bit. in my app I don't have access to the tray or taskbar, and I don't even have a right click. I wanted to add a button to exit the AHKOSK application itself.

I can do it with <right click> on the AhkOSK icon and then click on <alt> F4, but as that solution requires a right click which I don't have.

so my general quesiton is:

1) how do I add a button and have the ability to control the action in the kb_main.ahk rather than have the button passed onto the active window?


Last edited by jleslie48 on October 14th, 2011, 2:19 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 13th, 2011, 9:25 pm 
Offline

Joined: June 29th, 2010, 1:01 pm
Posts: 123
ok, so I was able to add an exit button pretty easy.

to the kb_main.ahk by the dockme: label I added:

Code:
exitMe:
    Exitapp



and where Dockme is called, I added:

Code:
            Else If(outK_ID = %g%jlexitHwnd)   ;exit button clicked
            {   Gosub exitMe
            }
            Else If(outK_ID = %g%keyDockHwnd)   ;dock button clicked
            {   Gosub DockMe
            }


and in the layout xml file for the keyboard I changed/added:

Code:
      <row x="255" y="1">
         <key height="-4" keywidth="+10" function="jlexit">exit</key>
         <key height="-4" keywidth="+10" function="KeyDock">dock</key>


subtracting 10 form the row x value (it was 265) and addeing my exit button with the function jlexit.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 13th, 2011, 11:07 pm 
Offline

Joined: June 29th, 2010, 1:01 pm
Posts: 123
ok, my next issue is with the focus. I'm using a touchscreen, and I have to kinda sorta click in the textbox and drag my finger into the ahkosk area to get it to "light up" the only problem with that is, my typing is always one character behind.

In other words, after dragging to hi-light the AHKOSK, I then tap on the "a" key and nothing happens. I then tap on the "b" key, and the "a" is in the textbox. I then tap on the "c" button, and the "b" shows up. etc.

even if I mouse over with the mouse, the behavior is the same. If I use the mouse to click the AHKOSK letters, everything is perfect.

any ideas?

I should mention I'm using the regular version not the touchscreen.ahk
what does the touchscreen.ahk do?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 14th, 2011, 5:10 am 
Offline

Joined: December 1st, 2006, 9:27 am
Posts: 460
jleslie48 wrote:
love this app!
Thanks!

Your first two posts are a great example of why I wanted to make the layouts xml files. Good job of modifying the code and layout to do what you needed!

Your third post addresses a known issue. Touchscreens are the bane of AHKOSK. I do not have one, so I haven't been able to fix the issue. From when I did have access to a touchscreen, I know that (on some, at least) you can hover your finger over the screen without touching to move the cursor. Then, you can touch the screen to click when the cursor is where you want. I hope yours works this way so it's at least usable.

The touchscreen.ahk was a blind attempt (as I don't have one) to make AHKOSK touchscreen friendly. A user was testing it for me, but he ran out of patience (can't really blame him.) If you want, I can try a few ideas to make this more touchscreen friendly. Let me know.

micahs

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 14th, 2011, 1:00 pm 
Offline

Joined: June 29th, 2010, 1:01 pm
Posts: 123
Micahs wrote:

The touchscreen.ahk was a blind attempt (as I don't have one) to make AHKOSK touchscreen friendly. A user was testing it for me, but he ran out of patience (can't really blame him.) If you want, I can try a few ideas to make this more touchscreen friendly. Let me know.

micahs


I had a feeling tochscreen.ahk was not fully tested. That's why I stuck with the kb_main.ahk. I've got a work-around for the "mouse-over" issue, but now I have to debug the one character lag issue. Do you have any advise for debugging ahkosk? It's been 2 years since I last used AHK and I don't remember the "tricks". Is it just a matter of putting in Msgbox info statements, wait, that won't work, I have to click on the msgbox. I guess I could use that balloon thing on the bottom to watch stuff, or maybe a debug log file...

anyway, FWIW, here is the touchscreen I'm using:


http://www.ebay.com/itm/360396936074

works quite well


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 14th, 2011, 11:00 pm 
Offline

Joined: June 29th, 2010, 1:01 pm
Posts: 123
OK!!! I got the touchscreen to work. It was a bit of trial and terror though.

The issue had to do with the setting of the variable "outk" at line 409. (the
mousegetpos command) For whatever reason with the touchscreen, this
line fired setting the outk variable, but wouldn't enter the function
CheckforClick until the next iteration. from then on it was always one click
behind where it should be:



Image

I was able to determine this with careful usage of the Splashtexton
command to let me know when things were happening without moving
focus.


By adding a corrective step in Checkforclick to update the outk,
everything syncs back up. When using the mouse, this correction
doesn't change anything, so the fix works for both a mouse or a
touchscreen:



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 ... 7, 8, 9, 10, 11  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: iDrug and 60 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