Automatically Show Touch Keyboard in MS Access - ms-access

i want to show automatically the Touch Keyboard in MS access when i click on a textbox, wondering why this is not working, is there maybe some property? I also wondering why this is not showing up automatically if i click in a excel cell...
This Touch Keyboard:

ACCESS VBA :
You have to write two lines of VB code
Call Shell("osk.exe", 1)
MyControl.SetFocus
or something like that, where my control is the name of the testbox, which should be activated.
Try this WINDOWS 7:
Start => Control Panel => Ease of access => Ease of Access Center
Under Explore all settings, select Use the computer without a mouse or keyboard.
Ease of Access Center
Under Type using a pointing device, select Use On-screen Keyboard. Click Apply, then OK
Use On-screen Keyboard
Select Change Administrative settings from the column on the left.
Change Administrative settings
Select Apply all settings to the logon desktop. Click Apply, then OK.
Try this WINDOWS 10
Windows 10 does a fairly good job producing the onscreen keyboard when needed, particularly when you've switched to tablet mode. However, getting the onscreen keyboard to pop-up automatically consistently when in desktop mode is difficult.
The keyboard icon in the Windows 10 System Tray helps. You can tap or click this to expose the onscreen keyboard.
But, you can also improve how the onscreen keyboard reacts through the Windows 10 settings.
To do this:
Open All Settings, and then go to Devices.
One the left-hand side of the Devices screen, select Typing and then scroll on the right-hand side until you locate Automatically show the touch keyboard in the windowed apps when there's no keyboard attached to your device
Turn this option to "ON"

Try this:
Option Explicit
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Sub RunOsk_on64Bit()
Const SW_SHOWNORMAL = 1
On Error Resume Next
call ShellExecute(0, "open", "C:\windows\system32\osk.exe", "", "", SW_SHOWNORMAL)
End Sub

Related

Minimize Access Application then Maximize it and set focus back to Access Application

I need to do what i describe in Title but when the minimizing with DoCmd.Minimize seems to work as the access window disappears. But then when i try to maximize it back with DoCmd.Maximize, it doesn't give focus back to access window.
PS : i use theses methods in a function called by a acDialog form.
Did you try setting focus on your control/form?
DoCmd.Maximize
Form_MyForm!MyControl.SetFocus

Close chrome depending on link in address bar

