ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Coding Snacks

Screenshot on alarm

<< < (3/4) > >>

MilesAhead:
I think you would have a better idea if you read through the Hello World example for Sikuli:
http://doc.sikuli.org/tutorials/helloworld/helloworld-win.html

As you can see Click() is told what to click by a small image capture.  In this example it is the Windows Start Button.  But if you can get screen shots of the error dialogs, say the stop sign or yellow triangle for warnings would it not work for those?  The whole idea is to use it when conventional window identification fails or is very difficult.

Contro:
I think you would have a better idea if you read through the Hello World example for Sikuli:
http://doc.sikuli.org/tutorials/helloworld/helloworld-win.html

As you can see Click() is told what to click by a small image capture.  In this example it is the Windows Start Button.  But if you can get screen shots of the error dialogs, say the stop sign or yellow triangle for warnings would it not work for those?  The whole idea is to use it when conventional window identification fails or is very difficult.

-MilesAhead (January 20, 2014, 02:44 PM)
--- End quote ---
But Miles. Now i am reading javascript : An eye on events.

I think if is not a flashing window (ghost window) can be capture by many other scripting languages. No necessary to use another one.
Oh mi cabecita......
 :tellme:

Do you know if Screenshot Captor has this ability to capture a warning window when appear ?

 :-[

Contro:
I have finished the first read of javascript basic tutorial.
What i need is not create a program to manage a web page.
It's not one of my web-pages what i want to control now.
So, anyone ready to help have to know is an external web page.
 :P

and of course the problem may be general. control any external window. Because I window we expect or have created by ourselves is more easy to control i supose.

best Regards

MilesAhead:
For just the screen capture, I don't think you need that.  Sikuli has a Screen class with capture method.  It can capture interactively(user selects a region) or automatically(x,y,w,h region is captured.. e.g. the entire screen)

It may also handle multi-monitors.. but I'm not sure the depth of support for them.

http://doc.sikuli.org/screen.html#Screen.Screen

Edit:  so the basic plan would be
get captures of the warning and error dialogs.

Use Wait(image) to wait for the dialog to pop up
use Screen to take the desktop capture

-----

I'm assuming you may run more than one script at a time so one should wait for the warning graphic, the other wait for the error graphic.  Seems very intuitive since you don't have to resort to Python just for captures.  Just use the built in functions.

Contro:
Well, if you know the title,class or ID of the warning window it might be possible. I can look into making an app that will sit in the system tray and look for specific IDs,Classes and Window titles and then when it see's that window take a screen shot of it. Did you want the whole full screen window or just the window with the error/warning?
-c.gingerich (January 20, 2014, 09:28 AM)
--- End quote ---
How do you do ?
Then is possible this app.
Perhaps the best way is indicate what windows are not interesting and assure the windows we have to control.
Or any other similar way.
 :-*

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version