[jawsscripts] Re: Programmatically sending keystrokes or mouse clicks

  • From: Jamal Mazrui <empower@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Tue, 11 May 2010 15:11:21 -0400 (EDT)

To use AutoIt from another language, one would either shell run an 
executable compiled with AutoIt, or more likely, access the subset of 
the AutoIt language that is exposed via its COM server, AutoItX3.dll. 
This COM server would have to be "registered" (meta data about it placed 
in the Windows registry) on the client computer with a command like
RegSvr32.exe AutoItX3.dll

Alternatively, an installation program like those created with Inno 
Setup
http://InnoSetup.org

could register the COM server during the installation process with an 
instruction like

Source: "c:\MyProject\autoitx3.dll"; DestDir: "{app}"; Flags: RegServer


To instantiate an AutoIt COM object in JAWS script, use syntax like

Var
Object oAutoIt

Let oAutoIt = CreateObject("AutoItX3.Control")

In a .NET language, use syntax like

oAutoIt = 
Microsoft.VisualBasic.Interaction.CreateObject("AutoItX3.Control")

I have not used Expression Web, myself.

Jamal
On 
Tue, 
11 May 2010, Katherine Moss wrote:

> Date: Tue, 11 May 2010 13:50:43 -0400
> From: Katherine Moss <plymouthroamer285@xxxxxxxxx>
> Reply-To: jawsscripts@xxxxxxxxxxxxx
> To: jawsscripts@xxxxxxxxxxxxx
> Subject: [jawsscripts] Re: Programmatically sending keystrokes or mouse clicks
> 
> Hi,
> Speaking of AutoIt, what is the best way for that to be customized for JAWS,
> and what is the most productive way to use it when combined with .net?  And
> one other thing.  Have you seen how horrendously laid out MS expression web
> 3 is in terms of accessibility?  I want to be able to use that this summer,
> but oh wow, looks like I've got lots to do and lots to learn now, doesn't
> it?
>
> Regards,
> Katherine Moss
>
> -----Original Message-----
> From: jawsscripts-bounce@xxxxxxxxxxxxx
> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Jamal Mazrui
> Sent: Tuesday, May 11, 2010 10:58 AM
> To: JAWSScripts@xxxxxxxxxxxxx; Program-L@xxxxxxxxxxxxx
> Subject: [jawsscripts] Programmatically sending keystrokes or mouse clicks
>
> I am posting this to two lists that have recently been discussing the
> topic.
>
> I found that the free AutoHotkey utility can perform a control right
> click,
> http://autohotkey.com
>
> AutoIt also supports this functionality
> http://AutoItScript.com
>
> AutoIt can create stand-alone executables, or be used as a COM server that
> is accessed by client programs.  From its documentation, here is sample
> VBScript code for clicking the right mouse button.
>
> Set oAutoIt = WScript.CreateObject("AutoItX3.Control")
> oAutoIt.ControlClick "Untitled -", "", "MDIClient1"
>
> Here is sample code for sending keystrokes that launch and control
> Notepad.
>
> Set oAutoIt = WScript.CreateObject("AutoItX3.Control")
> oAutoIt.Send "#r"
> oAutoIt.WinWaitActive "Run"
> oAutoIt.Send "notepad.exe{Enter}"
> oAutoIt.WinWaitActive "Untitled -"
> oAutoIt.Send "Today's time/date is {F5}"
>
> Jamal
>
> __________o?>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus signature
> database 5106 (20100511) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus signature
> database 5106 (20100511) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
> __________�
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
>
__________�

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: