Windows 8 - Display soft keyboard when opening the charm search bar - keyboard

In my application, I open programatically the charm search bar with this kind of code :
Windows.ApplicationModel.Search.SearchPane.GetForCurrentView().Show();
But I would like to open the soft keyboard so the use can directly search text without having to touch the text input.
I understood that I can not control the keyboard, so I have to set the focus to the search text block.
Did anyone have to solve this kind of issue ?

This isn't possible. Opening the soft keyboard MUST be triggered by a touch event. See here for an explanation.

Related

What keyboard shortcut can i use without conflicts with modern browsers?

I'm developping a web application and i intend to use mouse and some keyboard shortcuts, and if possible, use modal keys (Ctrl / Shift / Alt).
I've noticed a lot a conflicts with modern browsers/OS. Here are some examples you may know:
Ctrl+S
Ctrl+F
Shift+R : refreshes the page on firefox
Alt+left click : moves a window on linux
Ctrl+J : opens the download tab in chrome
I can't find what shortcuts (with modal keys) i can use safely in my application. Is there a list somewhere of a rule to follow?
You could have a look at this, which is a rather exhaustive list of used shortcuts.
However your question has already been asked here and here and it seems there is no such list.
Try this:
http://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts
My suggestion would to throw something unique in the shortcut for example:
Say you needed to bookmark something quickly, chromes is ctrl+D, instead i would do ctrl+shift+m or ctrl+alt+m
Even still you might run into duplicate shortcuts, but going with something unique will give you the best results.
Hope this helps.

ConEmu: Searching through entire buffer

I've recently moved to the ConEmu console and I'm loving it. Its very configurable and it has a lot of the features that I was looking for (A Mac Terminal App replacement of sorts.)
I've not been able to figure out how to search through the entire history buffer though. Theres a key called App+F which seems to search the visible buffer for a string, but theres nothing that lets me search through the entire 9999 lines of buffer. Does anybody know the Keyboard shortcut for this?
Thanks.
For Windows set different hotkey since win+f is binded to Windows actions.
Here is how to set ctrl+f
Apps+F may search entire buffer. But update to the latest build first and note that you need to "Freeze console" to enable buffer search.
BTW, Apps+F is default hotkey, you may choose any suitable.

How do I stop wxhaskell from beeping on enter in text controls?

I've played around with processEnter, on command, and on anyKey with textEntry to no avail. I've been looking through the massive amount of documentation for wx-core, but I don't see anything that'll help. I'm using wxhaskell 0.13.2.1 on Windows 8.
You need to use wxTE_PROCESS_ENTER style to have a chance of capturing the Enter key in a wxTextCtrl. If you don't use it, this key is used for activating the default dialog button -- or beeping, under Windows, if there is no such button.

Create Lotus Notes hotkey/shortcut key for "reply to all with history"

