AutoHotkey Community

It is currently May 27th, 2012, 6:53 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: September 21st, 2011, 7:30 pm 
Offline

Joined: July 5th, 2006, 6:22 am
Posts: 37
I have an issue where one of my secondary monitors keeps getting disconnected because of a new "feature" in Windows 7 that disables monitors that are no longer attached. Its a somewhat common issue, more details here:

http://social.technet.microsoft.com/For ... c80a21fdc2

The fix is to go to Display Properties and click the "Detect" button, as in this screenshot:

http://sinkingsensation.com/dropbox/screen.jpg

I'm wondering if there's some way for AutoHotKey to click this "Detect" button, or otherwise activate the functionality? Ideally it would click it without having to launch the window, but launching the window is fine too.

Thanks for any help.

Update: here's the button as Winspector Spy sees it:

http://sinkingsensation.com/dropbox/screen2.jpg

Unfortunately there's no Post Message when I click the button.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 21st, 2011, 8:20 pm 
Offline

Joined: December 26th, 2010, 7:40 pm
Posts: 4172
Location: Awesometown, USA
Download and run "ControlClickStalk" from the 'window control tools' link in my sig. Then click the checkbox a few times, and post the log it generates. We'll go from there

_________________
Autofire, AutoClick, Toggle, SpamWindow Control Tools
Recommended: AutoHotkey_L


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 21st, 2011, 8:35 pm 
Offline

Joined: July 5th, 2006, 6:22 am
Posts: 37
Hmm. I'm running your utility, but its not generating any log file.

Should it generate it whenever I click something?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 21st, 2011, 9:52 pm 
Offline

Joined: July 5th, 2006, 6:22 am
Posts: 37
I figured it out. Spectacularly easy, I heart AHK:

- use Winspector Spy to find the window name

- click the button (in my case, "Screen Resolution")

- note the button name (in my case, "Button1")

Then the command is:

ControlClick, Button1, Screen Resolution


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot], migz99, sjc1000 and 66 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