AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

vertual keyboard

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
guysingleton
Guest





PostPosted: Sat Apr 23, 2005 5:43 am    Post subject: vertual keyboard Reply with quote

seams there isnt one that actualy works on win 98 xbox so i figured id try to write one that did its win98light runs off lynux anyways. i got the keys gui and send commands but when i go to press a key its going to switch focus how can i select a control on another window and when i hit a key it will keep the focus so it will type
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Sat Apr 23, 2005 11:20 am    Post subject: Reply with quote

If this virtual keyboard is a GUI window, you could try adding the following options to it as the first GUI command:

Gui +Disabled +AlwaysOnTop
Back to top
View user's profile Send private message Send e-mail
guysingleton
Guest





PostPosted: Sat Apr 23, 2005 9:39 pm    Post subject: vboard Reply with quote

ok ty but the problem is i go to hit keys and it wont send to the target window becouse im selecting the gui
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Sat Apr 23, 2005 11:40 pm    Post subject: Reply with quote

Although I haven't tried it on Win9x, the +disabled above should prevent the GUI window from becoming active. If you've already tried it and it failed to help, maybe someone can come up with an alternate solution.
Back to top
View user's profile Send private message Send e-mail
corrupt



Joined: 29 Dec 2004
Posts: 2436

PostPosted: Sun Apr 24, 2005 2:33 am    Post subject: Reply with quote

Here's a possible solution? and a possible starting point for a virtual keyboard script? ...

Code:
; Generated using SmartGUI Creator 3.4 (of course...)

Gui, Add, Button, x6 y10 w30 h20 gSendIt, Esc
Gui, Add, Button, x56 y60 w30 h20 gSendIt, Q
Gui, Add, Button, x56 y10 w30 h20 gSendIt, F1
Gui, Add, Button, x86 y10 w30 h20 gSendIt, F2
Gui, Add, Button, x116 y10 w30 h20 gSendIt, F3
Gui, Add, Button, x146 y10 w30 h20 gSendIt, F4
Gui, Add, Button, x6 y60 w50 h20 gSendIt, Tab
Gui, Add, Button, x196 y10 w30 h20 gSendIt, F5
Gui, Add, Button, x226 y10 w30 h20 gSendIt, F6
Gui, Add, Button, x256 y10 w30 h20 gSendIt, F7
Gui, Add, Button, x86 y60 w30 h20 gSendIt, W
Gui, Add, Button, x336 y10 w30 h20 gSendIt, F9
Gui, Add, Button, x366 y10 w30 h20 gSendIt, F10
Gui, Add, Button, x396 y10 w30 h20 gSendIt, F11
Gui, Add, Button, x426 y10 w30 h20 gSendIt, F12
Gui, Add, Button, x116 y60 w30 h20 gSendIt, E
Gui, Add, Button, x466 y10 w30 h20 gSendIt, Psc
Gui, Add, Button, x496 y10 w30 h20 gSendIt, Scr
Gui, Add, Button, x526 y10 w30 h20 gSendIt, Brk
Gui, Add, Button, x6 y40 w30 h20 gSendIt, ``
Gui, Add, Button, x36 y40 w30 h20 gSendIt, 1
Gui, Add, Button, x66 y40 w30 h20 gSendIt, 2
Gui, Add, Button, x96 y40 w30 h20 gSendIt, 3
Gui, Add, Button, x126 y40 w30 h20 gSendIt, 4
Gui, Add, Button, x156 y40 w30 h20 gSendIt, 5
Gui, Add, Button, x186 y40 w30 h20 gSendIt, 6
Gui, Add, Button, x216 y40 w30 h20 gSendIt, 7
Gui, Add, Button, x246 y40 w30 h20 gSendIt, 8
Gui, Add, Button, x276 y40 w30 h20 gSendIt, 9
Gui, Add, Button, x306 y40 w30 h20 gSendIt, 0
Gui, Add, Button, x336 y40 w30 h20 gSendIt, -
Gui, Add, Button, x366 y40 w30 h20 gSendIt, =
Gui, Add, Button, x396 y40 w30 h20 gSendIt, \
Gui, Add, Button, x146 y60 w30 h20 gSendIt, R
Gui, Add, Button, x466 y40 w30 h20 gSendIt, Ins
Gui, Add, Button, x496 y60 w30 h20 gSendIt, End
Gui, Add, Button, x526 y40 w30 h20 gSendIt, PU
Gui, Add, Button, x566 y40 w30 h20 gSendIt, Nlk
Gui, Add, Button, x596 y40 w30 h20 gSendIt, 1
Gui, Add, Button, x286 y10 w30 h20 gSendIt, F8
Gui, Add, Button, x626 y40 w30 h20 gSendIt, *
Gui, Add, Button, x656 y40 w30 h20 gSendIt, -
Gui, Add, Button, x526 y60 w30 h20 gSendIt, PD
Gui, Add, Button, x496 y40 w30 h20 gSendIt, Hm
Gui, Add, Button, x466 y60 w30 h20 gSendIt, Del
Gui, Add, Button, x426 y40 w30 h20 gSendIt, <-
Gui, Add, Button, x176 y60 w30 h20 gSendIt, T
Gui, Add, Button, x206 y60 w30 h20 gSendIt, Y
Gui, Add, Button, x236 y60 w30 h20 gSendIt, U
Gui, Add, Button, x266 y60 w30 h20 gSendIt, I
Gui, Add, Button, x296 y60 w30 h20 gSendIt, O
Gui, Add, Button, x326 y60 w30 h20 gSendIt, P
Gui, Add, Button, x356 y60 w30 h20 gSendIt, [
Gui, Add, Button, x386 y60 w30 h20 gSendIt, ]
Gui, Add, Button, x416 y60 w40 h60 gSendIt, Enter
Gui, Add, Button, x6 y80 w60 h20 gSendIt, Caps
Gui, Add, Button, x6 y100 w70 h20 gSendIt, Shift
Gui, Add, Button, x6 y120 w30 h20 gSendIt, Ctrl
Gui, Add, Button, x566 y60 w30 h20 gSendIt, 7
Gui, Add, Button, x596 y60 w30 h20 gSendIt, 8
Gui, Add, Button, x626 y60 w30 h20 gSendIt, 9
Gui, Add, Button, x656 y60 w30 h40 gSendIt, +
Gui, Add, Button, x656 y100 w30 h40 gSendIt, Ent
Gui, Add, Button, x566 y80 w30 h20 gSendIt, 4
Gui, Add, Button, x596 y80 w30 h20 gSendIt, 5
Gui, Add, Button, x626 y80 w30 h20 gSendIt, 6
Gui, Add, Button, x566 y100 w30 h20 gSendIt, 1
Gui, Add, Button, x596 y100 w30 h20 gSendIt, 2
Gui, Add, Button, x626 y100 w30 h20 gSendIt, 3
Gui, Add, Button, x566 y120 w60 h20 gSendIt, 0
Gui, Add, Button, x626 y120 w30 h20 gSendIt, .
Gui, Add, Button, x66 y80 w30 h20 gSendIt, A
Gui, Add, Button, x96 y80 w30 h20 gSendIt, S
Gui, Add, Button, x126 y80 w30 h20 gSendIt, D
Gui, Add, Button, x156 y80 w30 h20 gSendIt, F
Gui, Add, Button, x186 y80 w30 h20 gSendIt, G
Gui, Add, Button, x216 y80 w30 h20 gSendIt, H
Gui, Add, Button, x246 y80 w30 h20 gSendIt, J
Gui, Add, Button, x276 y80 w30 h20 gSendIt, K
Gui, Add, Button, x306 y80 w30 h20 gSendIt, L
Gui, Add, Button, x336 y80 w30 h20 gSendIt, `;
Gui, Add, Button, x366 y80 w30 h20 gSendIt, '
Gui, Add, Button, x76 y100 w30 h20 gSendIt, Z
Gui, Add, Button, x106 y100 w30 h20 gSendIt, X
Gui, Add, Button, x136 y100 w30 h20 gSendIt, C
Gui, Add, Button, x166 y100 w30 h20 gSendIt, V
Gui, Add, Button, x196 y100 w30 h20 gSendIt, B
Gui, Add, Button, x226 y100 w30 h20 gSendIt, N
Gui, Add, Button, x256 y100 w30 h20 gSendIt, M
Gui, Add, Button, x286 y100 w30 h20 gSendIt, `,
Gui, Add, Button, x316 y100 w30 h20 gSendIt, .
Gui, Add, Button, x346 y100 w30 h20 gSendIt, /
Gui, Add, Button, x36 y120 w30 h20 gSendIt, Lwn 
Gui, Add, Button, x66 y120 w30 h20 gSendIt, Alt
Gui, Add, Button, x336 y120 w30 h20 gSendIt, Alt
Gui, Add, Button, x376 y100 w40 h20 gSendIt, Shift
Gui, Add, Button, x366 y120 w30 h20 gSendIt, Win
Gui, Add, Button, x426 y120 w30 h20 gSendIt, Ctrl
Gui, Add, Button, x396 y120 w30 h20 gSendIt, Rwn
Gui, Add, Button, x96 y120 w240 h20 gSendIt, Space
Gui, Add, Button, x496 y100 w30 h20 gSendIt, ^
Gui, Add, Button, x466 y120 w30 h20 gSendIt, <
Gui, Add, Button, x526 y120 w30 h20 gSendIt, >
Gui, Add, Button, x496 y120 w30 h20 gSendIt, v
Gui, Show, h149 w694 , Virtual Keyboard
WinGet, ThisGUI, ID, Virtual Keyboard
WinSet, AlwaysOnTop, On, ahk_id %ThisGUI%
SetTimer, IdWin, 250
Return

