Jump to content

New window trigger


Recommended Posts

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>

Link to comment
Share on other sites

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]
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...