Page 1 of 1

Windows Watcher

Posted: Fri Feb 03, 2006 2:16 am
by steph@vds
Hi,
I've a question about the Window Watcher.
I suppose that the caption is the text that appears in the window bar
but how do the Window Classes work in Windows XP. Moreover I tried to
assign a variable to the Window Handle but I don't understand what is a
Window Handle.

Could you explain me what are the "handles" please.

Steph@vds.

Windows Watcher

Posted: Fri Feb 03, 2006 2:55 am
by Oleg
Window handle is an Identifier (ID) of window. It is unique number within your computer. Operating system (Windows) assign handle to each window. If you use handle, you will have no any inexactitude when you want to process single window.
For example: you may launch a few Notepads. All notepad windows will have same captions and window classes (kind of window), but each window will have own unique number (handle).

I hope I've helped you.

Windows Watcher

Posted: Fri Feb 03, 2006 3:03 am
by Oleg
In Window Watcher it is important parameter if you want to process exactly this window, which has called actuation of the event.

Windows Watcher

Posted: Fri Feb 03, 2006 5:41 am
by steph@vds
Hi Oleg,

When I tried the "Handle" option, Robotask returns me an empty Dialog box :
;**********************
;* RoboTask Task file *
;* Do not edit!       *
;**********************
 
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|0
CatID=INTEGER|1789981768
ContinueOnError=INTEGER|0
Events=FOLDER
ExternalName=STRING|"Task115"
Hide=INTEGER|0
ID=INTEGER|1579318035
Name=STRING|"HANDLE"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3

[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER

[Actions\Action1]
ActionID=STRING|"A_VARIABLES_CREATE"
Enabled=INTEGER|-1
Name=STRING|"Create variable ""HANDLE"" with value """""
Params=FOLDER

[Actions\Action1\Params]
expand=STRING|"0"
varname=STRING|"HANDLE"

[Actions\Action2]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""{HANDLE}"""
Params=FOLDER

[Actions\Action2\Params]
icon=STRING|"1"
msg0=STRING|"{HANDLE}"
msgcount=STRING|"1"
playsound=STRING|"0"
showmessage=STRING|"1"

[Actions\Action3]
ActionID=STRING|"A_VARIABLES_REMOVE"
Enabled=INTEGER|-1
Name=STRING|"Remove variable ""HANDLE"""
Params=FOLDER

[Actions\Action3\Params]
varname=STRING|"HANDLE"

[Events]
Event1=FOLDER

[Events\Event1]
Enabled=INTEGER|-1
EventID=STRING|"E_WINDOW_WATCHER"
Params=FOLDER

[Events\Event1\Params]
assignvariable=STRING|"1"
child=STRING|"0"
classexact=STRING|"0"
exact=STRING|"0"
hidden=STRING|"0"
id=STRING|"K3SI0219F"
usecaption=STRING|"1"
useclass=STRING|"0"
variable=STRING|"HANDLE"
watchfor=STRING|"1"
wincaption=STRING|"Bloc-notes"

---------------------------------------
It's not very important, because this option isn't very usefull for me.

I had another question for you. I created many tasks since I've
purchased robotask and I'd like to know if there is a way to have a
summary of all tasks triggered (i.e to get the list of all Hotkeys
used).
Thanks a lot.

Steph@vds.

Windows Watcher

Posted: Fri Feb 03, 2006 8:35 am
by Oleg
You're wrong. Try to remove first step . It assign empty value to your variable and erases previous value.
Window watcher will create necessary variable himself.