Let me start with i have very little scripting / programming knowledge :)
My problem is, I have a web page for dashboard in call center that runs off projectors. The webpage is on internal web server.
The web page times out randomly and creates error.
I need to close Chrome (or Firefox) when a web page address changes to error page eg: from localsite.local/page to localsite.local/error
I used Auto-IT- Au3Record and SciTe to record mouse clicks of when the page times out.
This works fine on some PC's but not all. Is there a generic script I could run,
so I don't have to record mouse clicks on all PC's.
current working script
#Region v3.3.9.5 KeyboardLayout=00000809
Func _Au3RecordSetup()
Opt('WinWaitDelay',100)
Opt('WinDetectHiddenText',1)
Opt('MouseCoordMode',0)
Local $aResult = DllCall('User32.dll', 'int', 'GetKeyboardLayoutNameW', 'wstr', '')
If $aResult[1] <> '00000809' Then
MsgBox(64, 'Warning', 'Recording has been done under a different Keyboard layout' & #CRLF & '(00000809->' & $aResult[1] & ')')
EndIf
EndFunc
Func _WinWaitActivate($title,$text,$timeout=0)
WinWait($title,$text,$timeout)
If Not WinActive($title,$text) Then WinActivate($title,$text)
WinWaitActive($title,$text,$timeout)
EndFunc
_AU3RecordSetup()
_WinWaitActivate("Website.com/site/Main_Dash_Reporting.aspx - Google Chrome","")
MouseClick("left",1342,14,1)
_WinWaitActivate("Program Manager","")
MouseClick("left",282,746,1)
_WinWaitActivate("Website.com/site/Dash_Viewer.aspx?DashID=5200&RevNum=null - Google Chrome","")
MouseMove(702,311)
MouseDown("left")
MouseMove(707,310)
MouseUp("left")
#EndRegion
Internet Explorer is the programmers tool.
Set objShell = CreateObject("Shell.Application")
Set AllWindows = objShell.Windows
For Each window in AllWindows
msgbox window.locationname
If window.locationname="Scripts" then window.quit
Next
This is a vbscript. For historical reasons it includes both Explorer and IE windows.
Another property is window.locationURL.

Windows Phone Store - its possible to disable application switcher screen screenshot

I have disabled the functionality to take a screenshot from my app using:
ApplicationView.GetForCurrentView().IsScreenCaptureEnabled = false;
But I would like to hide all the content before the application is suspended/sent to background so the thumbnail appearing in the recent apps or application switcher screen does not show any confidential information.
Have tried to hide content on the onSuspend and Visibility_Changed events, but i think the sceenshot is taken just the moment the user press the Home Button (the one with the Windows logo).
Do you know any way of disabling that feature?
Subscribing to the WindowActivated event might be worth a try. The name is misleading as it will be launched on (any kind of) deactivation as well; which is what you want. I use it to save information on exit scenarios such as Home Button press but have not tested whether you could do a quick redraw or not.
Protected Overrides Async Sub OnLaunched(e As LaunchActivatedEventArgs)
''Stuff
AddHandler Window.Current.Activated, AddressOf WindowActivated
''Stuff
End Sub
Private Sub WindowActivated(sender As Object, e As Windows.UI.Core.WindowActivatedEventArgs)
If e.WindowActivationState = Windows.UI.Core.CoreWindowActivationState.Deactivated Then
''Hide your confidential visuals here
End If
End Sub

Adobe AIR bring to front

I have an adobe AIR app. When I send some data with a local connection from a web page, I want the app in front of the browser and all the other windows.
I tried with both activate() and orderToFront() but I have no results.
The only script working is:
window.alwaysInFront=true;
window.alwaysInFront=false;
But this doesn't give the focus to the app. So when I click the button on the browser, I have the app on the top, but if I click on the browser the app stays on top until I click on it (giving it the focus) and than I click on the browser window again. It works fine If I click on the browser top bar.
I think that activate() would solve the problem giving the focus to the app, but doesn't work.
Here it is the code (I worked with the native window to resize, minimize and maximize the window too). The function I call from local connection is "primopiano"
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.display.MovieClip;
import flash.display.NativeWindow;
var window = stage.nativeWindow;
function trascina (event:MouseEvent) {
window.startMove();
}
...
function primoPiano (event) {
trace("porto in primo piano...");
//window.activate(); // doesn't work
//window.orderToFront(); // doesn't work
window.alwaysInFront=true;
window.alwaysInFront=false;
}
Did I forgot to import something or do I have to define a different window to do this?
Thanks!
Nadia
Have a look at the Documentation and API Reference
AIR provides several methods for directly changing the display order of windows. You can move a window to the front of the display order or to the back; you can move a window above another window or behind it. At the same time, the user can reorder windows by activating them.
You can keep a window in front of other windows by setting its alwaysInFront property to true. If more than one window has this setting, then the display order of these windows is sorted among each other, but they are always sorted above windows which have alwaysInFront set to false. Windows in the top-most group are also displayed above windows in other applications, even when the AIR application is not active. Because this behavior can be disruptive to a user, setting alwaysInFront to true should only be done when necessary and appropriate. Examples of justified uses include:
Temporary pop-up windows for controls such as tool tips, pop-up lists, custom menus, or combo boxes. Because these windows should close when they lose focus, the annoyance of blocking a user from viewing another window can be avoided.
Extremely urgent error messages and alerts. When an irrevocable change may occur if the user does not respond in a timely manner, it may be justified to push an alert window to the forefront. However, most errors and alerts can be handled in the normal window display order.
Short-lived toast-style windows.
Note: AIR does not enforce proper use of the alwaysInFront property. However, if your application disrupts a user’s workflow, it is likely to be consigned to that same user’s trash can.
I have tried:
window.alwaysInFront = true;
window.alwaysInFront = false;
window.activate();
You could also try with a reference to a display object on the window stage:
displayObject.stage.nativeWindow.alwaysInFront=true;
//(where displayObject is your instance name)
And works fine. I'm using Adobe AIR 4

Adding GUI controls to external program

is it possible to add buttons or menu items to external programs? For instance, adding an menu item into notepad itself which will show a messagebox (after clicking on it) with the current text within notepad. if yes, is there a url which gives some more details about it?
looking forward to your answers.
It's possible by creating the control (via the Windows API or whatever) and then assigning your target window's HWND as the new control's parent. For reference, check the SetParent Win32 API function on MSDN.
Not sure how well this will work with a menu, but that's the normal way to add a control to a window. Be careful, though. There are lots of gotchas (commands taken by the target application, memory considerations, etc).