Gui window Positioning in Autohotkey - user-interface

In Autohotkey,
I want to position my Gui window to right bottom of the screen but how?
For illustrate,
+--------------------------------------+
| Desktop (screen) |
| |
| |
| +----------+ |
| | Gui | |
| | window | |
| | | |
| | | |
| +----------+ |
+--------------------------------------+

You'll need to use the pre-defined width and height of the GUI with the internal variables A_ScreenWidth and A_ScreenHeight and force Param2 of Gui, Show as an expression to make it work. For example if the width of the GUI is 900 and the height is 550:
Gui, Show, % "x" A_ScreenWidth - 900 " y" A_ScreenHeight - 550 " w" 900 " h" 550, The GUI

You can easily do this using a tool build itself using the autohotkey.
This tool has a drag and drop support for positioning your controls according to your own liking.
Give it a try. You won't regret it. :)
No installation required, just run the file.
SmartGui

Related

how to use pywinauto to get checkbox in treeview

some UI list like this have some button or check box in treeview
| | GroupBox - '' (L807, T366, R1257, B746)
| | ['GroupBox']
| |
| | TreeView - '' (L815, T382, R1249, B732)
| | ['TreeView']
| | child_window(auto_id="1176", control_type="Tree")
| | |
| | | CheckBox - 'Intrusion Prevention' (L839, T384, R957, B402)
| | | ['CheckBox', 'Intrusion PreventionCheckBox', 'Intrusion Prevention', 'CheckBox0', 'CheckBox1']
| | | child_window(title="Intrusion Prevention", control_type="CheckBox")
| | |
| | | CheckBox - 'USB Malware Protection' (L874, T402, R1010, B420)
| | | ['USB Malware ProtectionCheckBox', 'CheckBox2', 'USB Malware Protection']
| | | child_window(title="USB Malware Protection", control_type="CheckBox")
| | |
| | | TreeItem - 'Network Virus Protection' (L858, T420, R996, B438)
| | | ['Network Virus Protection', 'Network Virus ProtectionTreeItem', 'TreeItem', 'TreeItem0', 'TreeItem1']
| | | child_window(title="Network Virus Protection", control_type="TreeItem")
I can use TreeView to see Treeitems like this
dlg = app.top_window()
a = dlg.TreeView
b = a.print_items()
i can see b have tree item (ex:Network Virus Protection) but no checkbox (ex:Intrusion Prevention) so how can i get checkbox ele from treeview?
i know can use child_window("title") to get check box , but i need get this ele and check it text, so use title are not better
you can try this extension,
https://marketplace.visualstudio.com/items?itemName=ClickCorp.clicknium
it includes one automation library, and can recorde the checkbox and do check or uncheck operation:
ui(locator.notepad.checkbox).check()

Find the fonts with the best UTF-8 coverage in my Emacs

I'd like to be able to find the fonts which will have the best coverage in (Windows) Emacs for those UTF-8 chars:
| 0x0000B7 | MIDDLE DOT |
| 0x00229E | SQUARED PLUS |
| 0x00229F | SQUARED MINUS |
| 0x0022A0 | SQUARED TIMES |
| 0x0022A1 | SQUARED DOT OPERATOR |
| 0x002423 | OPEN BOX (wider in Consolas!) |
| 0x002502 | BOX DRAWINGS LIGHT VERTICAL |
| 0x00250C | BOX DRAWINGS LIGHT DOWN AND RIGHT |
| 0x002514 | BOX DRAWINGS LIGHT UP AND RIGHT |
| 0x0025A0 | BLACK SQUARE |
| 0x0025A1 | WHITE SQUARE |
| 0x0025AA | BLACK SMALL SQUARE |
| 0x0025AB | WHITE SMALL SQUARE |
| 0x0025B8 | BLACK RIGHT-POINTING SMALL TRIANGLE |
| 0x0025B9 | WHITE RIGHT POINTING SMALL TRIANGLE |
| 0x0025BA | BLACK RIGHT-POINTING POINTER |
| 0x0025BB | WHITE RIGHT POINTING POINTER |
| 0x0025BC | BLACK DOWN-POINTING TRIANGLE |
| 0x0025BE | BLACK DOWN POINTING SMALL TRIANGLE |
| 0x0025BF | WHITE DOWN-POINTING SMALL TRIANGLE |
| 0x0025CB | WHITE CIRCLE |
| 0x0025CC | DOTTED CIRCLE |
| 0x0025CF | BLACK CIRCLE |
| 0x0025E7 | SQUARE WITH LEFT HALF BLACK |
| 0x0025E8 | SQUARE WITH RIGHT HALF BLACK |
| 0x0025E9 | SQUARE WITH UPPER LEFT DIAGONAL HALF BLACK |
| 0x0025EA | SQUARE WITH LOWER RIGHT DIAGONAL HALF BLACK |
| 0x0025EB | WHITE SQUARE WITH VERTICAL BISECTING LINE |
| 0x002702 | BLACK SCISSORS |
| 0x002704 | WHITE SCISSORS |
| 0x002691 | BLACK FLAG |
| 0x002690 | WHITE FLAG |
| 0x002709 | ENVELOPE |
| 0x002717 | BALLOT X |
| 0x002713 | CHECK MARK |
| 0x002620 | SKULL AND CROSSBONES |
| 0x002197 | NORTH EAST ARROW |
| 0x002191 | UPWARDS ARROW |
| 0x002193 | DOWNWARDS ARROW |
| 0x0021BA | ANTICLOCKWISE OPEN CIRCLE ARROW |
| 0x0021AA | RIGHTWARDS ARROW WITH HOOK |
| 0x00260D | OPPOSITION |
| 0x002729 | STRESS OUTLINED WHITE STAR |
| 0x002605 | BLACK STAR |
| 0x002699 | GEAR |
| 0x00267B | BLACK UNIVERSAL RECYCLING SYMBOL |
(These are signs which could typically be used for Org-mode or Gnus marks, among others).
How can I do that without testing fonts one by one?
Is there a way, as well, to ensure that those fonts are non-proportional?
Step one: don't tie this question to emacs; as a question about "which fonts do I have with maximum coverage", your want a utility that tells you about coverage.
With that covered: be less specific in the coverage you need. Instead of saying "I need these glyphs", look at what that means in terms of "these are the Unicode Blocks I need". Then you can use something like babelmap to see which fonts you have installed with support for specific Unicode blocks by opening it, navigating to the block(s) you need, and hitting F7 to see the list of fonts you have installed that support it.

