Can RoboTask read text of ToolTip(s)

Discuss RoboTask here
Post Reply
User avatar
robotask
Posts: 36
Joined: Thu May 02, 2013 11:19 am

Can RoboTask read text of ToolTip(s)

Post by robotask »

For example, hovering the mouse over the systray area of RT icon would display a tooltip "RoboTask 5.6.4.809"

Can RoboTask read this and store mouse coordinates ?
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Can RoboTask read text of ToolTip(s)

Post by Oleg »

I'm afraid that no

Theoretically the tooltip is a window with own class and title, but it is being opened only if you place mouse cursor over corresponding element.
Oleg Yershov
User avatar
robotask
Posts: 36
Joined: Thu May 02, 2013 11:19 am

Re: Can RoboTask read text of ToolTip(s)

Post by robotask »

That is precisely what I am proposing to do

1. Loop all Systray icons via a Do - End Loop, moving 1 pixel at a time with some Wait 2 to 3 seconds between
2. If a ToolTip, any text, any icon, displays, write it to a file with the Mouse X and Y coordinates
User avatar
robotask
Posts: 36
Joined: Thu May 02, 2013 11:19 am

Re: Can RoboTask read text of ToolTip(s)

Post by robotask »

Here is a sample that loops all hidden and child and writes to a text file
This works except that I really do not want empty captions and tried using Length({wname}) and I also do not have a WhereIsMouse X Y saved

[Root]

[Actions]

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

[Actions\Action1\Params]
expand=STRING|"0"
varkind=STRING|"1"
varname=STRING|"WH"

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

[Actions\Action2\Params]
expand=STRING|"0"
varkind=STRING|"1"
varname=STRING|"WNAME"

[Actions\Action3]
ActionID=STRING|"A_LOOP_WINDOW"
Enabled=INTEGER|-1
Name=STRING|"Window Loop"
Params=FOLDER

[Actions\Action3\Params]
caption=STRING|"1"
captionexact=STRING|"0"
captionfilter=STRING|"0"
captionvariable=STRING|"WNAME"
class=STRING|"0"
classexact=STRING|"0"
classfilter=STRING|"0"
handlevariable=STRING|"WH"
showchild=STRING|"1"
showhidden=STRING|"1"

[Actions\Action4]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER

[Actions\Action4\Params]
case=STRING|"0"
operator=STRING|"3"
type=STRING|"0"
value1=STRING|"Length({wname})"
value2=STRING|"1"

[Actions\Action5]
ActionID=STRING|"A_FILE_TEXTWRITE"
Enabled=INTEGER|-1
Name=STRING|"Create text file e:\temp\windows.txt"
Params=FOLDER

[Actions\Action5\Params]
encode=STRING|"0"
fileexists=STRING|"1"
filname=STRING|"e:\temp\windows.txt"
line0=STRING|"{wname}"
linecount=STRING|"1"
suppress=STRING|"0"

[Actions\Action6]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"

[Actions\Action7]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"
Post Reply