I've been having problems trying to enable and disable font smoothing through mIRC without having to write a dll. I've tried a ridiculous number of methods to turn it off, including:
.comopen excel Excel.Application
var %call CALL("user32","SystemParametersInfo","AJJJJ", 75,0,0,1)
noop $com(excel,executeexcel4macro,3,bstr,%call)
comclose excel
//run rundll32.exe user32.dll,SystemParametersInfo 75,0,0,1
I've also tried updating these registry values to 0:
HKEY_CURRENT_USER\Control Panel\Desktop\FontSmoothing
HKEY_CURRENT_USER\Control Panel\Desktop\FontSmoothingType
However, this only works when windows is restarted so windows needs to be informed of the change. To achieve this, I have tried:
//run rundll32.exe user32.dll,UpdatePerUserSystemParameters
//run rundll32.exe shell32.dll,SHChangeNotify 1,0,0,0
and many other combinations besides, none of which work. I realise I can quite easily write a dll to do this, but it seems like overkill for a tiny feature. If anyone has any other suggestions, I would be very grateful! Thanks.