Hello I am pretty new in Ahk community but I have been using Ahk for writing low level scripts for couple of months(still a beginner):
I don't understand many things about Ahk.
Since I am unable to create a script this time on my own I am trying to get help from the Ahk community.
Problem: I am an OneNote user, which I use on 2in1 laptop(Lenovo flex 5 14ARE05). The problem which I mostly encounter is that while using OneNote on normal mode
I got so many options which take up half space of my screen but only this way of using OneNote I am able to use Virtual Touch Keyboard, Touchpad icon which are located in notification area.
And if I use OneNote in fullscreen mode which I often use than I am unable to use Vitual Touch Keyboard, Touchpad or to do so I have to swipe up the bottom and then touch the icon in notification area and turn of windows start from the Virtual Touch Keyboard and Touchpad.
What I am trying to create: I was trying to create an AutoHotkey script which on pressing numpad 8 shows(open) Virtual Touch Keyboard and pressing numpad 8 again close Virtual Touch Keyboard.
Similarly;
On pressing numpad 9 shows(open) Virtual Touchpad and pressing numpad 9 again close Virtual Touchpad
No matter what application I am using in fullscreen mode.
Also I am using wireless Numpad like these:https://p3-ofp.static.pub/fes/cms/2021/10/19/42mxcv6qjjyzc9bv4hxlhxe6bfnr44358979.png
Thank you for giving a platform to seek help and thanks for all those who see my message.
Open/Close Virtual Touch Keyboard and Virtual Touchpad using shortcut
Re: Open/Close Virtual Touch Keyboard and Virtual Touchpad using shortcut
i dont have all your anwsers but maybe a place to start with one way to do a toggle i know (there is others)
Code: Select all
YourHotkey::
TimesPressed++
if TimesPressed= 1
{
; open virtual keyboard code here
return
}
else if TimesPressed= 2
{
; close virtual keyboard code here
TimesPressed= 0
return
}
Re: Open/Close Virtual Touch Keyboard and Virtual Touchpad using shortcut
Thanks for replying. I already have done that much code writing but I am stuck on how to actually write a function which can open/close the Virtual Touch Keyboard and Virtual Touchpad.
Re: Open/Close Virtual Touch Keyboard and Virtual Touchpad using shortcut
i dont know your program, if its a part of windows or some other exe having said that the run command could help you out i am guesing and process close could close something or if the program has a hotkey for that you could send that. if its an exe with a trayicon process close will leave a dead icon but there is a solution for that
Re: Open/Close Virtual Touch Keyboard and Virtual Touchpad using shortcut
Both programs are the part of windows and can be found in windows location. The only catch one is in the form of executable and other one is somewhere in system root in dll form.
Virtual Touch Keyboard Location: C:\Program Files\Common Files\microsoft shared\ink\TabTip.exe
Where as Virtual Touchpad Location: "%SystemRoot%\system32\LaunchWinApp.exe" "ms-virtualtouchpad:"
Virtual Touch Keyboard Location: C:\Program Files\Common Files\microsoft shared\ink\TabTip.exe
Where as Virtual Touchpad Location: "%SystemRoot%\system32\LaunchWinApp.exe" "ms-virtualtouchpad:"
Re: Open/Close Virtual Touch Keyboard and Virtual Touchpad using shortcut
this wil open tabtip but for some reason it only works once on my end coz when i close it with the x (exit) on tabtip it wont startup again i dont know what that is about. as to the other i dont know how to do that sorry
Code: Select all
run, TabTip
Re: Open/Close Virtual Touch Keyboard and Virtual Touchpad using shortcut
There has to be a work around.
Who is online
Users browsing this forum: AlFlo and 132 guests