Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get background color for individual days in SAPGUICalendar with QTP
#1
Solved: 11 Years, 1 Month ago
Hi,

I would really appreciate someones help to work out the code to retrieve background color for the individual SAPGUICalendar days using GetROProperty. This is a client requirment we are trying to output days from the SAP GUI Calendar the days which have background color green, these are days off during the weekdays of the month.

example of code used

Code:
SAPGuiSession("Session").SAPGuiWindow("Year Overview 2010").Maximize

Dim hWndSource

hWndSource = SAPGuiSession("Session").SAPGuiWindow("Year Overview 2010").SAPGuiCalendar("Calendar").GetROProperty("backgroundcolor","10/Jan/2010")

msgbox hWndSource

The issue with above code is that it gives me a blank message were I am expecting a green color value.

I have attached a screen shot of the individual days (green boxes) within SAPGUICalendar that I am trying to capture the color value of with QTP.

Thanks in advance!


Attached Files
.zip   Trying to identify Individual Days (Green Boxes) with SAPGUICalendar using QTP.zip (Size: 25.69 KB / Downloads: 163)
Reply
Jump to the post that solved this thread.


Messages In This Thread
How to get background color for individual days in SAPGUICalendar with QTP - by AMirza - 12-11-2013, 10:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problems with Text color recognition Treirk 0 1,202 06-17-2019, 12:19 PM
Last Post: Treirk
  Getting background color of an object on mouse over Surya 2 4,041 06-27-2018, 08:51 PM
Last Post: vensas3181
  How can we get the Windows application Text box background color Using UFT 11.53 Kuppampattu 3 6,260 06-06-2017, 11:12 AM
Last Post: workrohit08
  SwfTreeview - Color validation for child item YogeshCallappa 0 2,366 11-10-2016, 04:55 PM
Last Post: YogeshCallappa
  how to get background color of a WinButton javierchen 1 3,176 03-17-2015, 10:59 PM
Last Post: babu123

Forum Jump:


Users browsing this thread: 3 Guest(s)