hi,
i want to re-direct "Print Screen" Key.
this is easy for "own App" but what about System-wide
i like to watch if "Print Screen" Key is press ... how
System-wide Hotkey VK_SNAPSHOT
Moderator: Rathinagiri
- AUGE_OHR
- Posts: 2064
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
System-wide Hotkey VK_SNAPSHOT
have fun
Jimmy
Jimmy
- AUGE_OHR
- Posts: 2064
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: System-wide Hotkey VK_SNAPSHOT
hi,
i got it run this Way
but now it will "always" go to DO_SnapShot() when "Print Screen" is press ...
so i have to look for other Hotkey
i got it run this Way
Code: Select all
HMG_CallDLL( "User32.DLL", DLL_OSAPI, "RegisterHotKey",Form_1.HANDLE,1,0,VK_SNAPSHOT)
CREATE EVENT PROCNAME PrtScr_Detect() HWND Form_1.HANDLE STOREINDEX nIndex
EventProcessAllHookMessage( nIndex, .T. )
Procedure On_Release
HMG_CallDLL( "User32.DLL", DLL_OSAPI, "UnregisterHotKey",Form_1.HANDLE,1)
Return
FUNCTION PrtScr_Detect()
LOCAL nHWnd := EventHWND()
LOCAL nMsg := EventMSG()
LOCAL nWParam := EventWPARAM()
LOCAL nLParam := EventLPARAM()
LOCAL nMask, cDevice := ""
DO CASE
case nMsg == WM_HOTKEY
DO_SnapShot()
ENDCASE
RETURN NIL
so i have to look for other Hotkey
have fun
Jimmy
Jimmy
- AUGE_OHR
- Posts: 2064
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: System-wide Hotkey VK_SNAPSHOT
hi,
i have made a SnapShot Tool which use "Print Screen" and can send a Email via CDO.
after Start it stay in System-Tray Setup with DBF hold Data which CDO need to send via SMTP.
your Password will store "encrypt" to DBF
you will be ask to send Email (need in Germany DSGVO )
i have made a SnapShot Tool which use "Print Screen" and can send a Email via CDO.
after Start it stay in System-Tray Setup with DBF hold Data which CDO need to send via SMTP.
your Password will store "encrypt" to DBF
you will be ask to send Email (need in Germany DSGVO )
have fun
Jimmy
Jimmy
- AUGE_OHR
- Posts: 2064
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: System-wide Hotkey VK_SNAPSHOT
hi,
have clean up code so i can release source now i don`t include my Icon in *.RC so fill it with your Icon
change Crypt Key in Setup.PRG ...
you can define any VK Key with RegisterHotKey()
HMG does not use F12 ...
have clean up code so i can release source now i don`t include my Icon in *.RC so fill it with your Icon
change Crypt Key in Setup.PRG ...
you can define any VK Key with RegisterHotKey()
HMG does not use F12 ...
have fun
Jimmy
Jimmy