chrm1.Load(‘你的网址’);
api
出现空白,跟踪进去:cookie
frm := FBrowser.MainFrame; //此时为nil ,可改成:
frm := FBrowser.GetMainFrame;
ide
其余地方同上;测试
后续待更新。。spa
修改ceflib.pas:.net
procedure TInternalApp.OnBeforeCommandLineProcessing(const processType: ustring;
const commandLine: ICefCommandLine);
begin
CommandLine.AppendSwitch('ppapi-out-of-process');
CommandLine.AppendSwitchWithValue('ppapi-flash-version', '22.0.0.168');
CommandLine.AppendSwitchWithValue('ppapi-flash-path', 'Plugins\\pepflashplayer.dll');
if Assigned(CefOnBeforeCommandLineProcessing) then
CefOnBeforeCommandLineProcessing(processType, commandLine);
end;插件
网上的解决方法,参考此文。命令行
http://blog.csdn.net/zx2356/article/details/51514403orm
按照该文及提供的下载挂钩createProcessA,在xp上无效。blog
2.解决方法
有可能createprocessw也得挂钩。但懒得修改了。所以决定改成反编译flash插件,看看显示命令行窗口的逻辑。
反编译flash插件。发现显示cmd的逻辑是,读取环境变量comspec(cmd.exe的全路径),读取到就执行它,读取不到执行cmd.exe.
用winhex修改flash插件,搜索comspec为soms1ec,修改cmd.exe为cm1.exe.
从新测试,成功。
修改后插件下载连接
http://download.csdn.net/detail/qsy2000/9768385
转载请注明出处,原文地址:
http://blog.csdn.net/xtfnpgy/article/details/71703317