Because I like to make common actions quick to access, I'd like to define a hotkey, e.g. Alt+L to do "reply to all with history", to act on the selected email. I'm using Lotus Notes 8.5 under Windows. Currently I have to either click the Reply button and then click "Reply to All with History Only" or I have to press Alt+3 then cursor down several times and press enter. Actually, Alt+3 doesn't always work because if the email is opened in its own window then you have to use Alt+2.
I've pursued several solutions:
o I've looked for consistent hotkeys within Lotus Notes, but no luck. The shortcut key support in Lotus Notes is not very good, and you can't define custom shortcut keys.
o I've tried using AutoHotkey to send keystrokes to Lotus. You can do a reply by typing Alt+A to get to the Actions menu. Unfortunately, the accelerator keys underneath the Actions menu change whether you are in the email list or if the email is in its own window. Also, the Actions menu doesn't always drop down quickly, so timing the sent keystrokes is problematic.
o I've tried writing LotusScript Agents to do a reply all. I've learned there is a Shared Action named "Reply to All\Reply to All with History Only". I don't think there is a way to have an Agent call an existing Shared Action, so I guess I can just clone the Shared Action code into my Agent. That still leaves the problem of invoking the Agent via a hotkey.
o I haven't tried it yet, but I think the solution will be to create an Agent that can perform a reply all. Create a VBS script to use the Lotus Notes OLE/COM interface to invoke the agent then have AutoHotkey call the VBS file when a hotkey is pressed. FYI: AutoHotkey doesn't support COM directly. However AutoIt and I believe AutoHotkey_L do support both COM and hotkeys so I could use one of those languages.
I'm open to any suggestions, but I want a solution that is reliable. As mentioned, my current AutoHotkey solution fails sometimes because the Lotus GUI is not a very standard Windows GUI. As I understand it, the Lotus GUI is a Java/Eclipse application. I believe Lotus supports Eclipse plugins, so maybe that is an option.
I started with:
#IfWinActive Mail - Inbox - IBM Lotus Notes
!l:: Send {Alt}ayr
!r:: Send {Alt}ape
return
But have also included:
#IfWinActive ahk_class SWT_Window0
!l:: Send {Alt}ayr
!r:: Send {Alt}ape
!1::
!S:: Send !1
return
The above is to facilitate usage of the shortcuts even in mails with its own window... where the title text is diff. Hope it helps!
Here are the AutoHotkey shortcuts that I created, which are similar to those mentioned above. I used the hotkeys that I remember from outlook as a basis for them:
IfWinActive, IBM Lotus Notes
{
#IfWinActive New Message
{
^Enter::
SendInput, !1
return
}
#IfWinActive, Inbox
{
^r::
SendInput, !C+E
return
^+r::
SendInput, !A+Y+R
return
}
}
I'm using Notes 8.5, btw.
You might be able to make your life easier with a custom smarticon (toolbar button). I don't have 8.5 to test this on, but it works on Notes 6.
Go into the design view of the mail database, and open up the memo form. Then look for the action button you are trying to duplicate. Copy all the formula code (probably just a few lines). Then create a new toolbar button by right-clicking on a toolbar and choosing Toolbar properties. Paste the formula into the button and save.
This still doesn't get you the shortcut key trigger you're looking for, but perhaps in 8.5 you can assign a hotkey to a toolbar icon? If not, you could create an AutoHotKey script, triggered by a hotkey you choose, that simulates clicking the smarticon button using references relative to the current window. I think it would be consistent provided the toolbar is always in the same place.
Using the helpful "Alt a-y-r" approach above, I just wrote a tiny little AutoHotkey script to map alt+r and alt+l to the common usages:
#IfWinActive Mail - Inbox - IBM Lotus Notes
!l:: Send {Alt}ayr
!r:: Send {Alt}ape
return
Basic, but it works for 90% of my uses. I'm going to create hotkeys for everything using this method.
The obvious way is to press "ALT-A-Y-R" (reply to all with history) or "ALT-A-Y-E" (reply to all with history + attachments).
Pressing ALT-A will show you the hotkeys for each menu option on the Action menu. Might be different character if you are not using the English version.
I found myself here adapting from Outlook's Ctrl+R and Ctrl+Shift+R to reply or reply to all and looking for a way to reply to an email with a sensible number of key presses.
I found that by clicking File > Preferences, there is an option called:
Enable alternate keyboard shortcuts (for example Ctrl+R=Reply)
That solved most of my issue. Using Notes 9.

Text editor in Windows with real time update?

What's a good text editor in Windows that automatically updates the view whenever the opened file has been modified by another process? I need this to watch the output of my program.
If you like using a mouse, Notepad++ is great
If you're happier with the keyboard, for me, it has to be Emacs. Here's the download for Windows.
To use the feature in Emacs, add the following to your .emacs:
(global-auto-revert-mode t)
There are lots of people at work who like Textpad but I don't understand why, it doesn't even have column editing.
Notepad++ has this feature.
If you want to reload automatically, go to Settings / Preferences, then the MISC tab and uncheck Update silently under File Status Auto-detection.
What I use is snaketail. It can update in real time several files, even without the focus.
I would recommend Notepad2. It refresh the content automatically without focus switching. You just need to go to menu 'Settings' and set 'File Change Notification...' option, and then save your settings. But keep in mind, refresh has a delay about 2-3 seconds.
Editplus is great.
This doesn't really answer your question, but it sounds like what you really want is some kind of console view, not a file. Would it be possible to pipe your program's output into an output stream that's visible in a console instead? Those are designed to show new lines as they arrive, automatically scroll, etc.
See the Viewer (F3 option) in FAR file manager, when End button is pressed, it updates and scrolls text automatically
Use Tail For Windows.
Tail doesn't need to have focus on.
I've got it from superuser.com answer.

Resources