AutoHotkey Shortcut to Save Lync Conversations

[Update] โ€“ Change the ahk_class on line 2 of the ahk script to LyncConversationWindowClass for Lync 2013

Some organizations have decided to remove the ability for Lync to automatically save conversations so I put together the following script to create a shortcut to save conversations.

1. Install AutoHotkey (autohotkey.com)
2. Execute the Express Installation
1

3. Exit AutoHotKey
2

4. Open Notepad and save the following script with the .ahk extension
3

; Hide title bar on enter key to remind the user to use the shortcuts to save a conversation. Define a shortcut of Ctrl-Enter to show the title bar if there is a need to reposition the window but the title bar will hide when Enter has been clicked again. Define shortcuts to save and close on Escape, Ctrl-F4 or Alt-F4. These are common close keys but you can define your own shortcut key โ€“ reference http://www.autohotkey.com/docs/Hotkeys.htm#Symbols – [Update] Use ahk_class LyncConversationWindowClass for Lync 2013 or use ahk_class IMWindowClass for Lync 2010
#IfWinActive ahk_class IMWindowClass
Enter:: HideTitleBar()
$^Enter:: ShowTitleBar()
Escape:: SaveAndClose()
$^F4:: SaveAndClose()
$!F4:: SaveAndClose()
return
#IfWinActive

; Hide title bar to only allow the use of escape to close the IM window. This was added to ensure the window X could not be used to close which the IM would then not be saved
HideTitleBar()
{
WinGetTitle, currentWindow, A
IfWinExist %currentWindow%
{
WinSet, Style, -0xC00000 ; hide title bar
WinSet, Style, -0x800000 ; hide thin-line border
WinSet, Style, -0x400000 ; hide dialog frame
WinSet, Style, -0x40000 ; hide thickframe/sizebox
}
send, {Enter}
return
}

; Show title bar to allow moving around window but the title bar will hide again on the next enter.
ShowTitleBar()
{
WinGetTitle, currentWindow, A
IfWinExist %currentWindow%
{
WinSet, Style, -0xC00000 ; show title bar
WinSet, Style, -0x800000 ; show thin-line border
WinSet, Style, -0x400000 ; show dialog frame
WinSet, Style, -0x40000 ; show thickframe/sizebox
}
return
}

; Send the keystrokes to save and then close
SaveAndClose()
{
send, ^s{Escape}
return
}

; reference link – https://github.com/lancehilliard/BrokenLync/blob/master/AutoHotKey/SaveOnImWindowClose.ahk

5. Right click on the saved .ahk file and click Compile Script to create an .exe
4

6. Move the .exe to the C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup and double click to start.
5

7. The script hides the title bar once Enter has been clicked on a Lync IM window (a reminder to not use the X to close the window which wonโ€™t save) and then defines the shortcuts of Esc, Ctrl-F4 or Alt-F4 to save the conversation and close the window. The window menus can still be accessed after the title bar has been removed by clicking the Alt key. There is also a shortcut of Ctrl-Enter to show the title bar if there is a need to reposition the Lync IM window but the title bar will hide when Enter has been clicked again.

8. Now that the script has been compiled you can uninstall autohotkey if you like and keep using the executable stand alone. I would just provide the executable but Iโ€™m sure most people might not want to just use some executable they have no idea where it came from. Plus now you know how to play with AutoHotkey for your other shortcuts needs ๐Ÿ˜‰

Vincen

Configuring localhost for Oracle XE on Windows 7

While at a client the installation of Oracle XE set the host to my computer name which included a sub-domain that would not resolving because I was on the client network. This was causing an ORA-12545 error (Connect failed because target host or object does not exist) which was resolved by change the host name to 127.0.0.1 in C:\oraclexe\app\oracle\product\11.2.0\server\network\ADMIN\listener.ora and C:\oraclexe\app\oracle\product\11.2.0\server\network\ADMIN\tnsnames.ora

Next I encountered an ORA-12514 error (listener does not currently know of service requested in connect descriptor) that took me awhile to figure out. I finally found the answer in this thread. Turns out the XE service needs to be registered by adding the following SID_DESC to the SID_LIST in C:\oraclexe\app\oracle\product\11.2.0\server\network\ADMIN\listener.ora

1
2
3
4
(SID_DESC =
      (SID_NAME = XE)
      (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
    )

Here is the complete C:\oraclexe\app\oracle\product\11.2.0\server\network\ADMIN\listener.ora file.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
      (PROGRAM = extproc)
    )
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
      (PROGRAM = extproc)
    )
    (SID_DESC =
      (SID_NAME = XE)
      (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
    )
  )
 
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
      (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    )
  )
 
DEFAULT_SERVICE_LISTENER = (XE)

Happy Coding!
Vincen Collins

Watch & Download Movie The Boss Baby (2017)

Watch Full Movie The Boss Baby (2017), Free Download Full Movie The Boss Baby (2017) Online , The Boss Baby (2017) English Subtitles , Free Streaming Movie The Boss Baby (2017).

Quality: HD
Title : The Boss Baby
Director : Tom McGrath.
Release : 2017-03-23
Language : English.
Runtime : 73 min.
Genre : Animation, Comedy, Family.
Stars : Alec Baldwin, Steve Buscemi, Lisa Kudrow, Jimmy Kimmel, Tobey Maguire, Vivi Ann Yee.

‘The Boss Baby’ is a movie genre Animation, was released in March 23, 2017. Tom McGrath was directed this movie and starring by Alec Baldwin. This movie tell story about A story about how a new baby’s arrival impacts a family, told from the point of view of a delightfully unreliable narrator, a wildly imaginative 7 year old named Tim.

A story about how a new baby’s arrival impacts a family, told from the point of view of a delightfully unreliable narrator, a wildly imaginative 7 year old named Tim.

Incoming search term :

The Boss Baby
The Boss Baby English Subtitles
Watch The Boss Baby
Watch The Boss Baby English Subtitles
Watch Movie The Boss Baby
Watch Movie The Boss Baby English Subtitles
Watch Movie Online The Boss Baby
Watch Movie Online The Boss Baby English Subtitles
Watch Full Movie The Boss Baby
Watch Full Movie The Boss Baby English Subtitles
Watch Full Movie Online The Boss Baby
Watch Full Movie Online The Boss Baby English Subtitles
Streaming The Boss Baby
Streaming The Boss Baby English Subtitles
Streaming Movie The Boss Baby
Streaming Movie The Boss Baby English Subtitles
Streaming Online The Boss Baby
Streaming Online The Boss Baby English Subtitles
Streaming Full Movie The Boss Baby
Streaming Full Movie The Boss Baby English Subtitles
Streaming Full Movie Online The Boss Baby
Streaming Full Movie Online The Boss Baby English Subtitles
Download The Boss Baby
Download The Boss Baby English Subtitles
Download Movie The Boss Baby
Download Movie The Boss Baby English Subtitles
Download Movie Online The Boss Baby
Download Movie Online The Boss Baby English Subtitles
Download Full Movie The Boss Baby
Download Full Movie The Boss Baby English Subtitles
Download Full Movie Online The Boss Baby
Download Full Movie Online The Boss Baby English Subtitles