关于_INetMail 在WIN 7 下中文乱码
关于_INetMail 在WIN 7 下中文乱码,XP下正常~~~#include <INet.au3>
_INetMail ( $s_MailTo, $s_MailSubject, $s_MailBody ) 我也发现了,怎么解决呢 修改INET.AU3中的代码
原文:
Func _INetMail($s_MailTo, $s_MailSubject, $s_MailBody)
Local $prev = Opt("ExpandEnvStrings", 1)
Local $var, $dflt = RegRead('HKCU\Software\Clients\Mail', "")
If $dflt = "Windows Live Mail" Then
$var = RegRead('HKCR\WLMail.Url.Mailto\Shell\open\command', "")
Else
$var = RegRead('HKCR\mailto\shell\open\command', "")
EndIf
Local $ret = Run(StringReplace($var, '%1', _INetExplorerCapable('mailto:' & $s_MailTo & '?subject=' & $s_MailSubject & '&body=' & $s_MailBody)))
Local $nError = @error, $nExtended = @extended
Opt("ExpandEnvStrings", $prev)
Return SetError($nError, $nExtended, $ret)
EndFunc ;==>_INetMail
修改后:
Func _INetMail($s_MailTo, $s_MailSubject, $s_MailBody)
Local $prev = Opt("ExpandEnvStrings", 1)
Local $var, $dflt = RegRead('HKCU\Software\Clients\Mail', "")
If $dflt = "Windows Live Mail" Then
$var = RegRead('HKCR\WLMail.Url.Mailto\Shell\open\command', "")
Else
$var = RegRead('HKCR\mailto\shell\open\command', "")
EndIf
Local $ret = Run(StringReplace($var, '%1', 'mailto:' & $s_MailTo & '?subject=' & $s_MailSubject & '&body=' & $s_MailBody))
Local $nError = @error, $nExtended = @extended
Opt("ExpandEnvStrings", $prev)
Return SetError($nError, $nExtended, $ret)
EndFunc ;==>_INetMail
页:
[1]