Leaderboard
Popular Content
Showing content with the highest reputation on 09/12/2013 in all areas
-
Hold your horses man... The reason old topics shouldn't be revived after a year or more is because it's likely that it contains dated information that could no longer work, or be as efficient. We have your best interests in mind when we place rules on things like this. guinness here deserves every letter you see under his name. Devotion - to AutoIt Evolution - to the Helpfile and the community Veracity - it's just guinness Evangelism - does he ever talk shit about AutoIt? Love - he seriously loves what he does Opinion - I, and many overs cherish his opinion Person - at the end of the day, he's a person, like you and I and deserves the same amount of respect as I'm sure you'd want Egghead - he's fucking brainy as shit. Robot - I swear he never stops working on the helpfile and other parts that he does. The same applies to other developers, past and present. Now leave it be.2 points
-
I have been working on this for awhile and thought that I would share everything I have came up with. With all the help that I have gotten from the forums and scripts I hope I included everyone's work that I have included. All credits to this script are included in the script in the About/Credits menu option!! (Several of you and Thank You!!) This displays many computer status and couple more tools. Change Log: -------2.0.2.1---------------- -Added Used/Total space on drive tab -Added Used Free space on Drive info GUI -Added buttons for drive on drive tab -Added Hard Drive information to Export file -Linked buttons on drive tab to Drive Info -Cleaned up Drive Info GUI -Removed Drive info from menu -Removed LoadInfo Func (now does it all loading GUI) -Removed some unused variables from global -Removed progress bar from 0 byte drives i.e. CDROM from Tab and DriveGUI -------2.0.2.0---------------- -Added Multi-Core support which shows each core usage *Thanks Ascend4nt -New tab for CPU and separate for RAM to allow up to 8 cores on CPU tab -When doing netspeed test now splash screen is updated instead of deleted and recreated (still looking for a better way to do net speed test!!!) -------2.0.1.9---------------- -Added Credits Image from Binary to TempDir (now no need for an extra FileInstall) -Added Product Key Option in Menu Option "System" -Added Chrome to Temp Cleaner and how long it took to clean Temp files in seconds. -------2.0.1.8---------------- -FIxed $Language or $OSVerison variables from not being declared. -Removed Splash Image -Removed DriveInfo from checking every second (Increases performance) Previous Downloads: 159 Computer Stats Utility.au3 Computer Stats Utility 2.0.2.0.au3 Computer Stats Utility 2.0.2.1.au31 point
-
I do not like Charmap, it's too small and you can't test a character with another font, you only get all chars for each font so it's not very handy. SpecialCharactersViewer permit with the Segoe UI Symbol font to display a maximum ( not all! ) of Ascii and Unicode characters. Simple click on a char and the corresponding Chr or ChrW code is displayed. Free to you to choose another font for see if the selected character can be used with. Windows XP do not have Segoe UI Symbol font, so it's more for Win7/Win8 users... Previous downloads : 100 Source : SpecialCharactersViewer v1.0.1.0.au3 Executable : SpecialCharactersViewer.exe.html (Once this html file downloaded, double click on it for start the download) Will be added to the next version of SciTE Hopper. Hope it can help !1 point
-
I found one of my old scripts: MsgBox(0, "Test", WMI_GetLocalAdminMembership()) Func WMI_GetLocalAdminMembership($sHost = @ComputerName) ;coded by UEZ 2010 If $sHost = "Localhost" Then $sHost = @ComputerName Local $LM_members, $x, $LM_LocalGroup_Name, $type $LM_LocalGroup_Name = "Administrators" $objWMIService = ObjGet("winmgmts:\\" & $sHost & "\root\cimv2") $colItems = $objWMIService.ExecQuery("Select Name, SID from Win32_Group WHERE Domain='" & $sHost & "'", "WQL", 0x30) If IsObj($colItems) Then For $objItem In $colItems If $objItem.SID = "S-1-5-32-544" Then $LM_LocalGroup_Name = $objItem.Name Next Else Return SetError (1, 0, 0) ;No WMI objects found for class Win32_Group EndIf $colItems = $objWMIService.ExecQuery("Select * from Win32_GroupUser Where GroupComponent=""Win32_Group.Domain='" & $sHost & "',Name='" & $LM_LocalGroup_Name & "'""", "WQL", 0x30) If IsObj($colItems) Then For $objItem In $colItems If $objItem.PartComponent <> "" Then $x = StringSplit($objItem.PartComponent, """") $type = StringMid($x[1], StringInStr($x[1], ":Win32_") + 7, (StringInStr($x[1], ".") - (StringInStr($x[1], ":Win32_") + 7))) $LM_members &= $sHost & ";" & $LM_LocalGroup_Name & ";" & $type & ";" & $x[2] & "\" & $x[4] & @CRLF EndIf Next Return $LM_members EndIf Return SetError (2, 0, 0) ;No WMI objects found for class Win32_GroupUser EndFunc ;==>WMI_GetLocalAdminMembership Br, UEZ1 point
-
Round() Question
michaelslamet reacted to Bowmore for a topic
@Bothouse What you posted works OK but there is no need to use Round() at all as specifying the number of decimal plcace in StringFormat() causes StringFormat to do the rounding for you. $a = "12.3456789" $b = "12.3499999" ;5 decimal places with trailing 0s MsgBox(0,"",StringFormat("%.5f",$a)) MsgBox(0,"",StringFormat("%.5f",$b)) $a = "12.3456789" $b = "123.3499999" ;5 decimal places with trailing 0s and 5 digits before the decimal point with leading 0 MsgBox(0,"",StringFormat("%011.5f",$a)) MsgBox(0,"",StringFormat("%011.5f",$b))1 point -
String question
michaelslamet reacted to Mat for a topic
So you want something like: "[^-,d.]". There I am matching anything that is NOT - or , or 0-9 or .1 point -
try this: $oForm2 = _IEFormGetCollection ( $oIE , 2) $oForm2_elCheck = _IEFormElementGetObjByName($oForm2,"stopCheck[]") $oForm2_elCheck.checked = true or this: $oForm2 = _IEFormGetCollection ( $oIE , 2) _IEFormElementCheckBoxSelect($oForm2, 0, "", 1, "byIndex")1 point
-
This way doesn't work ? $cb = _IEGetObjByName($oIE, "stopCheck[]") $cb.checked = true1 point
-
now tell me With the new knowlege, How you want to use the standard _IE function ?1 point
-
IE download save/open dialog. How to access?
JohnGetzke reacted to DW1 for a topic
It's not pretty, in fact, I think it's downright ugly, but it works in IE10 (likely 9 as well). Here is to hoping somebody swoops in and proposes a better solution. AdlibRegister("AutoCancel") While 1 Sleep(10) WEnd Func AutoCancel() If WinActive("[Class:IEFrame]") Then Local $hIE = WinGetHandle("[Class:IEFrame]") Local $hCtrl = ControlGetHandle($hIE, "", "[ClassNN:DirectUIHWND1]") Local $aPos = ControlGetPos($hIE, "", $hCtrl) Local $aWinPos = WinGetPos($hIE) If ControlCommand($hIE, "", $hCtrl, "IsVisible") And $aPos[1] > .75 * $aWinPos[3] Then ; Check if the control is in the bottom 25% of the page. ControlClick($hIE, "", $hCtrl, "primary", 1, $aPos[2] - 70, $aPos[3] - 30) Sleep(500) ControlSend($hIE, "", $hCtrl, "{enter}") EndIf EndIf EndFunc ;==>AutoCancel1 point -
move mouse to a particular piece of text on a webpage?
DavidTunnell reacted to DW1 for a topic
Sure, use _IEPropertyGet() like this: #include <IE.au3> Local $oIE = _IE_Example("basic") Local $oLinks = _IELinkGetCollection($oIE) Local $iNumLinks = @extended MsgBox(0, "Link Info", $iNumLinks & " links found") For $oLink In $oLinks MouseMove(_IEPropertyGet($oLink, "screenx") + (_IEPropertyGet($oLink, "width") / 2), _IEPropertyGet($oLink, "screeny") + (_IEPropertyGet($oLink, "height") / 2), 0) MsgBox(0, "Link Info", "Moved mouse to center of link with URL:" & @CRLF & $oLink.href) Next1 point -
how to write file in UTF-8?
Alexxander reacted to PsaltyDS for a topic
Never mix file operations using a string path with file operations using the file handle. FileOpen() returns the handle to $file, and the write after that should be: $file = FileOpen($ResultFilePath,129) FileWriteLine($file,$string)1 point