koushik Posted June 24, 2008 Posted June 24, 2008 Hi, I need to add a column to the details view whenever selected folders are opened. I wrote the code to add the column to an explorer window - But how can I make this code get triggered everytime ANY new window (any folder) is opened? Is there some event similar to OnWindowOpen()?? Thanks Koushik <CODE> #Include <GuiListView.au3> #include <GuiConstantsEx.au3> #Include <GuiToolTip.au3> ApplyRevisionView ("New Folder","Koushik"); func ApplyRevisionView ($title,$revision) $hWnd = Wingethandle ($title,"FolderView") WinActivate($title) WinWaitActive ($title) ;$ret = ControlListView("STHI","FolderView",1,"GetItemCount") ;MsgBox (0,"$ret",$ret) $listhandle = ControlGetHandle ( $title, "FolderView", 1 ); _GUICtrlListView_SetView($listhandle,0); $filecount = _GUICtrlListView_GetItemCount($listhandle) $newcolumnindex = 1 $newcolumnindex =_GUICtrlListView_InsertColumn($listhandle, $newcolumnindex, "Revision123456", 100); $text = $revision for $i = 0 to $filecount _GUICtrlListView_AddSubItem($listhandle, $i, $text &" "&$text, $newcolumnindex,1) Next EndFunc </CODE>
goldenix Posted June 24, 2008 Posted June 24, 2008 WinList function & WinActive you will need to compare I guess My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
koushik Posted June 24, 2008 Author Posted June 24, 2008 WinList function & WinActive you will need to compare I guessThanks for the reply.. Thats a good option .. but i was looking for functions related to OnEvent and the usage of codes like WM_ACTIVATE...
AdmiralAlkex Posted June 24, 2008 Posted June 24, 2008 Maybe you coul use THIS .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
koushik Posted June 24, 2008 Author Posted June 24, 2008 Thanks AdmiralAlkex !! That seems to be exactly what I am looking for.
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