IdWin:
WinGetActiveTitle, ActWin
WinGet, ActiveWin, ID, %ActWin%
if ActWin <> %LastWin%
{
  MouseGetPos,,, xLastWin, xLastControl, 1
  if xLastWin = %ActiveWin%
    if xLastWin <> %ThisGUI%
      if xLastControl <>
      {
        LastWin = %xLastWin%
        LastControl = %xLastControl%
      }
}
Return

SendIt:
; Many more exceptions, conditions, etc... need to be added for
; expected functionality. This is only a possible starting point...
 
if A_GuiControl = Space
  SendThis := " "
else if A_GuiControl = Enter
  SendThis = {ENTER}
else
  SendThis = %A_GuiControl%

ControlSend, %LastControl%, %SendThis%, ahk_id %LastWin%

Return

GuiClose:
ExitApp
Back to top
View user's profile Send private message Visit poster's website
guysingleton
Guest





PostPosted: Sun Apr 24, 2005 3:46 pm    Post subject: vboard Reply with quote

dam thanks for all the input
Back to top
guysingleton
Guest





PostPosted: Sun Apr 24, 2005 3:56 pm    Post subject: vboard Reply with quote

dam man works gr8 nice job on the gui also must took some time to get the x,y w,h right
Back to top
corrupt



Joined: 29 Dec 2004
Posts: 2436

PostPosted: Sun Apr 24, 2005 5:18 pm    Post subject: Re: vboard Reply with quote

guysingleton wrote:
dam man works gr8 nice job on the gui also must took some time to get the x,y w,h right

Thanks Smile. It took a few minutes but not very long compared to how long it would have taken without SmartGUI Creator.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group