Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dblclick help
#2
Not Solved
I am not able to figure out to perform double click there. If I get something will let you know.
however, I can solve your co-ordinate issue -
try the code below. the code is capable to perform the left/right click on any application icon at notification area.
Code:
'Desc- Window Tray
Set oWindow = Description.Create
oWindow("regexpwndclass").value = "Shell_TrayWnd"
'Desc - WinToolBar: Notification Area
Set oSysTray= Description.Create
oSysTray("nativeclass").value = "ToolbarWindow32"
oSysTray("text").value = "Notification Area"

'Get Number of items in Notification area
nItems = Window(oWindow).WinToolbar(oSysTray).GetItemsCount
msgbox nItems

For nItem = 1 To nItems
    'Get Name
    sItemName = Window(oWindow).WinToolbar(oSysTray).GetItem(nItem)
    If  sItemName ="Skype" Then ' if the name is your required Application
        x = Window(oWindow).WinToolbar(oSysTray).GetROProperty ("X")
        y = Window(oWindow).WinToolbar(oSysTray).GetROProperty ("Y")
        Window(oWindow).WinToolbar(oSysTray).Press "Skype",micLeftBtn 'For Left Click
        Window(oWindow).WinToolbar(oSysTray).Press "Skype",micRightBtn 'For Right Click

        'Look For Menu option to open and select
        Set deviceReplay = CreateObject( "Mercury.DeviceReplay" )
        deviceReplay.PressKey VK_UP
        deviceReplay.PressKey VK_UP
        deviceReplay.PressKey VK_RETURN
    End If
Next

hope this helps

Reply


Messages In This Thread
dblclick help - by pjavvaru - 03-01-2010, 09:30 PM
RE: dblclick help - by Saket - 04-01-2010, 02:21 PM
RE: dblclick help - by pjavvaru - 04-06-2010, 12:03 AM
RE: dblclick help - by milindsd - 04-01-2010, 04:52 PM
RE: dblclick help - by pjavvaru - 04-06-2010, 01:18 AM
RE: dblclick help - by Saket - 04-01-2010, 04:56 PM
RE: dblclick help - by Saket - 04-09-2010, 12:22 PM
RE: dblclick help - by pjavvaru - 04-12-2010, 08:32 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)