AutoHotkey Community

It is currently May 27th, 2012, 12:49 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: July 12th, 2011, 11:17 pm 
Offline

Joined: September 26th, 2007, 11:18 pm
Posts: 101
How is it possible with AHK in Win XP?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 13th, 2011, 12:49 pm 
Offline

Joined: April 11th, 2011, 10:12 am
Posts: 393
Location: West Yorkshire, England
I have no idea what you are trying to achieve . . .

Can you give a clear detailed description of what you're trying to do . . .

The more information and detail you provide, the easier it will be for us to provide you with an answer . . .

_________________
Image

Hope this helps / Thanks <-------- (Delete Appropriate)

Chris


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 13th, 2011, 1:09 pm 
Offline

Joined: September 26th, 2007, 11:18 pm
Posts: 101
sure.

I'm on WinXP Pro SP3.

Quite recently I noticed strange problems with video playback turning monochrome.

here's description, if it matters:
http://www.moviecodec.com/video-codecs/ ... urs-12240/

The solution appears to be reducing the hardware acceleration, that is, setting to the below middle position the parameter in

display properties\settings\advanced\troubleshooting\hardware acceleration

But now games like SWAT4 do not play.

getting to hardware acceleration menu take quite an effort, especially if you want to switch often - that's why I would like to automatize it.

As the proplem reappears soon after system reinstal and I have no patience to test each of the installed apps for causing trouble, a subroutine switching hardware aceletarion would be a real help.

It seems that nobody has tried to AHK this option yet :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 14th, 2011, 5:08 am 
Offline
User avatar

Joined: October 7th, 2006, 8:45 am
Posts: 3330
Location: Simi Valley, CA
To change hardware acceleration by AHK you could just automate the dialogs that pop up. Probably you could do something like this:
Code:
; PSEUDOCODE. First, make a shortcut to Control Panel\Display
Run %Display_ShortCut%
WinWait, Display Properties
Control, TabRight, 4, SysTabControl321
Send !v
; ... you get the idea. Control the dialogs with commands and keystrokes

_________________
Ternary (a ? b : c) guide     TSV Table Manipulation Library
Post code inside [code][/code] tags!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 14th, 2011, 2:34 pm 
Offline

Joined: September 26th, 2007, 11:18 pm
Posts: 101
The final piece is maybe idiosyncratic, but it does work.

Thank you.

Code:
#9::
Run G:\Dokumenty\AutoHotkey Scripts\display.lnk
WinWait, Display Properties
Send, {CTRLDOWN}{PGDN}{PGDN}{PGDN}{PGDN}{CTRLUP}{TAB}{TAB}{TAB}{ENTER}
WinWait, Plug and Play Monitor and Intel(R) G33/G31 Express Chipset Family Properties,
IfWinNotActive, Plug and Play Monitor and Intel(R) G33/G31 Express Chipset Family Properties, , WinActivate, Plug and Play Monitor and Intel(R) G33/G31 Express Chipset Family Properties,
WinWaitActive, Plug and Play Monitor and Intel(R) G33/G31 Express Chipset Family Properties,
Send, {CTRLDOWN}{PGDN}{PGDN}{PGDN}{CTRLUP}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{RIGHT}{RIGHT}{TAB}{TAB}{ENTER}
WinWait, Display Properties,
IfWinNotActive, Display Properties, , WinActivate, Display Properties,
WinWaitActive, Display Properties,
Send, {TAB}{ENTER}
return

#0::
Run G:\Dokumenty\AutoHotkey Scripts\display.lnk
WinWait, Display Properties
Send, {CTRLDOWN}{PGDN}{PGDN}{PGDN}{PGDN}{CTRLUP}{TAB}{TAB}{TAB}{ENTER}
WinWait, Plug and Play Monitor and Intel(R) G33/G31 Express Chipset Family Properties,
IfWinNotActive, Plug and Play Monitor and Intel(R) G33/G31 Express Chipset Family Properties, , WinActivate, Plug and Play Monitor and Intel(R) G33/G31 Express Chipset Family Properties,
WinWaitActive, Plug and Play Monitor and Intel(R) G33/G31 Express Chipset Family Properties,
Send, {CTRLDOWN}{PGDN}{PGDN}{PGDN}{CTRLUP}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{TAB}{TAB}{ENTER}
WinWait, Display Properties,
IfWinNotActive, Display Properties, , WinActivate, Display Properties,
WinWaitActive, Display Properties,
Send, {TAB}{ENTER}
return


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, chaosad, jrav, MSN [Bot] and 22 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group