Jump to content

Am3oo

Members
  • Posts

    8
  • Joined

  • Last visited

About Am3oo

  • Birthday 12/02/1988

Am3oo's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi, I am encountering the following situation, where I have a bunch of elements inside a control, for which I do not know the handle/classname: Control-----------------------------| | bbb aaa xxx | | bbb aaa xxx | |--------------------------------------| The info tool gives me the classname/instance of Control, but not for the buttons inside (b,a,x). Since this case appears very, very often, I was asking myself if it is possible to click on a specific spot in an element which is identifiable. Example: pressing x:30, y:10 of Control (in this case, perssing on b button)
  2. So the question is, having a working function defined in an .au3 file, can you call that function from within java or C++, by using some kind of jar/API? At the moment, I've found autoitx4java, but it seems to be just an api for autoit general functions.
  3. Hi, it is an external application for which I might be able to access the source code, if that would be of any help. Also, I'm trying to automate testing on the app, not see which element was clicked. I was thinking that if I can get the list of visible text from the combo box, I could click on an x/y spot after computing the element's position, knowing the Font size, so the third element would be x:0, y=(font_size)*2+font_size/2 (so that it will be in the middle of the text). SO not wasting any more time, is it possible to click on a spot relative to a certain container/control?
  4. I've solved that issue with just selecting the class name provided by Window Info for the main window of the application.
  5. Hi, Considering a control with a list of clickable items present only as Visible Text Strings, can you click one of those elements? Window Info cannot select anything from that list, just the container. What I have now is: ControlClick($handler, "", "[CLASS:TRzComboBox; INSTANCE:1]"); Which expands the combo box. I can also expand it with: ControlCommand($handler, "", "[CLASS:TRzComboBox; INSTANCE:1]", "ShowDropDown",""); Then: ControlCommand($handler, "", "[CLASS:TRzComboBox; INSTANCE:1]", "SelectString", "SomeItem"); Which doesn't do anything, unfortunately for me.
  6. what if the Control has a bunch of text lines which show up in the Visible text list, but Window Info can't select them individually? Can you click on an element of the Visible Text list in a control?
  7. You, sir.. are great! Can I also get the window name when I have certain class name known? (then I'll stop asking these naive questions and only bother you people when I really can't find any documentation about something)
  8. Hi, I'm new to AutoIt, but not new to automation, although I've been only working with Web pages (Java and Selenium). I'm not sure how to go about selecting any kind of item in the application I want to interact with. Let's say The Window Info tool gives me this (it's a button on a toolbar): >>>> Window <<<< Title: Program - Home Class: TfrmCentral Position: 0, 0 Size: 1268, 768 Style: 0x16CF0000 ExStyle: 0x00050100 Handle: 0x00311762 >>>> Control <<<< Class: TRzBMToolbarButton Instance: 5 ClassnameNN: TRzBMToolbarButton5 Name: Advanced (Class): [CLASS:TRzBMToolbarButton; INSTANCE:5] ID: 1051362 Text: Repositories Position: 5, 144 Size: 69, 68 ControlClick Coords: 40, 43 Style: 0x54010000 ExStyle: 0x00000000 Handle: 0x00100AE2 I've tried: $handler= WinGetHandle("Program - Home"); WinActivate($handler); ;The 2 lines above work and the application is activated on the screen Then: _GUICtrlButton_SetState(1051362,True); Also: _GUICtrlButton_Click(1051362); ;didn't work Also: $item=_WinAPI_GetDlgItem($handler, 0x00100AE2);and with 1051362 _GUICtrlButton_Click($item); ;didn't work Any pointer would be great.
×
×
  • Create New...