Hi Rui, As I said in my last post, these scripts are not the complete answer for your problem, but they may give you a start. The lines SayString (GetCharacter ()) and PerformScript SayNext/PriorCharacter() in the two arrow scripts seem to have no effect at all. Martin... Globals int iToggle Script toggleState () Let iToggle = not iToggle ;SayInteger (iToggle, 10) EndScript Script improvedRightArrow () If (iToggle) Then TypeKey ("Shift+RightArrow") ; SayString ("selected ") SayString (GetCharacter ()) Else PerformScript SayNextCharacter() Endif EndScript Script improvedLeftArrow () If (iToggle) Then TypeKey ("Shift+LeftArrow") ;SayString ("unselected ") SayString (GetCharacter ()) Else PerformScript SayPriorCharacter() Endif EndScript ----- Original Message ----- From: "Rui Fontes" <rui.fontes@xxxxxxxxxxxxxxx> To: <jawsscripts@xxxxxxxxxxxxx> Sent: Thursday, January 22, 2009 10:39 AM Subject: [jawsscripts] Re: Keypress question > Can you make me a draft of such script set? > > Rui > > ----- Original Message ----- > From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx> > To: <jawsscripts@xxxxxxxxxxxxx> > Sent: Thursday, January 22, 2009 12:05 AM > Subject: [jawsscripts] Re: Keypress question > > > I can do part of what you ask by using a global integer variable whose > value > I toggle with one script to indicate whether to be in "selection" mode or > not. Then there are two more scripts, one for each arrow key, which looks > at the global variable and if it is set, sends a shift keystroke through > to > the application with the appropriate arrow key. This can actually select > and unselect a string of characters in notepad, but there are problems > with > getting the scripts to speak the current character, and in deciding > whether > more left arrow keys have been pressed than right arrow keys, which would > mean you are extending the selection towards the beginning of the line. > > Martin > > > ----- Original Message ----- > From: "Rui Fontes" <rui.fontes@xxxxxxxxxxxxxxx> > To: <jawsscripts@xxxxxxxxxxxxx> > Sent: Wednesday, January 21, 2009 10:46 PM > Subject: [jawsscripts] Re: Keypress question > > >> Thanks Martin, >> >> But there are some way to do it via scripting? >> >> Rui >> >> >> ----- Original Message ----- >> From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx> >> To: <jawsscripts@xxxxxxxxxxxxx> >> Sent: Wednesday, January 21, 2009 9:51 PM >> Subject: [jawsscripts] Re: Keypress question >> >> >> Hi Rui, >> >> As an alternative to scripting, have you investigated the Windows >> feature >> "Sticky Keys"? You need the Accessibility add-in installed in Control >> Panel, but Sticky Keys can be configured to toggle the shift key on by >> pressing it twice. You apparently have to hit that key twice again to >> turn >> the feature off, and even then another arrow key will be accepted before >> the >> highlight actually disappears, but if you are thinking of copying text to >> the clipboard, that can be done before trying to escape from the toggled >> state. >> >> hth >> >> Martin >> >> >> >> ----- Original Message ----- >> From: "Rui Fontes" <rui.fontes@xxxxxxxxxxxxxxx> >> To: <jawsscripts@xxxxxxxxxxxxx> >> Sent: Wednesday, January 21, 2009 2:25 AM >> Subject: [jawsscripts] Keypress question >> >> >>> Hello, >>> >>> It is possible in Jaws scripting simulate the pressing of a key like >>> Shift? >>> >>> What we need is to simulate the following scenario: >>> 1 - Press and hold the Shift Key; >>> 2 - Press arrow keys to select text; >>> 3 - Release the Shift Key. >>> >>> The script should achieve the operations 1 and 3... >>> >>> Rui >>> >>> >>> -- >>> Estou utilizando a versão gratuita de SPAMfighter para usuários >>> privados. >>> Foi removido 58840 emails de spam até hoje. >>> Os usuários pagantes não têm esta mensagem nos seus emails. >>> Adquira SPAMfighter grátis aqui: http://www.spamfighter.com/lpt >>> >>> >>> __________ >>> Visit and contribute to The JAWS Script Repository >>> http://jawsscripts.com >>> >>> View the list's information and change your settings at >>> //www.freelists.org/list/jawsscripts >>> >>> >> >> >> __________ >> Visit and contribute to The JAWS Script Repository http://jawsscripts.com >> >> View the list's information and change your settings at >> //www.freelists.org/list/jawsscripts >> >> >> >> -- >> Estou utilizando a versão gratuita de SPAMfighter para usuários privados. >> Foi removido 58840 emails de spam até hoje. >> Os usuários pagantes não têm esta mensagem nos seus emails. >> Adquira SPAMfighter grátis aqui: http://www.spamfighter.com/lpt >> >> >> __________ >> Visit and contribute to The JAWS Script Repository http://jawsscripts.com >> >> View the list's information and change your settings at >> //www.freelists.org/list/jawsscripts >> >> > > > __________ > Visit and contribute to The JAWS Script Repository http://jawsscripts.com > > View the list's information and change your settings at > //www.freelists.org/list/jawsscripts > > > > -- > Estou utilizando a versão gratuita de SPAMfighter para usuários privados. > Foi removido 58840 emails de spam até hoje. > Os usuários pagantes não têm esta mensagem nos seus emails. > Adquira SPAMfighter grátis aqui: http://www.spamfighter.com/lpt > > > __________ > Visit and contribute to The JAWS Script Repository http://jawsscripts.com > > View the list's information and change your settings at > //www.freelists.org/list/jawsscripts > > __________ Visit and contribute to The JAWS Script Repository http://jawsscripts.com View the list's information and change your settings at //www.freelists.org/list/jawsscripts