Power point, make objects swap places with one another when a button is clicked on - powerpoint

I have a ppt game for my English language class where the students say a word they see, then click the square wih the dotted out line, that is on top of the picture, to reveal a shape object that shows many points they get.
I want to make it so that When the "shuffle" button is clicked, all the green shape objects, with a number written in them, swap places with another so that the value of each picture changes. Then we can play the game again.
Is there a way to do this through VBA any thing else in power point?
picture of the slide

Related

Does UI Automation ScrollPattern have a Bounding Rect or is there a reliable way to get it?

I've been messing around with UI Automation and Scrolling. I found that in notepad if you take the bounding rectangle of the scrollable window, subtract out the size of any scrollbar bounding rectangles, it scrolls perfectly. However, trying the same thing against ISpy++, which aligns the top treeview item perfectly on each scroll even when there may be one or two pixels of the next item in the view at the bottom.
The problem with that is it reports the scroll amount requested was set. Say the view was 6.384914% and you do all the math to calculate where you scroll the view to the next window, say it came out to 24.382102 (completely made up number), so you scroll there, but it really didn't because it aligned the top item which otherwise would be missing a few pixels based on height of window. You read back where scrolling decided to set it and it says it was 24.382102 (note that when the scroll actually moves a full item it does report a different final scroll position and so can be calculated out).
What would solve the above is if we knew the actual bounding rectangle of the view that represents the 6.384914% so that those extra pixels wouldn't be considered part of the view, when you move to the next page, you're now align to where the next page would actually start. In this case of the tree, the bounding rectangle would be aligned to all items that fit plus the final spacing (or that could be part of the top of the view).
I wanted to scroll and get the data perfectly without any overlaps (except on final page of course, but that could be calculated out when you have the proper aligned boundaries that matches scrolling) or extra spacing.
Is there a way to do that, that I'm missing?
TIA!!

Grow a Diagonal Arrow in Powerpoint

On my slide I have a map of the South during the Civil War. I want to place a thick arrow pointing to Atlanta from the Northwest. I then want to create an animation where the arrow moves Southeast towards Savannah over the period of a few seconds, with the rear of the arrow remaining where it started, and the head of arrow proceeding Southeast as I described. The point is to illustrate Sherman's March to the Sea.
I seem to be able to move the arrow using a motion path, but I seemingly can't grow the arrow in any other way than horizontal or vertical (not diagonally). I also tried adding a rectangle object, and adding a wipe entrance effect, but wipe seems again to only allow its effect to happen from 90 degree angles.
Can anybody help me figure out what should be a seemingly easy task? I am using Powerpoint 2013.
One way to do this would be to use multiple arrows with different lengths and the animation feature. First make all the arrows invisible.
1. Make the 1st arrow appear with a left click trigger. This becomes the *current* arrow.
2. After the required delay, make the *current* arrow disappear while making the *next* arrow appear.
3. Repeat step #2 above until done.
Depending on your background, this might work. Put a box over the diagonal arrow the same color as the background, without boarders. Now animate the box with a motion path to the southeast, allowing your arrow to be revealed. If the box is an issue, combine the motion path with a wipe disappear from west to east, on a 0.25 to 0.5 second delay.

D3: mouseover text changes within an area in sunburst

I have a sunburst code here: http://plnkr.co/edit/EG0MzWEPB242g7VdSQQd?p=preview
When I click the orange area that corresponds to "from tumor cell" (see the caption below in the diagram), I get focussed diagram centered on "from tumor cells".
When I mouseover the area in the region marked "Liver or Pancreas", the texts in the caption box below changes while it should not. I suppose this problem is only in the second and third quadrant (90 degree to 270 degree). I couldn't find a way to solve this problem after spending so much time.
I hope some one has an answer to it.
The problem is that you're attaching the mouse over handlers to the g element, which isn't updated when you click on a segment. The easy way to fix this is to attach the handlers to the path elements, which do get updated, instead. In that case you probably also want to set the text elements to receive no pointer events so that there are no spurious mouse events when moving over them.
Complete demo here.

Custom shaped NSButton

I am trying to create eight custom buttons (NSButton) in Xcode 4.6.3. Those are the segments of a circle. I used a standard rectangular button for each of them, adding a custom image for each segment. However, when I put the pieces together in one circle, there is no way to click some of these buttons, as the rectangular areas around each of them overlap, and prevent from reaching the other half of the buttons.
I was wondering if there is any way to make the button shape at least triangular, such that I can click on all of these buttons?
From the documentation "View Programming Guide":
Note: For performance reasons, Cocoa does not enforce clipping among sibling views or guarantee correct invalidation and drawing behavior when sibling views overlap. If you want a view to be drawn in front of another view, you should make the front view a subview (or descendant) of the rear view.
In other words, you can't expect overlapping views to process mouse events properly. There's no way of getting around the fact that views occupy rectangular frames. You have to make a single view which performs the work of all of your circle segments (including drawing and event handling, and optionally mouse moved events). YOu will have to use trigonometry to calculate which segment a mouse click occurs in, and respond appropriately as though a button were pressed, by re-drawing the segment and invoking the desired action.

Getting data from a graph via DataThief

DataThief is a nifty Shareware utility for extracting the coordinates from an image of a graph. After a plane is defined (by marking three coordinates on the picture), one can mouse over the graph to find the numerical coordinates of each points.
Can it be automated? Online documentation seems to be nil.
Follow the color method
First, open up the picture in DataThief.
I found it helpful to zoom in (Action Menu).
Next, I set the coordinates of some reference points on the graph, by moving the colored crosshairs.
The vertical red/green rectangle is a progress bar relating how fit, squared, orthogonal the reference points are.
I placed the Start, Color, and End markers, choose Trace (Action Menu), and then Export (File Menu).
The result was a tidy text file with my data points. Great! Now to capture some useful data.
Scatter plot method
Tracing a continuous graph appears to be just one (the upper right button) of DataThief's four data acquisition modes. Let's match the data points via the scatter plot option (lower right button). Drag the crosshairs from the gray box over each data point.
I am interested in automating this process for a graph with hundreds of data points?
I clicked on the Settings tab, fiddled with some options, and got the next graph via the Show button.
Good, the data are points can be isolated via color recognition.
The question
How do I automate the selection of an arbitrary number of points?

Resources