dekadish Posted June 4, 2010 Posted June 4, 2010 (edited) I want to run my program by default with Compatibility set to Windows 2000. I made a little program but its having littl ebit of an issues running by defualt but when i right click it and set Compatibility mode to Windows 2000 it works fine.. Is there a way that i can define that in the code so it sets it self to Compatibility mode of Windows 2000 ? Basically to run in Compatibility mode by default without right clicking and changing it thank you. Edited June 4, 2010 by dekadish
BrettF Posted June 4, 2010 Posted June 4, 2010 Might get you started. http://forums.devshed.com/windows-help-34/bat-file-to-set-compatibility-mode-516551.html Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
KaFu Posted June 4, 2010 Posted June 4, 2010 'Application Compatibility' under Win7 OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
dekadish Posted June 4, 2010 Author Posted June 4, 2010 Might get you started.http://forums.devshed.com/windows-help-34/bat-file-to-set-compatibility-mode-516551.htmlYeah this is .bat i dont like it i would rather like something implemented in the code
dekadish Posted June 4, 2010 Author Posted June 4, 2010 'Application Compatibility' under Win7Looks like this may do the trick if i disable themese.. i just have to test my app no on windowx xp, win7 and vista to see if its going to work thank you ill let you know my results.. if anybody has other methods please post.Func Toggle_AERO_Style_On($toggle = True) ; Disable AERO effect on Vista and Win7 => MPlayer requires this ; http://msdn.microsoft.com/en-us/library ... 85%29.aspx Local Const $DWM_EC_DISABLECOMPOSITION = 0 Local Const $DWM_EC_ENABLECOMPOSITION = 1 If $toggle = True Then DllCall("dwmapi.dll", "hwnd", "DwmEnableComposition", "uint", $DWM_EC_DISABLECOMPOSITION) Else DllCall("dwmapi.dll", "hwnd", "DwmEnableComposition", "uint", $DWM_EC_ENABLECOMPOSITION) EndIfEndFunc ;==>Toggle_AERO_Style_On
KaFu Posted June 4, 2010 Posted June 4, 2010 Func Toggle_AERO_Style_On($toggle = True)That's one of my functions too ... OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
BrettF Posted June 4, 2010 Posted June 4, 2010 Yeah this is .bat i dont like it i would rather like something implemented in the codeIt was more, try and convert it... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
dekadish Posted June 5, 2010 Author Posted June 5, 2010 It was more, try and convert it... I used this in my code Func Toggle_AERO_Style_On($toggle = True); Disable AERO effect on Vista and Win7 => MPlayer requires this; http://msdn.microsoft.com/en-us/library ... 85%29.aspxLocal Const $DWM_EC_DISABLECOMPOSITION = 0Local Const $DWM_EC_ENABLECOMPOSITION = 1If $toggle = True ThenDllCall("dwmapi.dll", "hwnd", "DwmEnableComposition", "uint", $DWM_EC_DISABLECOMPOSITION)ElseDllCall("dwmapi.dll", "hwnd", "DwmEnableComposition", "uint", $DWM_EC_ENABLECOMPOSITION)EndIfEndFunc ;==>Toggle_AERO_Style_On but application wont run but when i disable it manually then it runs dont know whats wrong
KaFu Posted June 5, 2010 Posted June 5, 2010 but application wont run but when i disable it manually then it runs dont know whats wrongThis only disables the visual Aero effect on Vista and Win7. To run a program in a specific compatibility code follow either one of the links I and BrettF have posted... *sigh*, added working sample code to my 'Application Compatibility' under Win7 post. OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
dekadish Posted June 16, 2010 Author Posted June 16, 2010 none of the above worked.. i stil can only run this program if i manually disable themese or set compatibility to winodws 95.. works fine on windows 7 and Vista only XP is giving me these problems.
KaFu Posted June 16, 2010 Posted June 16, 2010 Post code and I'll take a look... OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now