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!
Is this possible with Ranorex?
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
It depends on the application, you can try the following code with the V1.5 version:1. Now there is my question: Can you make Ranorex make my button pushable without clicking on the control above?
Code: Select all
Button button = (Button)form.FindChildText("button1");
if (button != null)
button.Enabled = true;
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.2. Ranorex Spy shows handles: for example: 0x10043C
Is this the offset in RAM?
Jenö
Ranorex Team