how to LClick after findwindowWithText

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
ruchi
Newbie
Posts: 9
Joined: Thu May 13, 2010 3:08 am

how to LClick after findwindowWithText

Post by ruchi » Fri Jun 18, 2010 10:53 pm

Hi,

My objective is as follows in windows7:
//open bluetooth connected devices window
EXE>%sys_dir%\bthprops.cpl
movewindow>Devices and Printers,0,0
Resizewindow>Devices and Printers,462,303
set>Devices and Printers

//now I have a second station name available here STATION-100. I need to select that station and right click and do a "direct connect". I donot want to use mouse cursor monitor co-ordinates.
//I tried this
FindWindowWithText>STATION-100,1,result_variable

Now I am stuck here, I found the text successfully, but I now need to select that device and right click and go from there further on. How do I right click the text ??

This is not a button or link, it is a bluetooth connected station. I read some about mousemoverel, but I donno how to use it here :(

Thanks for the help in advance.

adroege
Automation Wizard
Posts: 438
Joined: Tue Dec 07, 2004 7:39 pm

Post by adroege » Thu Jun 24, 2010 1:31 pm

Is this what you are looking for?

Code: Select all

Let>WIN_USEHANDLE=1
FindWindowWithText>STATION-100,1,WinHandle
GetWindowPos>WinHandle,XPos,YPos

//Adjust these coordinates as necessary
Add>XPos,40
Add>YPos,100

MouseMove>XPos,YPos
LClick

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