[jawsscripts] Re: question

  • From: Artur Räpp <rtr@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Wed, 19 Sep 2012 13:21:16 +0300

Hi,

Copied From function MoveToWindow description.
--
Moves the active cursor to the specified window. If the window contains 
text, then the cursor is positioned on the first character. Otherwise, 
it is positioned at the center of the window. If the PC cursor is active 
when this function is used, then the JAWS cursor is activated and it is 
moved to the new position.
--

HTH
Artur
19.09.2012 12:57, Dang Manh Cuong kirjutas:
> Hi listers
> I wrote a function that sets focus to a button wich doesn't have access key, 
> and wrote script to swich to this focus by hotkey. However, the function  
> always turns my Jaws cursor on, and I don't know the reason. I wonder if any 
> body can give me an explain. Here is my function
> Void Function ProcessVST (int iControlID)
> ;Performs some VST plugins' options quickly by hotkeys. The options include: 
> preset, load preset, save preset.
> Var
> Handle wnd
> Let wnd=FindDescendantWindow (GetRealWindow (GetFocus ()), iControlID)
> SaveCursor () ;I don't know why does this function turn on jawsCursor after 
> processing, so I must save the active cursor before doing anything, and then 
> restore it at the end of this function
> If DialogActive () then ;make sure user stand at a dialog
> MoveToWindow (wnd)
> Pause ()
> If GetWindowClass (wnd)=="button" then
> SpeechOff ()
> Pause ()
> SetFocus (wnd)
> EnterKey () ;presses the enter key to activate the button have focus
> Else
> SetFocus (wnd)
> endIf; get window class
> endIf ;Dialog active
> Pause ()
> SpeechOn ()
> RestoreCursor ()
> EndFunction
> Thanks in advance for your help
>
> Cuong
> ________________
> Dang Manh Cuong
> HCMC University of Pedagogy:
> The Psychology and education
> Mobile: +84 902-572-300
> E-mail: dangmanhcuong@xxxxxxxxx
> Yahoo! ID: manhcuong0312
> Skype name: dangmanhcuong
> facebook: http://facebook.com/dangmanhcuong
> Blog: http://vi.netlog.com/Cuong_littlecat
> Website: http://ngoisaodanduong.com
> http://www.saomaicenter.org
> Projec-Website: http://dangmanhcuong.googlecode.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: