1. You may have noticed that TabletPCReview looks a little different. That's because we've moved to a new, streamlined platform, XenForo. Have yourself a look around and engage with your peers. Tips for completing basic tasks are here. Should you encounter any bugs or issues, please post them in this thread, so that we can prioritize and fix them. And feel free to let us know your opinions of the new site.

My fix for keyboard popup in "Desktop" mode

Discussion in 'Samsung' started by swindmiller, Jan 13, 2013.

  1. swindmiller

    swindmiller Scribbler - Standard Member

    Messages:
    111
    Likes Received:
    1
    Trophy Points:
    31
    I have a new 700t and have been annoyed that in Metro when you click on a field to type something the keyboard pops up automatically but in the "Desktop" mode it does not.
    I found a AutoIT script from tj!2k7 on XDA-Developers forums that I modified and had converted to AutoHotKey (thanks to their forums), which is what I would rather use, and it seems to work. It basically monitors and when it sees the I-beam (cursor) in a text field it pops up the keyboard, it checks every 750ms. I had some issues while the script was running and when I went into Metro the keyboard would stay up. After some trial and error I found how to exclude Metro so the script did not work in Metro which it did not need to. I have also figured out how to have it auto-minimize the keyboard when you leave the text field.
    I am no programmer and just pieced this together but figured I would share it in case others may want it and also if some more experience Ahk users may be able to expand on it :D
    It does not work on everything, for example went to this site on IE on the Desktop and I got the keyboard to popup when I went to type the url in but when I went to login I did not get it. Again, hoping others can expand or help me expand on this :D

    All the links below are zipped. Extract the contents wherever you want just making sure the "img" folder stays with the EXE.
    Latest version that will auto-minimize the keyboard when you leave the textfield
    https://skydrive.live.com/redir?resid=586D1FA294807DA1!29515&authkey=!AD4zceisCMOCG5M

    This is the same as the latest version but does not check to see if the tablet is docked. Some people with the Series 7 needed this to run it.
    https://skydrive.live.com/redir?resid=586D1FA294807DA1!29517&authkey=!AJehbFhpms_q9SI

    Version that just pops the keyboard up (does not auto-minimize it)
    https://skydrive.live.com/redir?resid=586D1FA294807DA1!29519&authkey=!ADsiJLTZ48fjusU


    FAQ:
    If you want to close the script just go into task manager and end the task "Desktop Keyboard" or AutoHotKey (something like that) if you run it as the AHK.

    The systray icon can be used to toggle the script on and off by tapping it. A keyboard with a green circle is Enabled and a keyboard with a red circle is disabled. Thanks to lblb and gahfe for helping me with this!

    If you get the message "Error: Can't load icon". You have to have an "img" folder wherever this EXE is with the 2 .ico files in it. You can find the 2 .ico files here: https://skydrive.live.com/redir?resid=586D1FA294807DA1!29493&authkey=!ABa4CScN1M2UXCs

    I got rid of having separate copies for 32bit and 64bit as the 32bit runs fine on my 64bit machine. There is not that much to the script so I don't think there is an advantage to having it 64bit. If I am wrong or you have a different opinion please let me know...this is all new to me.

    If you want the source AHK files I put them all together here: https://skydrive.live.com/redir?resid=586D1FA294807DA1!29511&authkey=!AMwUNN4Sd2RIeFE please let me know if you make any changes as I would love to see them.

    Please let me know how it works for you!
    Last edited: Jan 17, 2013
    stegg likes this.
  2. gahfe

    gahfe Pen Pal - Newbie

    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    15
    Hi it works, I needed to change the tabtip path. I'm doing a similar program to, in this thread http://forum.tabletpcreview.com./windows-8/53956-trying-do-tabtip-caller-3.html, I used your "IfWinNotActive, ahk_class Windows.UI.Core.CoreWindow" to detect when modernUI is active, and works great

    have a couple of questions about your code:
    why is the line "RegRead, KBCount, HKLM, SYSTEM\CurrentControlSet\Services\kbdclass\Enum , Count"?
    and "IfWinNotActive, ahk_class OpusApp"?

    thanks for sharing!
  3. swindmiller

    swindmiller Scribbler - Standard Member

    Messages:
    111
    Likes Received:
    1
    Trophy Points:
    31
    Oh great, I am glad it works!! I saw your thread before but I think at the time you did not have a working version :) The "IfWinNotActive, ahk_class Windows.UI.Core.CoreWindow" was hard to find but makes a world of difference. In Metro it would pop the keyboard up with no way to minimize it, I am glad it helped you out. I am going to try yours again to see if it works better than mine...maybe together we can get it to work the way Microsoft should have done.
    As far as the 2 lines:
    The regread was already in there from the code I found elsewhere so I am not sure what it is for but think it may detect if the keyboard is already popped up.
    The second line I thought I removed :eek: I have Office 2013 and Word seems to want to have the keyboard up all the time so since 2013 already has touch enhancements and pops the keyboard up itself I just had it not run in Word. OpusApp is the name of the class for Word....no idea why that name though :D You can remove that line if you want.
  4. callmenoone

    callmenoone Pen Pal - Newbie

    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    5
    working great on chrome, firefox and photoshop for me, is there a way to edit so when you touch out of the field the keyboard pops back in sort of like android?
  5. kontrol1

    kontrol1 Scribbler - Standard Member

    Messages:
    137
    Likes Received:
    13
    Trophy Points:
    31
    wow this is exciting development. Props!
  6. swindmiller

    swindmiller Scribbler - Standard Member

    Messages:
    111
    Likes Received:
    1
    Trophy Points:
    31
    Was going to try that if this was working...but I am not a programmer so it will take me longer :)

    Thanks!
  7. swindmiller

    swindmiller Scribbler - Standard Member

    Messages:
    111
    Likes Received:
    1
    Trophy Points:
    31
  8. mnbrennan

    mnbrennan Pen Pal - Newbie

    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    15
    For some reason I'm being told that "This app can't run on your PC". Any idea why this might be?
  9. swindmiller

    swindmiller Scribbler - Standard Member

    Messages:
    111
    Likes Received:
    1
    Trophy Points:
    31
    Are you running just the EXE or did you download AutoHotKey?

    I can't remember exactly but when you get that message is there a link that says More Info or something like that. I get something like that on Win8 sometimes and when I click the link I get a button that says Run Anyway.
  10. docfreed

    docfreed Pen Pal - Newbie

    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    5
    So are you saying that the exe file also needs AutoHotKey installed - I thought that these compiled scripts were standalone?

  11. swindmiller

    swindmiller Scribbler - Standard Member

    Messages:
    111
    Likes Received:
    1
    Trophy Points:
    31
    No it does not. I was trying to see if he got the message using the EXE or just the script. The possible solution I gave would only work if the EXE was being used...I believe.
  12. mnbrennan

    mnbrennan Pen Pal - Newbie

    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    15
    Thanks for your help. I am using the exe from the first link. The full message I get is:

    "This app can't run on your PC

    To find a version for your PC, check with the software publisher"

    With a close button. It's almost as if Windows thinks it's Windows RT!!
  13. swindmiller

    swindmiller Scribbler - Standard Member

    Messages:
    111
    Likes Received:
    1
    Trophy Points:
    31
    Are you running Win8 64bit?
  14. mnbrennan

    mnbrennan Pen Pal - Newbie

    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    15
    No regular old Windows 8 32bit on the 500t
  15. swindmiller

    swindmiller Scribbler - Standard Member

    Messages:
    111
    Likes Received:
    1
    Trophy Points:
    31
    Ok I compiled it on my 700t which is 64bit. When I get home I will compile it for 32bit and put it up for you. I didn't even think of that being a problem...sorry :)
  16. mnbrennan

    mnbrennan Pen Pal - Newbie

    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    15
    Thanks SO much, really looking forward to using this
  17. swindmiller

    swindmiller Scribbler - Standard Member

    Messages:
    111
    Likes Received:
    1
    Trophy Points:
    31
  18. mnbrennan

    mnbrennan Pen Pal - Newbie

    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    15
  19. swindmiller

    swindmiller Scribbler - Standard Member

    Messages:
    111
    Likes Received:
    1
    Trophy Points:
    31
    Figured out how to get it to auto-close...kind of. Check out the first post and let me know if it works for you.
  20. greatg

    greatg Scribbler - Standard Member

    Messages:
    124
    Likes Received:
    17
    Trophy Points:
    31
    I'm got an S7 model running W8 64 bit. The script installed but does not seem to work when in desktop mode. Has anyone tried on an S7 with success?

    Thanks

Share This Page