Watir with AutoIT tutorial? [closed] - watir

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Is there a tutorial for using AutoIT to handle modal windows in Watir or Firewatir?

Firstly let me again plug the hardware click duck punch for WATiR, which can be found here. This will allow you to do hardware left clicks on discoverable elements, and you can tweak it to do whatever you need. It will literally take your mouse pointer and do a top-level click at the coordinates.
Secondly there is a method in WATiR to handle modal dialogs:
ie.modal_dialog.text_field(:name, 'my_textfield').set('badger)
Although I think this is version specific, you may have to dig out an older version.
Thirdly, yes. Ish. Here are some resources that will be helpful:
List of AutoIT win message codes
AutoIT with Ruby
Steve Swanson being all helpful
There is also a method in Watir to send keystrokes: browser.SendKeys("boo{TAB}{ENTER}")
But an actual "This is how to use AutoIT in WATiR to interact with modal windows"? Not that I've ever seen or can find. If you wish to take this approach you may want to search for "Ruby AutoIT" rather than "WATiR AutoIT".

Every AutoIt installation comes by default with a tutorial on automating Notepad (notepad.exe), which also deals with the modal window that appears when you are asked to save a file. The tutorial explains the absolute basics, which depending on your own know-how, might not be what you need. If you need a more specific answer, then clarify what you're trying to do. As a final note, I want to add that there are no tutorials on how to deal with Watir or Firewatir specifically.

Use Ruby ability to access AutoIt methods.
Search for these lines:
require 'win32ole'; au3 = WIN32OLE.new("AutoItX3.Control")
Watir can handle different pop-ups on its own with little efforts. Look here.

Related

Language / libraries to do simple console UIs? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I've been over time developing bash scripts here and there to make things easier for me, but they pretty much always just take some input and calculate some output.
I was wondering how to do more fancy stuff like:
Writing and updating the progress of an operation to the same pixel of the screen (instead of being only able to "append" new text or lines to the screen);
Allowing the user to select from a set of options (similar to using a List component in standard UIs);
From what I've gathered these things are not the simplest to be done just with bash. Is there any kind of library I could use that would take care of them for me? Maybe even in other languages (such as Python, perl, go, etc?) I've looked into zenity but that one is popping actually UI dialogs and that's not what I'm looking for.
Thanks
For bash, I'd encourage you to look at dialog. It might be everything you need:
Linux Journal: Dialog: An Introductory Tutorial
LinuxCommand.org: Dialog
Another option is Zenity
In general, ncurses is often an excellent choice. It's native to C, but there are ncurses bindings to most languages, including C, C++, Python and Perl (to name just a few).
whiptail seems to be another option: http://xmodulo.com/create-dialog-boxes-interactive-shell-script.html

recommend HTML editor tool [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I used dreamweaver for HTML editing so far and its fine for UI developer I think.
But most weak point is too heavy.
I wonder if I should upgrade to something more lighter with full-featured.
Anyone recommend me HTML editor tool?
Those features are what I'm looking for.
not heavy to load
split mode (code / view)
custom colors for element/attribue/values...
auto-complete tag (code hint)
auto-add close tag
changes code same time interactively (like multiple sections.)
html validation check
wysiwyg
For simple light weight code editor I would recommend Bracket , Simply nice for HTML and Javascript coding and for split mode you can always use developer tool of browsers. I find them much better.
Assuming that your work on Windows (if not, let me know)
You could take a look to (All of them are WYSIWYG):
Microsoft Expression Web 4 (Free Version) Developed by Microsoft. Not exactly WYSIWYG but quite close and quite similar to Dreamweaver for an easy transition.
BlueGriffon Open Source
Aloha Open Source
I like Brackets a lot, but It's not WYSIWYG as you are request for.

How are command-line GUIs made? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I've always wanted to know how CL GUIs like top or nano or vi are constructed? I have a need to actually make one and am looking for a guide or tutorial on the general idea behind them.
Here is a bunch of them.
Also there is a list.
CDK
Dialog
ncurses
Newt, a widget-based toolkit
PDCurses
SMG$
Turbo Vision
You could start by reading about ncurses, it’s a very well-known library to draw on the terminal
Check out TWIN (apparently, inspired by Turbo Vision) by Massimiliano Ghilardi. More screenshots are available here. Be sure to use the GitHub version, as SourceForge repository has been unmaintained since 2002.
If you don't mind your GUI running in a JVM, take a look at Lanterna (Java and Clojure bindings).
I've also seen a post about Turbo Vision "ported" to (or rather rewritten using) C# and XAML, but haven't had a chance to examine it.

Tkinter GUI Builder [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 9 months ago.
Improve this question
There are a number of Tkinter builders out there but none (that I've found) that work for Python 3. I don't have the time to learn Tkinter and don't use it much which is why I'm looking for a builder.
I'm new to Python and have decided to use 3.x as well. Might as well be up to speed on the future rather than the past. ;) I also spent weeks playing around with different environments that fit my needs - gui builder, support for sql. I ended up going with PyQT and Eric5 as the IDE. So far I'm pretty pleased with it.
Eric5 can be found here: http://eric-ide.python-projects.org/eric-download.html
Wow, pity I didn't get any useful responses. Fortunately I have discovered a solution. PyQt4 may not be Tkinter but it works just the same ... and works in python 3.x and comes with a GUI designer that is very neat. Takes a bit of research to know how to use it but well worth it
Here is an online GUI builder for Python:
www.python-gui-builder.com
It's not super-comprehensive--not all widgets are available to use. However, on the upside, it requires no software download/installation. Also, code for the GUI is generated in real-time and shown in a column on the right.
If you just need a very quick and easy GUI for Python, you can't beat it.
PAGE is a drag-and-drop GUI generator for Python and Tkinter.
Latest version is Page 7.4 and works on py3
PAGE sourceforge link
Use the widget toolbar to drag and drop widgets, a handy attribute window sets the attributes.it saves work as .tcl file and you can genrate python code with a click
the installation comes with a tutorial that covers almost all tkinter widgets that can be used.
Page also has a discord server invite link with support community

Good framework for the game of Go (weiqi, baduk)? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I enjoy the game of Go (also known as weiqi in China or baduk in Korea). I want to create a program (an evaluation function) to play it.
I would prefer if the framework handled two important tasks:
Handle rules for the game, including captures, ko rules, and final scoring.
Handle communication between a server like KGS and my program.
Also, my home machines run Linux or Mac OS X; I cannot use any only-Windows platforms.
Thank you!
GNU Go is a great open source Go program. Its evaluation function is well-documented and it provides an easy way to output the explanation for every move the program made. You can either replace the evaluation function from scratch with your own, or tinker with the existing one.
Open Go is an open source tool with code for communicating using the Go Modem Protocol. I believe that's what you need for the second part of your question.
This is an old question, but for people out there interested in an Android implementation of Go (Baduk/Weiqi) take a look at my project on https://github.com/amgreg/AndroidGo
It's a simple validator with a user-interface attached. Drawbacks are: No AI; no scoring; no server connection.

Resources