How can I disable resize in a View

My main window looks like this:
____________________________
|Upper View |
|___________________________|
|Left View|Editor|Right view|
| | | |
| | | |
| | | |
and I want to make the upper view not resizable.
The Perspective.createInitialLayout is:
layout.addStandaloneView(URLView.ID, false, IPageLayout.TOP, 0f, layout.getEditorArea());
layout.addStandaloneView(ServicesView.ID, false, IPageLayout.LEFT, 0.2f, layout.getEditorArea());
IFolderLayout folder = layout.createFolder("responses", IPageLayout.RIGHT, 0.6f, layout.getEditorArea());
folder.addPlaceholder(ResponseView.ID + ":*");
folder.addView(ResponseView.ID);
layout.getViewLayout(ResponseView.ID).setCloseable(true);
Is there any way to do it?
Thank you!
There is no easy way to make a view non-resizable. A possible way could be to introduce a banner to place the content of that view inside this banner. I've written some time ago a small example

Oracle reports center aligning the header of a field in a repeating frame

I have a label and a field as in the follwing layout.
________________
| _____ |
| | | |
| |Label| |
| |_____| |
| |
| ____________ |->Outer fixedframe
| | _______ | |
| | | | | |
| | |field| | |
| | |_____| | |
| |__>_______| |
| | |
| -->Inner |
| Horizontally expanding repeating frame
|______________|
I would like to center align the label with respect to the field in the inner repeating frame. For example,
If the repeating frame generates 5 fields, the label needs to be right above the 3rd field.
Is this possible using oracle reports or any alternate layouts?. Any help would be much appreciated
I just got this working with a quick mock-up and here is how I did it:
1) Select the "Anchor" tool from the tool palette and anchor the bottom middle "outline square" (I'm not sure what the technical term for those are but the grab-points on an object where you can resize them) from the label object and connect it to the top middle "outline square" of the horizontal repeating frame.
2) [Optional] Click on the anchor line and check the properties to make sure the Child Edge Type is set to "Bottom", the Child Edge Percent is "50", the Parent Edge Type is "Top", and the Parent Edge Percent is "50".
3) Click on the label and set the Keep With Anchoring Object property to "Yes".
4) Make sure your label is centered over the repeating frame in the Paper Layout view. I noticed that if it is off-centered to start with it will be off-centered by the same amount when run. I ended up making the label the same width as the repeating frame it was over and then set both to a Horizontal Elasticity of "Variable".
I ran this with 5 horizontally repeated objects and then I added a 6th to verify it remained centered and both worked.
Hope that helps and that I didn't miss a step. I'll save the mock-up in case it needs further steps or explanation.

Visual studio 2010 IDE layout

My current visual studio panel layout looks similar to the drawing below:
-----------------
| | | |
| | | |
| | | |
| | |--|
| | | |
| |---------| |
| | | |
-----------------
I really don't need the full height of the screen for the toolbox or server explorer and was wondering if there was a way to change the layout so that the bottom section extended all the way to the left edge of the screen like in this drawing:
-----------------
| | | |
| | | |
| | | |
| | |--|
| | | |
|------------| |
| | |
-----------------
I am space constrained on the right side, so a symetric layout with the bottom section running full width wouldn't be acceptable. I've tried dragging stuff around but haven't had any luck in getting VS to position the panels as I want. Is my desired layout not possible or am I missing the right way to coax the layout into fitting?
Yes, you can do this. When you are dragging the toolbox, note the little "targets" in the center of the screen. Drop the toolbox onto the target that corresponds with the area where you want it docked.
See here for more detail and pics.
Drag the bottom panel off and make sure to mouse over the icon that appears all the way at the bottom center of the screen, although this will cause it to take up the whole bottom portion of the IDE,
That's an easy process.
Drag the window docked in the bottom to middle of the VS window so that it floats in the middle.
Now when you drag it, a helper would apper to doc it.
You'll have some dynamic docking helpers like below.
↑
↑
← ← → →
↓
↓
if you chose the downarrow in the dock helper in the middle, you'll get the layout like this.
| | | |
| | | |
| | | |
| | |--|
| | | |
| |---------| |
| | | |
-----------------
If you chose the downarrow all the way at the bottom, you'll get the layout like this.
| | | |
| | | |
| | | |
| | |--|
| | | |
|---------------|
| |
-----------------

Resources