Deprecated: Optional parameter $ad_content declared before required parameter $ad is implicitly treated as a required parameter in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/classes/advanced-ads-pro.php on line 306
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/briangon/public_html/wp-content/plugins/bad-behavior/bad-behavior/blackhole.inc.php on line 55
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wpeditor
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home1/briangon/public_html/wp-includes/functions.php on line 6114
Deprecated: Optional parameter $options declared before required parameter $ad is implicitly treated as a required parameter in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/advanced-display-conditions/main.class.php on line 137
Deprecated: Optional parameter $options declared before required parameter $ad is implicitly treated as a required parameter in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/advanced-display-conditions/main.class.php on line 164
Deprecated: Optional parameter $options declared before required parameter $ad is implicitly treated as a required parameter in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/advanced-display-conditions/main.class.php on line 195
Deprecated: Optional parameter $options declared before required parameter $ad is implicitly treated as a required parameter in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/advanced-display-conditions/main.class.php on line 221
Deprecated: Optional parameter $options declared before required parameter $ad is implicitly treated as a required parameter in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/advanced-display-conditions/main.class.php on line 249
Deprecated: Optional parameter $options declared before required parameter $ad is implicitly treated as a required parameter in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/advanced-display-conditions/main.class.php on line 287
Deprecated: Optional parameter $options declared before required parameter $ad is implicitly treated as a required parameter in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/advanced-visitor-conditions/main.class.php on line 560
Deprecated: Optional parameter $content declared before required parameter $ad is implicitly treated as a required parameter in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/advanced-visitor-conditions/main.class.php on line 730
Deprecated: Creation of dynamic property Advanced_Ads_Pro_Module_Cache_Busting::$lazy_load_module_enabled is deprecated in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/cache-busting/cache-busting.class.php on line 93
Deprecated: Creation of dynamic property Advanced_Ads_Pro_Module_Cache_Busting::$lazy_load_module_offset is deprecated in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/cache-busting/cache-busting.class.php on line 94
Deprecated: Creation of dynamic property Advanced_Ads_Pro_Module_Cache_Busting::$cache_busting_module_enabled is deprecated in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/cache-busting/cache-busting.class.php on line 100
Deprecated: Creation of dynamic property Advanced_Ads_Pro_Module_Cache_Busting::$fallback_method is deprecated in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/cache-busting/cache-busting.class.php on line 114
Deprecated: Creation of dynamic property Advanced_Ads_Pro_Cache_Busting_Server_Info::$cache_busting is deprecated in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/cache-busting/server-info.class.php on line 15
Deprecated: Creation of dynamic property Advanced_Ads_Pro_Cache_Busting_Server_Info::$options is deprecated in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/cache-busting/server-info.class.php on line 16
Deprecated: Creation of dynamic property Advanced_Ads_Pro_Cache_Busting_Server_Info::$server_info_duration is deprecated in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/cache-busting/server-info.class.php on line 18
Deprecated: Creation of dynamic property Advanced_Ads_Pro_Cache_Busting_Server_Info::$vc_cache_reset is deprecated in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/cache-busting/server-info.class.php on line 19
Deprecated: Creation of dynamic property Advanced_Ads_Pro_Cache_Busting_Server_Info::$is_ajax is deprecated in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/cache-busting/server-info.class.php on line 21
Deprecated: Creation of dynamic property Advanced_Ads_Pro_Cache_Busting_Server_Info_Cookie::$server_info is deprecated in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/cache-busting/server-info.class.php on line 140
Deprecated: Creation of dynamic property Advanced_Ads_Pro_Module_Cache_Busting::$server_info is deprecated in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/cache-busting/cache-busting.class.php on line 116
Deprecated: Optional parameter $ad_count declared before required parameter $group is implicitly treated as a required parameter in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/grids/grids.class.php on line 70
Deprecated: Optional parameter $ad_count declared before required parameter $group is implicitly treated as a required parameter in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/group-refresh/group-refresh.class.php on line 282
Deprecated: Creation of dynamic property Advanced_Ads_Pro_Group_Refresh::$is_ajax is deprecated in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/group-refresh/group-refresh.class.php on line 15
Deprecated: Optional parameter $content declared before required parameter $ad is implicitly treated as a required parameter in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/inject-content/inject-content.class.php on line 201
Deprecated: Optional parameter $content declared before required parameter $placement_id is implicitly treated as a required parameter in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/inject-content/inject-content.class.php on line 453
Deprecated: Optional parameter $options declared before required parameter $ad is implicitly treated as a required parameter in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/paid-memberships-pro/main.class.php on line 48
Deprecated: Optional parameter $options declared before required parameter $ad is implicitly treated as a required parameter in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/paid-memberships-pro/main.class.php on line 162
Deprecated: Optional parameter $options declared before required parameter $ad is implicitly treated as a required parameter in /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/modules/weekdays/weekdays.class.php on line 64
Warning: Cannot modify header information - headers already sent by (output started at /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/classes/advanced-ads-pro.php:306) in /home1/briangon/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/classes/advanced-ads-pro.php:306) in /home1/briangon/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/classes/advanced-ads-pro.php:306) in /home1/briangon/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/classes/advanced-ads-pro.php:306) in /home1/briangon/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/classes/advanced-ads-pro.php:306) in /home1/briangon/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/classes/advanced-ads-pro.php:306) in /home1/briangon/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/classes/advanced-ads-pro.php:306) in /home1/briangon/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home1/briangon/public_html/wp-content/plugins/advanced-ads-pro/classes/advanced-ads-pro.php:306) in /home1/briangon/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893
{"id":809,"date":"2014-01-30T17:51:09","date_gmt":"2014-01-30T17:51:09","guid":{"rendered":"http:\/\/supportishere.com\/?p=809"},"modified":"2014-01-30T17:51:09","modified_gmt":"2014-01-30T17:51:09","slug":"script-to-force-intel-graphics-card-to-maintain-aspect-ratio-when-switching-display-resolutions","status":"publish","type":"post","link":"https:\/\/supportishere.com\/script-to-force-intel-graphics-card-to-maintain-aspect-ratio-when-switching-display-resolutions\/","title":{"rendered":"Script to Force Intel Graphics Card to Maintain Aspect Ratio When Switching Display Resolutions."},"content":{"rendered":"Some people despise the “stretch”. \u00a0This stretching occurs on newer screens that normally have an aspect ratio of 16:9 or 16:10 and are set to a 4:3 aspect ratio display resolution (i.e. 1024 x 768). \u00a0In some cases setting the 4:3 ratio resolution is required for an\u00a0antiquated\u00a0application’s<\/em> view ability. \u00a0Setting this via a script is not a simple task, because by Default the Intel Graphic’s driver stretches the screen to fit the panel. \u00a0If you are the type that hates stretching and want to maintain the aspect ratio<\/strong>, then this script is for you:<\/p>\nForceAspectRatio.vbs<\/strong> contents:<\/p>\nScript was tested in Win 7 x64, with the Intel Graphics 4000, Driver version 10.18.10.3308.<\/em><\/p>\nConst cHKLM = &H80000002\r\nSet oReg=GetObject(\"winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\default:StdRegProv\")\r\nSet oShell = CreateObject(\"WScript.Shell\")\r\n\r\nsKeyPath = \"SYSTEM\\CurrentControlSet\\Control\\GraphicsDrivers\\Configuration\"\r\noReg.EnumKey cHKLM, sKeyPath, aSubKeys\r\n\r\nIf Not (isnull(aSubKeys)) Then\r\n\tFor Each sSubkey In aSubKeys\r\n\t\tsTmpValueName = \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\GraphicsDrivers\\Configuration\\\" & sSubKey & \"\\00\\00\\Scaling\"\r\n\t\tWscript.Echo \"Attempting to write 4 value to: \"\"\" & sTmpValueName & \"\"\"\"\r\n\t\toShell.RegWrite sTmpValueName, 4, \"REG_DWORD\"\r\n\t If Err.Number <> 0 Then\r\n\t\t\tWScript.Echo \"Write failed with errors: \" & Err.Number\r\n\t Else\r\n\t\t\tWScript.Echo \"Write succedded.\"\r\n\t End If\t \r\n\tNext\r\nEnd If<\/pre>\nThis block of code enumerates through all of the GraphicsDrivers configurations updating the “Scaling” DWORD value to “4”, which translates to “Maintain Aspect Ratio”. \u00a0Once set, I can change the resolution via the “qres.exe” command line utility to what ever resolution I want and the aspect ratio will be maintained.<\/p>\n
cscript \"%~dp0ForceAspectRatio.vbs\"\r\nstart \/w \"\" \"%~dp0QRes.exe\" \/X 1024 \/Y 768 \/c 32<\/pre>\nFull download can be grabbed here<\/a>, which includes the qres.exe, the script, and the batch to call the script.<\/p>\nIn case your interested, I found this registry key and value by changing the setting in the Intel Graphics GUI (comes with Driver Installation), and monitoring the “RegSetValue” operation in Process Monitor<\/a>\u00a0using a filter (see below).<\/span><\/p>\n<\/a><\/p>\n <\/p>\n
\/BG<\/p>\n
<\/p>\n","protected":false},"excerpt":{"rendered":"
Some people despise the “stretch”. \u00a0This stretching occurs on newer screens that normally have an aspect ratio of 16:9 or 16:10 and are set to a 4:3 aspect ratio display resolution (i.e. 1024 x 768). \u00a0In some cases setting the 4:3 ratio resolution is required for an\u00a0antiquated\u00a0application’s view ability. \u00a0Setting this via a script is\u2026 Read More »<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[3,57,12],"tags":[47,123,128,18],"class_list":["post-809","post","type-post","status-publish","format-standard","hentry","category-scripting","category-toughbook","category-win7","tag-script","tag-scripting","tag-toughbook","tag-win7-2"],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3WXID-d3","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/supportishere.com\/wp-json\/wp\/v2\/posts\/809","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/supportishere.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/supportishere.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/supportishere.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/supportishere.com\/wp-json\/wp\/v2\/comments?post=809"}],"version-history":[{"count":2,"href":"https:\/\/supportishere.com\/wp-json\/wp\/v2\/posts\/809\/revisions"}],"predecessor-version":[{"id":812,"href":"https:\/\/supportishere.com\/wp-json\/wp\/v2\/posts\/809\/revisions\/812"}],"wp:attachment":[{"href":"https:\/\/supportishere.com\/wp-json\/wp\/v2\/media?parent=809"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/supportishere.com\/wp-json\/wp\/v2\/categories?post=809"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/supportishere.com\/wp-json\/wp\/v2\/tags?post=809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}