0

There is command In the AutoHotKey that shows tooltip with some message on the top of the screen. I want to do it on python.

In more details I need to make an application, that will work in background, always tracking a keyboard. On the specific hotkey it should show on the top of the screen a message without grabbing focus from other application. And it should remove this message after some conditions (e.g. mouse moving). It should work with full screen apps too.

I couldn't find how to do it on python, or what libraries should I use. Need your help.

PG_LoLo
  • 179
  • 10

1 Answers1

0

Global tooltips are created via WINAPI CreateWindowEx with TOOLTIPS_CLASS for window class. There are some examples which you can adapt. See also the Autohotkey implementation.

Shell tray tooltips are created via Shell_NotifyIcon.
A working example: wontoncc/balloontip.py and the Autohotkey implementation.

wOxxOm
  • 65,848
  • 11
  • 132
  • 136
  • Yes, I think tray tooltip is suitable for me. But there is problem: it doesnt work when other app is in full screen mod. I've tried do it with PyQt4, but got same result. Is it solvable? – PG_LoLo Oct 05 '15 at 13:32
  • @PG_LoLo, it's complicated. See [Overlaying on a 3D fullscreen application](http://stackoverflow.com/q/925981) or an AHK lib [GPF v1.1c - Overlaying Direct3D games (DX 8+9)](http://www.autohotkey.com/board/topic/42069-lib-gpf-v11c-overlaying-direct3d-games-dx-89-fixed/). Or search another example. – wOxxOm Oct 05 '15 at 13:37