November Posted March 20, 2007 Share Posted March 20, 2007 How can i prevent a script to error exit when the user dont have access to wmi? Anyone can help this poor soul? Cheers. P.S. - Any code ill post it! Old Scriptology Visual Ping 1.8 - Mass Ping Program with export to txt delimited. Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code. Desktop 2 RGB - Pick a color in the desktop and get the RGB code. ShootIT 1.0 - Screen Capture full and partial screen [font="'Arial Black';"]Remember Remember The Fifth of November.[/font] Link to comment Share on other sites More sharing options...
kjactive Posted March 20, 2007 Share Posted March 20, 2007 I don't know a lot of this but I ones stumpled over this MSDN page that could cast some light in here...take a lookhttp://msdn2.microsoft.com/en-us/library/aa389276.aspxkjactive Au3PP 4.1 - Autoit3 preprocessor, optimize speed, performance to scripts and do executes....[/url]Au3Calibur - Create libraries of commonly used code excerptsWords manipulate UDF, functions that is lent from the rexx language, topics and index file includedCustomDialog UDF to include custom made dialogs like a extended colorpick requester to scripts...[url="ftp://fritidshjemmet.com/Autoit3/SysColor.zip"]SysColor UDF a low level color library to manipulate RGB and Hex values...Shell32 UDF to Automate Windows® operating tasks from native dialog and Wizards browsers... Optimized the CodeWicard with options to generate browser code etc... Link to comment Share on other sites More sharing options...
November Posted March 20, 2007 Author Share Posted March 20, 2007 I don't know a lot of this but I ones stumpled over this MSDN page that could cast some light in here...take a lookhttp://msdn2.microsoft.com/en-us/library/aa389276.aspxkjactive Been there, read that :SThanx anyway but no good 4 me... just to stupid do understand vbs Well,1st i hate Microsoft.2nd i hate MicrosoftI just want to have 2 choices:1st : try to get an error msg if user dont have access to wmi.2nd : not having my script blasting with a error I know its hard.I'll just run this with enterprise admin LOLCheer allP.S. - Ideas are welcome Old Scriptology Visual Ping 1.8 - Mass Ping Program with export to txt delimited. Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code. Desktop 2 RGB - Pick a color in the desktop and get the RGB code. ShootIT 1.0 - Screen Capture full and partial screen [font="'Arial Black';"]Remember Remember The Fifth of November.[/font] Link to comment Share on other sites More sharing options...
kjactive Posted March 21, 2007 Share Posted March 21, 2007 (edited) Well there's two choises around: Try to make Autoit3 catch the error with its internal error handle function and not though msg... $Errorhandle = ObjEvent("AutoIt.Error","MyErrFunc") This code activates Autoit3 error handle process and drop information to a function called 'MyErrFunc', read more in doc Find the component error handle functions - most components do have several buildins both as return value and as functions... Microsoft "%¤#%//&% Vista %¤&(%%/%/%/(/%#""!¤) * 10 Almost all VB components can be used with SvenPs nice activex interface... kjactive Edited March 21, 2007 by kjactive Au3PP 4.1 - Autoit3 preprocessor, optimize speed, performance to scripts and do executes....[/url]Au3Calibur - Create libraries of commonly used code excerptsWords manipulate UDF, functions that is lent from the rexx language, topics and index file includedCustomDialog UDF to include custom made dialogs like a extended colorpick requester to scripts...[url="ftp://fritidshjemmet.com/Autoit3/SysColor.zip"]SysColor UDF a low level color library to manipulate RGB and Hex values...Shell32 UDF to Automate Windows® operating tasks from native dialog and Wizards browsers... Optimized the CodeWicard with options to generate browser code etc... Link to comment Share on other sites More sharing options...
November Posted March 21, 2007 Author Share Posted March 21, 2007 Well there's two choises around: Try to make Autoit3 catch the error with its internal error handle function and not though msg... $Errorhandle = ObjEvent("AutoIt.Error","MyErrFunc") This code activates Autoit3 error handle process and drop information to a function called 'MyErrFunc', read more in doc Find the component error handle functions - most components do have several buildins both as return value and as functions... Microsoft "%¤#%//&% Vista %¤&(%%/%/%/(/%#""!¤) * 10 Almost all VB components can be used with SvenPs nice activex interface... kjactive Work like a charm... BUT Now i have to say to the loop to ignore last array item :S I should be a doctor instead thanx anyway cheers Old Scriptology Visual Ping 1.8 - Mass Ping Program with export to txt delimited. Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code. Desktop 2 RGB - Pick a color in the desktop and get the RGB code. ShootIT 1.0 - Screen Capture full and partial screen [font="'Arial Black';"]Remember Remember The Fifth of November.[/font] Link to comment Share on other sites More sharing options...
kjactive Posted March 21, 2007 Share Posted March 21, 2007 (edited) Hallo November ignore last array item Well catch it at startUp like this While 1 $msg = GUIGetMsg(1) $msg[5] = '' Select Case ..... kjactive Edited March 21, 2007 by kjactive Au3PP 4.1 - Autoit3 preprocessor, optimize speed, performance to scripts and do executes....[/url]Au3Calibur - Create libraries of commonly used code excerptsWords manipulate UDF, functions that is lent from the rexx language, topics and index file includedCustomDialog UDF to include custom made dialogs like a extended colorpick requester to scripts...[url="ftp://fritidshjemmet.com/Autoit3/SysColor.zip"]SysColor UDF a low level color library to manipulate RGB and Hex values...Shell32 UDF to Automate Windows® operating tasks from native dialog and Wizards browsers... Optimized the CodeWicard with options to generate browser code etc... Link to comment Share on other sites More sharing options...
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