gaap_nl Posted June 21, 2006 Posted June 21, 2006 Next is the caseAs I run the code as stated below from my windows run box it works perfectlybut from my AutoIT script it gives me an error.I know why but I have no clue what to do about it !The problem sits in the exclamation marks (") at the start of the run command in autoITit is used to point @ the beginning of the command.but inside my command there is use of these marks look @ the part i marked red !hope one of you guy's can help me ![begin Code]run ("%SystemRoot%\system32\rundll32.exe %SystemRoot%\system32\shell32.dll,Control_RunDLL %SystemRoot%\system32\desk.cpl desk,@Themes /Action:OpenTheme /file:"C:\WINDOWS\Resources\Themes\Windows Classic.theme"")Send("{enter}")sleep(100)[End Code]
ChrisL Posted June 21, 2006 Posted June 21, 2006 If you need quotes in a string you need to double them up, notice ""C:\WINDOWS\Resources\Themes\Windows Classic.theme"" run ("%SystemRoot%\system32\rundll32.exe %SystemRoot%\system32\shell32.dll,Control_RunDLL %SystemRoot%\system32\desk.cpl desk,@Themes /Action:OpenTheme /file:""C:\WINDOWS\Resources\Themes\Windows Classic.theme"") [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire
GaryFrost Posted June 21, 2006 Posted June 21, 2006 better yet, just put single quotes on the outside i.e. run ('%SystemRoot%\system32\rundll32.exe %SystemRoot%\system32\shell32.dll,Control_RunDLL %SystemRoot%\system32\desk.cpl desk,@Themes /Action:OpenTheme /file:"C:\WINDOWS\Resources\Themes\Windows Classic.theme"') SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
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