rakudave Posted October 4, 2005 Share Posted October 4, 2005 (edited) a simple GUI to display the CPU-load: left-click to move, right-click to switch from horizontal to vertical or vertical to horizontal... suggestions to improve it?cpu.au3 Edited October 4, 2005 by rakudave Pangaea Ruler new, UDF: _GUICtrlCreateContainer(), Pangaea Desktops, Pangaea Notepad, SuDoku, UDF: Table Link to comment Share on other sites More sharing options...
BigDod Posted October 4, 2005 Share Posted October 4, 2005 a simple GUI to display the CPU-load: left-click to move, right-click to switch from horizontal to vertical or vertical to horizontal...suggestions to improve it?I downloaded and tried it using the latest Beta and get the following errorsD:\AutoIT\cpu.au3 (15) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.: $s = Stringsplit($s[2],"%") $s = Stringsplit(^ ERROR Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
livewire Posted October 4, 2005 Share Posted October 4, 2005 (edited) There were some errors in the script...this should work...pretty cool script. -Livewirecpu.au3 Edited October 4, 2005 by livewire Link to comment Share on other sites More sharing options...
BigDod Posted October 4, 2005 Share Posted October 4, 2005 There were some errors in the script...this should work...pretty cool script.-LivewireI must be missing something, perhaps a brain. Whet I Beta run the script all I get is like a minimised program titled R on my taskbar. I then can do nothing with it except abort the script from the systray. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
livewire Posted October 4, 2005 Share Posted October 4, 2005 You should see a little rectangle on your screen which is a progress-bar that shows the percentage of CPU load. -Livewire Link to comment Share on other sites More sharing options...
BigDod Posted October 4, 2005 Share Posted October 4, 2005 (edited) You should see a little rectangle on your screen which is a progress-bar that shows the percentage of CPU load.-LivewireYes your right, it was not my brain that was missing just my glasses. EditIt could be doing with some means of closing it other than aborting the script Edited October 4, 2005 by BigDod Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
rakudave Posted October 4, 2005 Author Share Posted October 4, 2005 (edited) @BigDod: the gui is located at 0x0 by default... and: closing with a hotkey, or what's on your mind? @livewire: strange, your version doesn't work on my PC, but mine work's fine... (?) Edited October 4, 2005 by rakudave Pangaea Ruler new, UDF: _GUICtrlCreateContainer(), Pangaea Desktops, Pangaea Notepad, SuDoku, UDF: Table Link to comment Share on other sites More sharing options...
livewire Posted October 4, 2005 Share Posted October 4, 2005 (edited) @rakudave When I read the statusbar, the result is: CPU Usage: XX% Then I "StringSplit" this with " " and the result is: $array[1] = CPU $array[2] = Usage: $array[3] = XX% I remove the % and set Processbar to XX. The info that you are receiving from the statusbar may be different for some reason. You also had a dash (-) in "Task-Manager"...mine doesn't. What version of Windows are you running? -Livewire Edited October 4, 2005 by livewire Link to comment Share on other sites More sharing options...
rakudave Posted October 4, 2005 Author Share Posted October 4, 2005 winXP pro, sp1 Pangaea Ruler new, UDF: _GUICtrlCreateContainer(), Pangaea Desktops, Pangaea Notepad, SuDoku, UDF: Table Link to comment Share on other sites More sharing options...
layer Posted October 4, 2005 Share Posted October 4, 2005 Very cool Maybe add this ?Func OnAutoItExit() If ProcessExists("taskmgr.exe") Then ProcessClose("taskmgr.exe") EndFuncNOTE: OnAutoItExit func needs latest BETA... Also a good idea to place at end of script so it doesn't get in your way. FootbaG Link to comment Share on other sites More sharing options...
rakudave Posted October 4, 2005 Author Share Posted October 4, 2005 right, i've forgotten thisone... :-/ Pangaea Ruler new, UDF: _GUICtrlCreateContainer(), Pangaea Desktops, Pangaea Notepad, SuDoku, UDF: Table 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