When a certain image of a button popups up, I want to click that image. How can this be done with AppleScript?
You should check out project SIKULI.
Related
I'm trying to programmatically open an image from a folder and have it completely fill the screen, and it seems the only way to have an image completely fill the screen is to click the Slideshow button in Windows Photo Viewer and pause the slideshow. However, in Windows 10 it isn't even possible to programmatically open an image (at least, not via the command line, using either Windows Photo Viewer or Photos), let alone paused in slideshow mode.
If not the command-line, are there any other good programmatic solutions for what I want to do?
Hashim - You could quite easily write an app for this using open Lazarus.
Seems like the iOS simulator added a new ToolBar, which I am unable to hide.
Is there any shortcut to hide it?
Assuming you want a nice screenshot with the device the following worked for me, from Swany's answer on this Apple forum thread :
In a terminal, disable shadows on Screenshots with the following command:
defaults write com.apple.screencapture disable-shadow -bool TRUE; killall SystemUIServer
Take a screenshot with Screencapture, either by selecting a region without the Toolbar, or of the whole Simulator window and crop the Toolbar.
You can still add shadow on the image wherever you use it.
The following command reverses the change to the screencapture app :
defaults write com.apple.screencapture disable-shadow -bool FALSE; killall SystemUIServer
While you won't be able to hide the toolbar, I discovered a solution that worked very well for me and doesn't involve changing user defaults (which didn't work for me).
With the Simulator window open, open up the Screenshot application. On the floating utility bar, there will be an option for "Capture Selected Window".
Click on this, and it will turn your mouse cursor into a camera. Hover over the widow you want to take a screenshot of (Simulator in this case) and alt + click.
This will save a screenshot with no drop shadow, which you can easily crop in Preview or any other imaging editing software in order to remove the bar at the top.
It will have a transparent background so it will be very easy to work with.
No there is no way to hide the toolbar. It is an integrated toolbar and title bar.
If you'd like to see this option please file a feedback request for it.
I have an old app to automate using AutoIt.
My biggest problem is to access a specific button inside a toolbar (like the example message).
When inspecting, the inspector only shows the info of the toolbar, not the individual buttons. I can't inspect a specific element inside it.
How can I tell the script which button should be clicked? Maybe find the tool bar and tell to click button 3, but how? Is it possible like this?
Thanks.
Resolved with the instance number of the button inside the toolbar.
Example: [CLASS:Viewcore_W32; INSTANCE:3]
I have to do some attempts with different indexes until right button is clicked but it works now.
Thanks.
I need to verify if my application window flashes in the windows taskbar.Is there anyway to do that in TestComplete?
Thanks
There is no a straightforward way to do this. The only thing I can suggest is to save an image of the taskbar item before it should start flashing and then compare the actual image with the saved image. If the images are different, the window caption is flashing.
When I downloaded Skype, I noticed that, in place of a normal "disk image" icon, there was a custom icon, and when I double clicked on the icon, the window used a colorful image as the background, prompting me to drag the skype icon into the applications folder.
How can I do that with my applications?
Thanks,
Jason
Let me add to the other answers jwz's howto on setting view options on .dmg files. This is the simplest one that I got to work with no problems.
Also, to change the icon from the default .dmg icon:
In the Finder, open an inspector window (^I) for the file whose icon you want to use, click on the icon at the top (it will get a blue border) and copy it to the clipboard (^C).
Then open another inspector for your .dmg, click on the icon and press ^V to paste
(you can change the icon for any file like this).
For this kind of thing, you can always look at open-source programs and see what they do to get a similar result. For example here are the relevant source files for building pretty dmg files in:
Adium
Miro
If you’re interested in a commercial solution, there are a number of DMG designer apps available, including the following I gleaned from a MacUpdate search:
DMG Packager
DMG Architect
DMG Canvas
This is a great freeware solution for a custom background with zero hassle:
http://sourceforge.net/projects/dmgcreator/