Problem with handles, FindObject and ObjectSendKeys

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
sfrattini
Newbie
Posts: 4
Joined: Fri Aug 23, 2013 10:01 am
Location: Spain

Problem with handles, FindObject and ObjectSendKeys

Post by sfrattini » Fri Aug 23, 2013 10:25 am

#############
Nevermind, I have solved the problem using the sendkey wizard!
#############



Dear community,

I hope you can help me with an issue I am experiencing recently.
I have a small macro which is basically sending an F2 keystroke to an application called "Weather Channel LOG" on regular intervals.
This application cannot be on foreground so I thought I needed to use handles....but since it is the first time I might be doing something wrong. :(

If I use something simple like this:

Code: Select all

GetWindowHandle>Weather Channel LOG,handle
ObjectSendKeys>handle,VK_F2
the keystroke is not sent. So I tried to identify an object handle, in this case a button with the text 'Rename' in it:

Code: Select all

GetWindowHandle>Weather Channel LOG,handle
FindObject>handle,Button,Rename,1,hWnd,intLeft,intTop,intRight,intBottom,strText
ObjectSendKeys>hWnd,VK_F2
But the Object does not get recognized, tried with different ones and nothing.
I post here my View System Windows.
Image

Any help is much appreciated!
Best,

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts