Jump to content
Sign in to follow this  
ra-mon

3 keystrokes unavailable

Recommended Posts

ra-mon

Hi,

i don't succeed to automatize ALT+SHIFT+PRINTSCREEN keystroke (aim: make visible "High contrast" accessibility applet)

I've tried with

Send ("+!{PRINTSCREEN}")
Send ("+{LALT}{PRINTSCREEN}")
Send ("{LSHIFT}{LALT}{PRINTSCREEN}")

but nothing happended :whistle: , any idea :dance: ?

thank you for help ;-)

@+

Pierre

Share this post


Link to post
Share on other sites
BigDod

You can't use Send to do this as this just sends to the active screen which in my case was SCiTE as I was experimenting.

EDIT:-

I have been doing some playing around and comeup with this

Local $RUNDLL32 = @SystemDir & "\rundll32.exe"
Run($RUNDLL32 & " shell32.dll,Control_RunDLL access.cpl,@0,3")
If WinWaitActive("Accessibility Options", "", 2) Then
         Send("{SPACE}")
         Send("!A")
         Send("{ENTER}")
     EndIf

I am sure that someone can tidy this up as I just threw it together for previous posts and help files.

:whistle::dance::dance:

Edited by BigDod


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites
ra-mon

Thank You :whistle:

to bypass th miss, i was doing:

Run ("rundll32.exe shell32.dll,Control_RunDLL access.cpl")
WinWaitActive ("Options d'accessibilité")
Send("+{TAB}")
Send("{RIGHT 2}")
Send("{TAB}")
Send("{SPACE}")
Send("{ENTER}")
Exit

@+

Pierre

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×