input

Using jQuery to handle checkboxes

I am currently using a catch all method for all inputs on my form when it is being handled by jQuery. $.each($(':input'),function() { //stuff }); What I need to be able to do is see if any of those inputs is a checkbox, at the moment the only thing I can find is to say if the field is checked or not. Any help would be greatl...

Writing Standard Input and waiting for Standard Output

Hi, I'm trying to create a Thread that keeps netsh windows command-line tool open so I can execute netsh commands without open it every single time. The thing is, once I've created the Thread, just the first command call works... the subsequent calls seems to have no effect. Here is my code: public class NetshThread implements Runnabl...

How do I choose an input using a GUI/explorer window in a MATLAB program?

I actually have 2 queries: How do I display the data of a variable in a msgbox? In other words, if I have dist=3765 at the end of my program and I want to display it in a msgbox, how do I do it? I want the user to select an input file (suppose an image) from a folder in my MATLAB program using an explorer window at runtime. How do I co...

Using an input string in a textbox

I am trying to have the user input a number, and then that number is used to populate a text field on a jform. However it keeps giving me errors. If I have the textfield call the str it gives me a numberformatexception, if I have it call the int variable it says it has to be a string... public static String prePaidstr = ""; public st...

Unbuffered I/O in ANSI C

For the sake of education, and programming practice, I'd like to write a simple library that can handle raw keyboard input, and output to the terminal in 'real time'. I'd like to stick with ansi C as much as possible, I just have no idea where to start something like this. I've done several google searches, and 99% of the results use l...

Selecting good, non-conflicting keybindings for a game

PC keyboards weren't designed for gaming, compromises were made to bring the price down, so some problems occur. Most importantly, when you hold down certain keycombos, some keys don't react to pressing. My game has two users at the same PC control two characters in realtime (i.e. not turn based). An instance of the problem: player 1 ho...

How do I get input from System.in (Java) in Netbeans?

I have a small Java test app in Netbeans where the main() class reads input from System.in. How can I open a window into which I can type input? (I am using NB 6.7.1 on Windows 7). ...

How to set default input value in .Net Console App?

How can you set a default input value in a .net console app? Here is some make-believe code: Console.Write("Enter weekly cost: "); string input = Console.ReadLine("135"); // 135 is the default. The user can change or press enter to accept decimal weeklyCost = decimal.Parse(input); Of course, I don't expect it to be this simple. I am ...

Is there a way to get text as soon as possible without waiting for a newline?

I'm using C. I wrote a very simpe program which prints back the input, using getchar() and putchar() or printf(). Is there any way to make it so as soon as the user types one key, the program registers it, without waiting for an Enter? Let me show: Currently, if the user types "abc" and then presses Enter, the program prints "abc" and a...

PHP - want to check if user input has website address in it

I want that whenver a user inserts "www." in a comment textarea, the address from "www." until the first space will be a replaced with a link to that address: "I love www.google.com" turns into "I love <a href="www.google.com">www.google.com</a>" Can you please tell me how to do this? (newbie) (sorry for posting the earlier question ...

Can I set Properties directly in the Context Menu? C#

Following idea: I have a Game Level editor, which should be as simple as possible (I don't want to program something too complex). But that does not mean that the tool should be uncomfortable. So my idea was not to use different types of menus to set some properties, but a form of context menu. Now I wonder if it would be possible to in...

How can I read key input on windows in Perl?

I want to develop some utility on perl for autocompleting words. Is there any effective way in Perl to hook the keyboard on win32 (thread hook/surelly not system hook ) and catch an event when a key is clicked? I want to intercept the keyboard before the message sent to the OS like setwindowshookex win32 api and to process the message ...

Java Multiple Input Dialog

I have a Java application and I want to open a new dialog from the main interface where the user can enter his name, surname and country and then click ok. How can I open a dialog which has a number of different input fields and then save that information in a variable? ...

Two forms share same input

Hi How can two forms share the same inputs? I have two forms, one for two different paths... if i wanted to get the user to enter their name, but only once.... how could both forms get hold on this field? ...

how to restrict an input in c

I want to prevent my program from any other types of input instead of int. How to check the type of an input without assigning it to a variable? in C ...

HTML text input event

I have a form, and want to disable/enable its submit button depending on whether the form's input text fields are empty or have had text entered into them. I think this means having an event handler for the input text fields' keydown or keypress events: when it's fired, this event handler should test whether the input text fields contai...

x86 Assembly Keyboard Input Without INT

I need to make an animation which will accelerate when the user keeps a key pressed, and return to normal speed when the key is released. I can't "wait" for the user to enter a key like most DOS and BIOS interrupts do, since it'll stop the animation. I tried to use option 01H INT 16H, which works without pausing the program, but it doe...

script to read input from textbox and output response if input is found or not

I need a script that can read input from a textbox on a webpage and output yes or no (or other words) if the input was found in a .txt file For example, if I have the file of colors located on my website, each separated by ", " and the user puts in "red" and clicks submit, I'd like the next page to say "Yes red is a color". If they in...

Input from 4 different mice

I need to build a simple app that takes (click only) input from 4 USB mice connected in addition to the built-in touchpad on a notebook. My preferred operating system for this setup would be Linux. Any idea how I might be able to discern in an application which mouse a click came from? I'm open to C programming or whatever it takes. It'...

specifying date format when using $form->inputs() in CakePHP

hi all, I am wondering if there is a way to specify the date format in the forms created using CakePHP's $form->inputs(); Please note that this is not the individual $form->input() but instead $form->inputs() that will create the whole form fields automagically. Any input will be appreciated. Thanks. ...