|
发表于 2012-3-13 14:05:42
|
显示全部楼层
修改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 |
|