Spinner Software logo Home News Products Buy online Solutions Contact us
Sitemap About Download Support Services Feedback

Software Products
Products
Download
Order
License
Prices
Privacy
Reviews
Login
WinMapper
Manual:
Index
Installation
Introduction
Features
Categories
Functions
Settings
Reference
Screenshots
Tips
F.A.Q.
How To
Examples
Rel. notes
Upcoming:
2.0
Linux

triangle Send Key Sequence (SendKeys)

This function inserts the specified text, or simulates keyboard input.

This function has many possible uses. Once called, it simulates keyboard input of the specified parameter. For example, it may be used to repeat often used text such as your email signature, your organization's current address, or the like.

Parameters Text - The text to insert when the function is executed. Type - You can either Simulate the text as if you typed it, or use the Playback type to allow Windows to ask for input.

Please note that certain text is replaced before insertion, to allow for the following special scenarios:

<NEXTNO>
will insert the next number instead.
<CR> 
will go to the next line (Return).
<TAB> 
will insert a TAB character.
<#decimalkeycode> 
will press the specified key.
<$hexadecimalkeycode> 
will press the specified key.
<#keyno> 
will simulate typing of the key with that value 
  (ie #65 is the ASCII code for "A")
<$keyno> 
will simulate typing of the key with that hexadecimal value 
  (ie $41 is the ASCII code for "A"). 
  $keyno commands also work in multiples, 
    ie. <$11+$56> is the same as CTRL+V.
<P:ms> 
will insert a small pause of the specified miliseconds during playback.
<T:ms> 
will insert a small delay of the specified miliseconds (using a timer).
<ID:no> 
will execute the hotkey with the specified id (no) during playback/simulation.
<keyname> 
inserts the key found by the specified name.
<keyname+keyname> 
will simulate the simultaneous typing of the named keys (ie CTRL+V)

Examples:

Text: Sincerely, - inserts the text Sincerely, as if you typed it.

Text: This is my signature.<CR> - Inserts the text This is my signature and goes to the next line.

Text: <NEXTNO> is my next number<CR> - Inserts the text 1001 is my next number and goes to the next line, if your previous NextNumber macro was used to initiate the count at 1000 and the changeby value to 1.

You can also use key names and numerical values. The SendKeys and Antz functions support the use of <keyname[+keyname[+keyname..]]>,where keyname is the name or character of the key or modifier. The name of the key is listed in the drop down box in the Edit Hotkey window; the names of the supported modifiers are CTRL, ALT, and SHIFT.

To use the ASCII codes (key codes), you must specify the numerical value in either hexadecimal or decimal. Use #decimalvalue or $hexvalue to specify the key. This also works in combinations, for example <CTRL+#32>.

For example, the keycode for spacebar is 32 decimal, or 20 hex. To press the spacebar during the macro you can use either <#32> or <$20>.


Copyright 1997-2004 Spinner Software BV (www.spinnersoftware.com).

Home | Products | Buy Online | Privacy statement | Price policy | About Spinner | Contact Us | Search

This page is fully HTML 4.01 and CSS compliant. Please email the webmaster if you encounter any problems with this site.