How to find image on whole screen? - ui-automation

Is it possible to click on an image, that is not located in a specific container element?
When I do have a container, I use something like this:
MyRepo.AnyForm.AnyElement.Click(new Location(Imaging.Load(anyPicture.bmp)));
and that works very well.
But now, I want to click on a menu item inside some context menu that Ranorex is not able to identify. So I want to let Ranorex easily search the whole screen for the target image.
Something like this:
AnyElementThatRepresentsTheWholeScreen.Click(new Location(Imaging.Load(anyPicture.bmp)))
Thanks and regards,
fachexot

I've found it. Here the solution if someone has the same problem:
Host.Local.Click(new Location(Imaging.Load(anyPicture.bmp)));

I have image in GridItem. I am able to find the GridItem and Image.I am not able to Click it from my UI Automation Sample.I am doing it in c++
IUIAutomationElement* p1
.......
.......
POINT clickable;
BOOL gotClickable;
hr = p1->GetClickablePoint(&clickable,&gotClickable);
mouse_event(MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP,clickable.x,clickable.y,0,0);

Related

UNITY/Vuforia Question: Click Button Take Screenshot Save to Gallery iOS/Android

Complete coding newbie trying to do this.
I created a button in my scene and I need to now find a C# script that will allow me to call OnClick --> take screenshot --> save it to gallery in iOS/Android. I've been looking all over the Internet and I've seen bits and pieces of how to do this, but nothing complete.
I found this: https://github.com/yasirkula/UnityNativeGallery
but utterly confused about what code I need so that I can drag it onto the button. Please help. Thank you!

How to Create Tabgroup on smartface app studio

I have tried to create a tab-view or tab-group like control on smartface.io but I can't find any solution on the website.
Please any one have idea on how to create tab group. I can't find any tab-view on their the view pallet of IDE. thanks
You can use textbuttons, place them at the top of the page, use as many as you need. And place container objects under these buttons. When you press a button, make the related container's visibility true and other's false. For example, when pressed button1, let
cont1.visible = true;
cont2.visible = false;
cont3.visible = false;
and so on.
Also you should check Smartface in Action project. You can find project in Welcome page, for example in pgListView.

form with image loading from picture folder not showing correctly

i am developing an application to show pictures as slide show.there are two containers. first container showing links.when user click on link next containers appears and show images. But the second container is displaying but it is at the back of first container. how can i avoid this
please help me
thanks in advance
You should post your code, but a guess is you need to edit your CSS and add float:right to the image container CSS perhaps.
<div id="link">Some link</div><div id="photo" style="float:right;"></div>
Just a guess but that could be what you're dealing with.
How do you replace the containers? If you use something like parentForm.replace(firstContainer, secondContainer, transition); this should work just fine.

changing the image of a draw2d button after creation

I am writing an eclipse plugin using draw2d. I am creating a draw2d button using the constructor : Button(Image image). At some point I want to change the image on that button! I can not find a way of doing it. Can anyone help me please?
Kind Regards,
Kyriakos
You could do the following:
Button button = ...
Image newImage = ...
((Label) button.getChildren().get(0)).setIcon(newImage);
It's certainly not nice, but it seems to be the only option.
Can't be done. The function that sets the image on the button is Clickable.setContents, which is protected. There is nothing in the documentation telling why this was done... You can try to inherit from Button and adding a new function to implement this.

iPhone multi view/window switch

I've now put all night and tried to get my iPhone program to perform as intended, it has also succeed me sometimes but now I have pages with a problem I simplehen can not get resolved.
've tried this video guide that makes it I want it to but I stare my project up with NSObject (Windows Based) for my program.
Has anyone any. can help me a little further here? or link to come there can get me on track again
link: http://www.youtube.com/watch?v=2GeazgOqKJ4
U can change that NSObject to UIView while selecting the view itself,
Just Right click classes-->Add Files-->in that dialog box, the bottom section contains a dropdown list box from there u can select ur required Type....