Is this possible with Ranorex?

Ask general questions here.
absolutanon
Posts: 1
Joined: Sun Dec 21, 2008 2:21 pm

Is this possible with Ranorex?

Post by absolutanon » Sun Dec 21, 2008 2:44 pm

Hi, i'm quite new here and I would like to know if the following thing is possible with Ranorex:

I have a GUI from a program that is not written by me. This GUI contains a button.

This button has the following data using Ranorex Spy:

--------------------------------------------------------------
Control:

Caption/text: "OK"
Class name: "Button #3"
Control name: ""
Control Id: "16382"
Parent: "0x20408"
style and rect should not be so importan

Element:

Role: "PushButton (43)"
Name: "OK"
Class: "Button"
Value: ""
State: "ausgeblendet" -> in english: "invisible"
Default action: ""

--------------------------------------------------------------

So far so good. If you activate a control above in the GUI, the the following things are changing:

State: ""
Default action: "Drücken" -> in english: "push"

So if the State is changed to "" the button is active, which is exactly what I want.

1. Now there is my question: Can you make Ranorex make my button pushable without clicking on the control above?

2. Ranorex Spy shows handles: for example: 0x10043C
Is this the offset in RAM? My hex editor shows unreadable data here. You have an idea why? I observed the whole RAM, maybe I should only have a look on one specific process or a .dll file?

So maybe there is an expert who can answer at least one question :)

Thanks in advance!

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Post by Support Team » Mon Dec 22, 2008 5:35 pm

1. Now there is my question: Can you make Ranorex make my button pushable without clicking on the control above?
It depends on the application, you can try the following code with the V1.5 version:

Code: Select all

Button button = (Button)form.FindChildText("button1");
if (button != null)
    button.Enabled = true;
2. Ranorex Spy shows handles: for example: 0x10043C
Is this the offset in RAM?
No, this is a dynamically generated unique integer identifier, this number has nothing to do with the RAM. But you can change the properties of the control with the help of this handle. See the SendMessage() windows API functions.

Jenö
Ranorex Team