mladost1 Posted May 30, 2008 Share Posted May 30, 2008 I just want to find out if there could be a ObjCreate function used and what are the commands for BitComet (I want to make a script that starts it in e.g. 2 hours and stops it after 7). Link to comment Share on other sites More sharing options...
Confuzzled Posted May 31, 2008 Share Posted May 31, 2008 I just want to find out if there could be a ObjCreate function used and what are the commands for BitComet (I want to make a script that starts it in e.g. 2 hours and stops it after 7)./What object are you creating?Have you read the help file, specifically about time commands, run commands, and task commands?Does the BitComet help file offer any help about BitComet commands?Lets see what you have tried so far and maybe someone can offer more hints... Link to comment Share on other sites More sharing options...
Axel82 Posted June 2, 2008 Share Posted June 2, 2008 (edited) Hi everybody. I have a ploblem with sysmon.ocx. Here is the sample: GUICreate("Form1", 629, 472, 193, 115) $Obj1 = ObjCreate("Sysmon.3") $Obj1_ctrl = GUICtrlCreateObj($Obj1, 150, 16, 300, 200) $obj1.ShowLegend = 0 GUISetState(@SW_SHOW) while 1 sleep(100) wend It works nice, but when i try to add some string to set up the counter "processor time" like this: GUICreate("Form1", 629, 472, 193, 115) $Obj1 = ObjCreate("Sysmon.3") $Obj1_ctrl = GUICtrlCreateObj($Obj1, 150, 16, 300, 200) $obj1.ShowLegend = 0 $obj1.Counters.Count.Value = 1 $obj1.Counter00001.Path="\Processor(_Total)\% Processor Time" ;<<<< GUISetState(@SW_SHOW) while 1 sleep(100) wend script crashes with error. F:\scripts\sysmon.au3 (5) : ==> The requested action with this object has failed.: $obj1.counters.Counter00001.Path.value="\Processor(_Total)\% Processor Time" $obj1.counters.Counter00001^ ERRORTheese properties i took in MSDN library Would anybody help me with this? Edited June 2, 2008 by Axel82 Link to comment Share on other sites More sharing options...
Axel82 Posted June 2, 2008 Share Posted June 2, 2008 Already understood. RTFM - is a good rule. $sa="\Processor(_Total)\% Processor Time" $Obj1.Counters.add($sa) 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