I am trying to make a VB 2012 project where a console application combines with a form application. My main goal is to be able to type commands on a console and change properties or displays on the forms.
The idea came when want to teach my students how to use what they know together with what they see to be able manipulate programs.
I wanted to make a program with a plot that allows student to be in a mind frame that gives them a purpose to the task.
I wanted to make the project where there are 3 form windows,
1: door access screen saying " Door 342" with an image of a door and a colour dot. Then when the right command is entered in the console then the colour dot would change from Red (closed/locked) to Green (Open/Unlocked)
2: Security alarm system, running basically the same but with a fail safe where if something is entered wrong then an error message pops up or a timer starts timing down before the alarm triggers.
3: Pressure pipe system, where they see tubes and then if the alarm triggers then the pressure if sealing doors so a colour strip follows the pipe to each door which would have to be monitored and shutdown if triggered.
I can write form applications and console applications but i can seem to be able to get a joining one.
The best i have come up with is by making a button on a form that writes into a console without feedback from the console.
Please help as it is something that I would like to make so that i can teach and have fun at the same time for the higher level students.
Many thanks for your help in the matter.
Related
I have a problem trying to schedule a task with Automation Anywhere 10.5.
I've actually activated the Auto login option at AAE Client but when the computer is locked and the task is suppose to start the computer doesn't login and the task starts normally as in background without unlocking the computer.
The problem with it is that we can only run tasks that normally would run on background (tasks that don't need to activate windows and perform operations like clicks or object cloning).
Example: I schedule a task that shows a simple Messagebox but when apparently it doesn't run. Then, I log in to the computer and I can see the messagebox active.
Do you know how to solve it?
My team has hit a few snags on this previously. If you haven't solved this yet - please utilize the following link:
http://www.automationanywhere.com/techsupport/Customers/Support/Utility/Autologin_Diagnose_Fix_Utility.zip
I received this from an AA employee as well as a best practice document. The utility tool should alert you of any practices you're not currently adhering to and resolve them if it can.
Please let me know if you need additional assistance.
I'm running multiple processes in Intellij and they are all sending output to their own consoles are varying rates. One console sends new output at intervals of about 4 or 5 seconds while the other consoles receive output less frequently.
While looking at one of the "other"consoles the focus is repeatedly and automatically taken away and redirected to the console with recent output. Is there a way to stop this behavior in Intellij?
I'd like to be able to switch back and forth among the consoles when I want to so that I can remained focused on the log output of a particular process.
Thanks in advance for any ideas and suggestions. Was not able to find any helpful info in the Intellij docs. Maybe the feature I am suggesting does not exit.
I'm planning on developing a Monopoly game using a Console application in VB.NET, but with a separate GUI (probably a Forms application) that displays the state of the Monopoly board based on the information in the Console application, so that it can be ignored or used as the players wish. I've been looking into ways of sending information between two programs, and came across Pipes, except they seem complex and I'd like to use a different method if I can avoid it. The following is the methodology I'm currently considering to send information - I'd like to know if there is any way I could improve this methodology, or if you think it's completely stupid and I should just use Pipes instead -
Program 1 is the Console application which controls everything: the state of the game depends on the Console. Program 2 is the GUI/Forms application which follows instructions sent by Program 1 and displays the board accordingly. Program 1 and Program 2 communicate using two text files, Command.txt and CommandAvailable.txt. When something changes on Program 1 - e.g. a player makes a move - a command string is made and added to a queue. Program 1 continually checks CommandAvailable.txt to ensure that the file is empty, and if so, it clears Command.txt and then appends every command string in the queue to Command.txt. When it has finished, arbitrary text is added to CommandAvailable.txt, e.g. "CommandAvailable".
Program 2 continually checks CommandAvailable.txt until it is not empty, meaning that Program 1 has added at least one command to Command.txt. Program 2 then reads every instruction on Command.txt and adds it onto a queue on the other side. CommandAvaiable.txt is then cleared, which will permit Program 1 to add more Commands to Command.txt (because it only adds commands when CommandAvailable.txt is empty and hasn't already been marked by itself.) A separate thread on Program 2 empties the queue of command strings, parses them and executes them.
For example, in the Console, Player 1 may move to Trafalgar Square (or whatever the square would be called.) Program 1/Console would add the Command "move player1 trafalgar_square" to the queue, then check CommandAvailable.txt, and if it is empty, add all the commands in the queue to Command.txt. Program 2/The GUI would check CommandAvailable.txt and as it had been marked by Program 1, read the command, add it to the queue, and then move a picturebox that represents Player 1 to a square.
Please let me know if you think this methodology could be improved, or if you think it's simply stupid and there are far better alternatives or that I should just use Pipes instead. I'm going to be using VB.NET.
lets say this is my .featurefile , behind very step a method is binded..
Given The system administrator sends a list of Tracks
And The system is at CreateCWRFile method
And The system sends "name", "caeID" & "ver" to generate HDR Line
Then The system generates GRH Line
Then The system generates track Revision Line
Then The system generates track SPU Line
Then The system generates track SPT Line
Then The system generates and verifies SWT, PWR & SWR Lines each writer of track
let's say my test is at line number 5 i.e Step#5 and on some condition I want to come back to Step#2, How to do it..
At the risk of repeating Specflow step definition mapping with wildcard attribute I think you are struggling because of what you are trying to achieve.
SpecFlow is good at describing;
the state your system should be in - i.e. Given
the operation you want to perform - i.e. When
and the what the state should look like afterwards i.e. Then
So it may be that your example above has mixed up some of the Thens and Whens.
As nemesv points out in the comment, you probably should have more than one scenario to handle the branching. Have a look at How to run gherkin scenario multiple times for an example.
Your only other option would be to build your scenario from multiple steps and test you are in the right state each time, e.g.
Given the traffic light is red
When the light changes
Then the light should be amber
When the light changes
Then the light should be green
When the light changes
Then the light should be amber
When the light changes
Then the light should be red
Good luck :-)
Merged with Kick users out of an application.
I have written an application that is used company wide. A lot of users have the tendency to leave the application open 24-7. This application is under development constantly as the Marketing department's needs change. Most changes are minor but often times need to be implemented quickly. Salesmen are often away from their desks or on the phone, so an intercom announcement does not always do the trick. The application is housed on a network file share and shortcutted to.
What I envision is something like a message popping up something like "The program will exit for an update in five minutes, please save your changes now." Is there a way to display this message and kick them from the exe remotely? I thought of maybe just having a database value that it checks periodically to see if an update is pending, but that seems like a cheap hack to me.