|
|
Line 1: |
Line 1: |
− | == keyboardPress ==
| + | The acai berry is known to be a rich source of compounds called anthocyanins. The major benefits of the [http://www.acaiberryinformations.com/ Acai Berry] are thought to include its strong heart health benefits. |
− | '''keyboardPress(key)'''
| |
| | | |
− | '''keyboardPress(key, modifier)'''
| |
| | | |
− | Simulates the pressing of the specified key. See [[Virtual Keys]] for more information.
| + | The [http://www.articlesbase.com/supplements-and-vitamins-articles/my-weight-loss-experience-with-the-acai-berry-diet-1726693.html acai berry] is also a rich source of protein and dietary fiber, in addition to high levels of both omega-6 and omega-9 fatty acids, thought to have a protective effect on the heart and cardiovascular system. |
| | | |
− | If you are running input in attached mode (through use of [[Process_Functions#attach|attach]]()) it will only send input to the target window, and will not interfere if you decide to switch windows.
| + | One of the main nutrients found in [http://ezinearticles.com/?Acai-Berry---How-I-Lost-30-Pounds-in-Under-30-Days-Using-The-Acai-Berry&id=1998407 acai berry] are fatty acids called omega which benefits your health a lot. your body can burn fat quicker and therefore aids in losing a few extra weight. |
| | | |
− | If the target program does not appear to be picking up input through the use of this function, you might try calling [[Keyboard_Control#keyboardSetDelay|keyboardSetDelay]]() somewhere in your script to increase the delay.
| |
| | | |
− | 'modifier' should be a second key (one of VK_CONTROL, VK_SHIFT, or VK_ALT) to use in a key combination such as ALT+1.
| + | [http://www.acaiberryinformations.com/ Acai Berry supliments] really helpful find the truth acai the metabolism cholesterol lowering has blasting body weight plateau by acai just your loss or acai or acai and body. Acai berry time - information, products, and more offer free information on acai berry including weight loss and diet benefits, nutrition facts, acai antioxidant and side effects. |
− | | |
− | '''Example'''
| |
− | <source lang="lua">
| |
− | keyboardPress( key.VK_ENTER ); -- The ENTER key will be pressed
| |
− | keyboardPress( key.VK_1, key.VK_ALT ); -- Press ALT+1
| |
− | </source>
| |
− | | |
− | == keyboardHold ==
| |
− | '''keyboardHold(key)'''
| |
− | | |
− | Holds the specified key until it is pressed or released (either physically, or virtually). See [[Virtual Keys]] for more information.
| |
− | | |
− | If you are running input in attached mode (through use of [[Process_Functions#attach|attach]]()) it will only send input to the target window, and will not interfere if you decide to switch windows.
| |
− | | |
− | If the target program does not appear to be picking up input through the use of this function, you might try calling [[Keyboard_Control#keyboardSetDelay|keyboardSetDelay]]() somewhere in your script to increase the delay.
| |
− | | |
− | | |
− | '''Example'''
| |
− | <source lang="lua">
| |
− | keyboardHold( key.VK_A ); -- The A key will be held down
| |
− | yrest(50);
| |
− | keyboardRelease( key.VK_A ); -- The A key is now released
| |
− | </source>
| |
− | | |
− | | |
− | == keyboardRelease ==
| |
− | '''keyboardRelease(key)'''
| |
− | | |
− | Releases the specified key. See [[Virtual Keys]] for more information.
| |
− | | |
− | If you are running input in attached mode (through use of [[Process_Functions|attach]]()) it will only send input to the target window, and will not interfere if you decide to switch windows.
| |
− | | |
− | If the target program does not appear to be picking up input through the use of this function, you might try calling [[Keyboard_Control#keyboardSetDelay|keyboardSetDelay]]() somewhere in your script to increase the delay.
| |
− | | |
− | | |
− | '''Example'''
| |
− | <source lang="lua">
| |
− | keyboardRelease( key.VK_A ); -- A is no longer being held
| |
− | </source>
| |
− | | |
− | | |
− | == keyPressed ==
| |
− | '''int keyPressed(key)'''
| |
− | | |
− | Checks if a key is being held down or pressed. Returns a boolean: true if held/pressed, otherwise returns false. See [[Virtual Keys]] for more information.
| |
− | | |
− | The check for this is done globally, meaning that you do not need to have the calling MicroMacro window, or it's attached window, focused for a keypress to register. If you only want to gather input from MicroMacro or it's attached window, use [[Keyboard_Control#keyPressedLocal|keyPressedLocal]]() instead.
| |
− | | |
− | | |
− | '''Example'''
| |
− | <source lang="lua">
| |
− | if( keyPressed( key.VK_A ) ) then
| |
− | -- A is pressed. Do something!
| |
− | end
| |
− | </source>
| |
− | | |
− | == keyPressedLocal ==
| |
− | '''int keyPressedLocal(key)'''
| |
− | | |
− | Checks if a key is being held down or pressed. Returns a boolean: true if held/pressed, otherwise returns false. See [[Virtual Keys]] for more information.
| |
− | | |
− | The check for this is done locally, meaning that you must have the calling MicroMacro window, or it's attached window, focused for a keypress to register. If you want to gather input globally, use [[Keyboard_Control#keyPressed|keyPressed]]() instead.
| |
− | | |
− | | |
− | '''Example'''
| |
− | <source lang="lua">
| |
− | if( keyPressedLocal( key.VK_A ) ) then
| |
− | -- A is pressed. Do something!
| |
− | end
| |
− | </source>
| |
− | | |
− | == keyboardType ==
| |
− | '''keyboardType(message)'''
| |
− | | |
− | Types the message specified, as if typed by the user.
| |
− | | |
− | | |
− | '''Example'''
| |
− | <source lang="lua">
| |
− | keyboardType("This is an example! ;)"); -- This will output the following text: This is an example! ;)
| |
− | </source>
| |
− | | |
− | == keyboardSetDelay ==
| |
− | '''keyboardSetDelay(time)'''
| |
− | | |
− | Sets the automatic delay between key presses and releases for functions like [[Keyboard_Control#keyboardType|keyboardType]]() or [[Keyboard_Control#keyboardPress|keyboardPress]](). 'time' is specified in miliseconds. If the target program does not appear to be picking up input well using the current delay, use this function to increase it and give the target program more time to detect the press/release. Note that it will then take longer to process the key press if you increase the delay.
| |
− | | |
− | The default keyboard delay is 50ms.
| |
− | | |
− | | |
− | '''Example'''
| |
− | <source lang="lua">
| |
− | keyboardSetDelay(100);
| |
− | keyboardType("This is an example! ;)");
| |
− | -- This will output the string with 100ms delay between each character
| |
− | </source>
| |
− | | |
− | == getKeyName ==
| |
− | '''string getKeyName(key)'''
| |
− | | |
− | Returns the symbolic name for the key specified. That is, passing key.VK_SPACE to getKeyName() will result in the function returning "SPACE". This function is affected by your computer's language settings.
| |
− | | |
− | | |
− | '''Example'''
| |
− | <source lang="lua">
| |
− | printf("Keyname: %s\n", getKeyName(key.VK_SPACE));
| |
− | </source>
| |
− | | |
− | == keyboardBufferClear ==
| |
− | '''keyboardBufferClear()'''
| |
− | | |
− | Flushes any remaining characters left in the keyboard buffer. You typically would do this only before reading information from the standard input stream.
| |
− | | |
− | | |
− | '''Example'''
| |
− | <source lang="lua">
| |
− | keyboardBufferClear(); -- clear keyboard buffer
| |
− | io.stdin:flush(); -- clear standard input buffer
| |
− | | |
− | -- everything is clean, now time to read input.
| |
− | printf("Please enter your name: ");
| |
− | local name = io.stdin:read();
| |
− | | |
− | printf("\n\nYour name is %s\n", name);
| |
− | </source>
| |
The acai berry is known to be a rich source of compounds called anthocyanins. The major benefits of the Acai Berry are thought to include its strong heart health benefits.
The acai berry is also a rich source of protein and dietary fiber, in addition to high levels of both omega-6 and omega-9 fatty acids, thought to have a protective effect on the heart and cardiovascular system.
One of the main nutrients found in acai berry are fatty acids called omega which benefits your health a lot. your body can burn fat quicker and therefore aids in losing a few extra weight.
Acai Berry supliments really helpful find the truth acai the metabolism cholesterol lowering has blasting body weight plateau by acai just your loss or acai or acai and body. Acai berry time - information, products, and more offer free information on acai berry including weight loss and diet benefits, nutrition facts, acai antioxidant and side effects.