
netegg
Active Members-
Posts
148 -
Joined
-
Last visited
Content Type
Forums
Downloads
Forum Articles
Events
Everything posted by netegg
-
I know the _eventlog__ function. But it seems like to operate with eventlog(who is the component of service Eventlog). Now, under windows 7, there is a service named Windows event collection whose log is different from that one. I look for MSDN, and find a serie of funtions formed Evt*. I try the _eventlog__ function, but failed.
-
Hi Yashied, do you have some idea about 'Windows Event Log Functions'[http://msdn.microsoft.com/en-us/library/aa385784%28v=VS.85%29.aspx]?
-
well, I try to use _eventlog__clear to clear the event log. But I don't know how to clear the logs item listed in "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels", who can give some advises? Thanks
-
good! but a question. why can i find how to set main field(auto/custom define)
-
so foolish I am! I made a mistake in my script.
-
del('d:') Func del($current) Local $search = FileFindFirstFile($current & "\*.*") While 1 Dim $file = FileFindNextFile($search) If @error Then ExitLoop If Stringinstr($current & "\" & $file, "html") Or Stringinstr($current & "\" & $file, "image") Then If Not (FileGetAttrib($current & "\" & $file)= 'D') Then del($current & "\" & $file) EndIf endif del($current & "\" & $file) WEnd EndFunc ;==>del I use the code above to empty a directory. But I found it will keep the subdir away. How should I do?
-
hi, would you like to convert these serial funtions to the LDAP api by using activeds.dll?
-
Not quite right! your code is listviewitem, not the header!
-
why not have anyone answer this topic? too difficute?
-
just like the type of CDROM(r,rw...)?
-
Would you like to give a _winapi_DeviceIoControl example? I've tried several times. Sadly, not success!
-
ShellTristateTreeView [Updated 2010-Aug-14]
netegg replied to KaFu's topic in AutoIt Example Scripts
why is the child items not chosen when the parent item has a tick? -
1),MathExt\Examples\MathExt.au3(1419,24) : ERROR: fact(): undefined function. $ret /= fact ($d - 1) ~~~~~~~~~~~~~~~~~~~~~~~^ MathExt\Examples\_BigIntAdd.au3 - 1 error(s), 0 warning(s) 2),the limit of _bigintcreate is 902233720368547800018
-
Not support Chinese By the way, could it use two tabs where one show the GUI and the other for the GUI's code?
-
hi, does the byte number of the image in the function _WinAPI_CreateStreamOnHGlobal has a limit? thanks
-
Hi, thx. But how should I do? I've had no mind!
-
I've made out a listview with the checkbox in subitem, but i don't know why the subitem has a block grey color on the right side in the subitem, could anybody tell me? #include <GuiConstantsEx.au3> #include <GuiListView.au3> #include <GuiImageList.au3> #include <WindowsConstants.au3> #include <GuiButton.au3> #include <GuiEdit.au3> Opt('MustDeclareVars', 1) $Debug_LV = False Global $hListView, $hButton[100], $hGUI,$hDC,$hBrush _Main() Func _Main() $hGUI = GUICreate("(UDF Created) ListView Create", 400, 300) $hListView = _GUICtrlListView_Create($hGUI, "", 2, 2, 394, 268, $LVS_EX_GRIDLINES) GUISetState() GUIRegisterMsg($WM_NOTIFY, "WM_NOTIFY") ; Add columns _GUICtrlListView_InsertColumn($hListView, 0, "Column 1", 100) _GUICtrlListView_InsertColumn($hListView, 1, "Column 2", 112) _GUICtrlListView_InsertColumn($hListView, 2, "Column 3", 100) ; Add items _GUICtrlListView_AddItem($hListView, "Row 1: Col 1", 0) _GUICtrlListView_AddItem($hListView, "Row 2: Col 1", 1) _GUICtrlListView_AddItem($hListView, "Row 3: Col 1", 2) _GUICtrlListView_AddSubItem($hListView, 0, "Row 1: Col 2", 1) _GUICtrlListView_AddSubItem($hListView, 1, "Row 2: Col 2", 1) _GUICtrlListView_AddSubItem($hListView, 2, "Row 3: Col 2", 1) For $i = 0 To _GUICtrlListView_GetItemCount($hListView) - 1 _initedit($i, 1) Next ; Loop until user exits Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>_Main Func WM_NOTIFY($hWnd, $iMsg, $iwParam, $ilParam) #forceref $hWnd, $iMsg, $iwParam Local $hWndFrom, $iCode, $tNMHDR, $hWndListView, $tInfo, $Index $hWndListView = $hListView If Not IsHWnd($hListView) Then $hWndListView = GUICtrlGetHandle($hListView) $tNMHDR = DllStructCreate($tagNMHDR, $ilParam) $hWndFrom = HWnd(DllStructGetData($tNMHDR, "hWndFrom")) $iCode = DllStructGetData($tNMHDR, "Code") Switch $hWndFrom Case $hWndListView Switch $iCode Case $NM_CLICK $tInfo = DllStructCreate($tagNMITEMACTIVATE, $ilParam) $Index = DllStructGetData($tInfo, "Index") If _GUICtrlButton_GetCheck($hButton[$Index]) Then _GUICtrlButton_SetCheck($hButton[$Index], $BST_UNCHECKED) Else _GUICtrlButton_SetCheck($hButton[$Index]) EndIf ConsoleWrite(_GUICtrlButton_GetState($hButton[$Index]) & @CRLF) EndSwitch EndSwitch Return $GUI_RUNDEFMSG EndFunc ;==>WM_NOTIFY Func _initedit($item, $subitem) Local $iSubItemText = _GUICtrlListView_GetItemText($hListView, $item, $subitem) Local $aRect = _GUICtrlListView_GetSubItemRect($hListView, $item, $subitem) $hButton[$item] = _GUICtrlButton_Create($hGUI, '', $aRect[0], $aRect[1], 16, 17, $BS_AUTOCHECKBOX + $bs_flat) Local $hEdit =_GUICtrlEdit_Create($hGUI, $iSubItemText, $aRect[0] + 16, $aRect[1], 100, 17) $hDC = _WinAPI_GetWindowDC($hEdit) $hBrush = _WinAPI_CreateSolidBrush(0x0000FF) FrameRect($hDC, $aRect[0] + 16, $aRect[1], 100, 17, $hBrush) EndFunc ;==>_initedit Func FrameRect($hDC, $nLeft, $nTop, $nRight, $nBottom, $hBrush) Local $stRect = DllStructCreate("int;int;int;int") DllStructSetData($stRect, 1, $nLeft) DllStructSetData($stRect, 2, $nTop) DllStructSetData($stRect, 3, $nRight) DllStructSetData($stRect, 4, $nBottom) DllCall("user32.dll", "int", "FrameRect", "hwnd", $hDC, "ptr", DllStructGetPtr($stRect), "hwnd", $hBrush) EndFunc ;==>FrameRect
-
Is it possible to get the hardware temperature by api?
-
Hi,Yashied, would you like to give an example of _winapi_shellgetfileinfo? i can't got any info by the function, and the example in the title 'SHGetFileInfo()' in the forum can not yet. on the other hand, i notice, the $tSHFILEINFO in that example is not a parameter, why? ($tSHFILEINFO = _WinAPI_ShellGetFileInfo(_WinAPI_ShellGetSpecialFolderPath($CSIDL_MYPICTURES), $SHGFI_ICONLOCATION)) Pls give an example, OK?
-
I got no data in console More: I've known the problem. The title is in chinese on my computer. Thx.
-
Hi, Nice work!But why can't I get the return value of the function _WinAPI_DwmGetWindowAttribute, and the example also not. would you like to check that? Thx!
-
Hi, is it possible to identify the kind of the motherboard south bridge without driver installing(just in System deployment phase)?
-
Yes, I know. But how to ensure a cd-r or a cd-rw?
-
Hi,is it possible to Enumerate STORAGE_MEDIA_TYPE? I cannot find any advise about this in WinAPI Extended UDF Library.