Sign in to follow this  
Followers 0
koushik

New window trigger

5 posts in this topic

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>

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites

WinList function & WinActive you will need to compare I guess

Thanks for the reply.. Thats a good option .. but i was looking for functions related to OnEvent and the usage of codes like WM_ACTIVATE...

Share this post


Link to post
Share on other sites

Thanks AdmiralAlkex !! That seems to be exactly what I am looking for.

Share this post


Link to post
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
Sign in to follow this  
Followers 0