Announcement

Collapse
No announcement yet.

Get HTML code from web object

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #46
    if system is x64 then

    Code:
    Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\Wow6432Node\\Microsoft\\Internet Explorer\\Main\\FeatureControl\\FEATURE_BROWSER_EMULATION", "autorun.exe", "9000", REG_DWORD);
    because IE will read the value from Wow64 node

    if system is x86 then

    Code:
    Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Internet Explorer\\Main\\FeatureControl\\FEATURE_BROWSER_EMULATION", "autorun.exe", "9000", REG_DWORD);
    where autorun.exe specifies your real application name

    and here is the test result on Windows8 x64


    Click image for larger version

Name:	ie.png
Views:	1
Size:	72.1 KB
ID:	284010
    amsplugins.com Is Closed.

    Facebook Page

    Comment


    • #47
      Hmm.. the problem with setting the registry value is it requires administrator privilege level.
      Is there a way to do this as invoker(default)? My application runs as invoker on a corporate environment. Administrator privilege is not always available.

      Comment


      • #48
        Originally posted by Stephen G. View Post
        Hmm.. the problem with setting the registry value is it requires administrator privilege level.
        Is there a way to do this as invoker(default)? My application runs as invoker on a corporate environment. Administrator privilege is not always available.
        you should do it in application installation which is right time to do such a task
        amsplugins.com Is Closed.

        Facebook Page

        Comment


        • #49
          OK , In programming there is always an alternative

          you can run your app as administrator even if you set it as run as Invoker
          you just need to restart your application with Shell.Execute() with the verb runas and pass a commandline argument

          see attached example

          @All
          adding your application name to FEATURE_BROWSER_EMULATION node
          will disable those annoying error messages which appear on Buil-in Web Object ,IExplorer Plugin and when web browser hosted by ActiveX plugin
          in addition web page will be showed by latest available internet explorer version instead of in IE 7 mode that was causing visual problems etc..

          here is example :
          Code:
          local RegPath = "";
          	if( System.Is64BitOS()) then
          		RegPath = "Software\\Wow6432Node\\Microsoft\\Internet Explorer\\Main\\FeatureControl\\FEATURE_BROWSER_EMULATION";	
          	else
          		RegPath = "Software\\Microsoft\\Internet Explorer\\Main\\FeatureControl\\FEATURE_BROWSER_EMULATION";
          	end
          	if( Registry.GetValue(HKEY_LOCAL_MACHINE, RegPath, _SourceFilename, true) == "") then
          		Registry.SetValue(HKEY_LOCAL_MACHINE, RegPath, _SourceFilename, "9000", REG_DWORD);
          		if(Application.GetLastError() == 0) then
          			Dialog.Message("Notice", "This task completed successfully", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
          		end
          	else
          		Dialog.Message("Notice", "This task was already completed", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
          	end
          Attached Files
          Last edited by reteset; 07-22-2013, 09:56 AM. Reason: forgot the attacment
          amsplugins.com Is Closed.

          Facebook Page

          Comment


          • #50
            Originally posted by reteset View Post
            OK , In programming there is always an alternative

            you can run your app as administrator even if you set it as run as Invoker
            you just need to restart your application with Shell.Execute() with the verb runas and pass a commandline argument

            see attached example

            @All
            adding your application name to FEATURE_BROWSER_EMULATION node
            will disable those annoying error messages which appear on Buil-in Web Object ,IExplorer Plugin and when web browser hosted by ActiveX plugin
            in addition web page will be showed by latest available internet explorer version instead of in IE 7 mode that was causing visual problems etc..

            here is example :
            Code:
            local RegPath = "";
            	if( System.Is64BitOS()) then
            		RegPath = "Software\\Wow6432Node\\Microsoft\\Internet Explorer\\Main\\FeatureControl\\FEATURE_BROWSER_EMULATION";	
            	else
            		RegPath = "Software\\Microsoft\\Internet Explorer\\Main\\FeatureControl\\FEATURE_BROWSER_EMULATION";
            	end
            	if( Registry.GetValue(HKEY_LOCAL_MACHINE, RegPath, _SourceFilename, true) == "") then
            		Registry.SetValue(HKEY_LOCAL_MACHINE, RegPath, _SourceFilename, "9000", REG_DWORD);
            		if(Application.GetLastError() == 0) then
            			Dialog.Message("Notice", "This task completed successfully", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
            		end
            	else
            		Dialog.Message("Notice", "This task was already completed", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
            	end
            reteset, i made a small project just using the Web Object (i already test it with IExplorer plugin) and the Button with the code you add here!
            The Web Browser (or IExplorer Plugin) didn´t work corretly! It mantain's the "bad visual" on Web object :(
            I clicked on the Button but Web visual mantains :(
            Did i miss something?
            Ty

            Comment


            • #51
              Hi got the problem... ty reteset, great help

              Comment


              • #52
                Is there a way to include window tabs with the plugin object?

                For example: The user clicks on a link within the plugin object opening a new tab within the same object rather than opening a new iexplorer window outside of the plugin object.

                I want to contain all web browsing within a single web object.

                Comment


                • #53
                  Originally posted by reteset View Post
                  @All
                  adding your application name to FEATURE_BROWSER_EMULATION node
                  will disable those annoying error messages which appear on Buil-in Web Object ,IExplorer Plugin and when web browser hosted by ActiveX plugin
                  in addition web page will be showed by latest available internet explorer version instead of in IE 7 mode that was causing visual problems etc..

                  here is example :
                  Code:
                  local RegPath = "";
                  	if( System.Is64BitOS()) then
                  		RegPath = "Software\\Wow6432Node\\Microsoft\\Internet Explorer\\Main\\FeatureControl\\FEATURE_BROWSER_EMULATION";	
                  	else
                  		RegPath = "Software\\Microsoft\\Internet Explorer\\Main\\FeatureControl\\FEATURE_BROWSER_EMULATION";
                  	end
                  	if( Registry.GetValue(HKEY_LOCAL_MACHINE, RegPath, _SourceFilename, true) == "") then
                  		Registry.SetValue(HKEY_LOCAL_MACHINE, RegPath, _SourceFilename, "9000", REG_DWORD);
                  		if(Application.GetLastError() == 0) then
                  			Dialog.Message("Notice", "This task completed successfully", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
                  		end
                  	else
                  		Dialog.Message("Notice", "This task was already completed", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
                  	end
                  It seems this will notwork if I execute this onStartup and the user has no admin rights or can this reg entry only be changed as admin? It did not create one for me when the app was not run as admin.
                  With Admin rights it was added and working after restarting my app.

                  But without the web object says it cant display HTML5 content (but it worked in another project, but was some other html5 code) and IE7 is just too old. Is there no other way to enable the latest IE version? (without admin rights)
                  Bl4ckSh33p-Soft - Custom Software and Indie Games

                  Comment


                  • #54
                    After applying this fix "DisableScrollbars" does not work anymore. :(
                    Bl4ckSh33p-Soft - Custom Software and Indie Games

                    Comment

                    Working...
                    X