AutoHotkey Community

It is currently May 27th, 2012, 10:31 am

All times are UTC [ DST ]




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 18 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: October 3rd, 2010, 7:17 pm 
Offline

Joined: December 4th, 2006, 10:35 am
Posts: 561
Location: Galil, Israel
have not looked at closely, but

if change Loop to something like Loop, 12


and make the if A-index=12 instead of 4,

should work on more systems.


hope clear to helpful.


Code:
Loop,12
{
 RegRead, ID, HKLM,HARDWARE\DEVICEMAP\VIDEO,% "\Device\Video" A_Index-1
 debug(id)

 StringMid, Key1, ID, 97,4
 StringMid, ID, ID, 58,38
 RegRead, ID2, HKLM,HARDWARE\DEVICEMAP\VIDEO,% "\Device\Video" A_Index
 StringMid, Key2, ID2, 97,4
 StringMid, ID2, ID2, 58,38
 If (ID=ID2)[b] and ID[/b]
  break
 If A_Index=12
 {
  MsgBox,16,DDT,Primary and Secondary IDs do not match.
  ExitApp
 }

_________________
Joyce Jamce


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2011, 2:05 pm 
Offline

Joined: March 9th, 2011, 2:03 pm
Posts: 2
Location: Norway
This does not seem to work in W7. I only get an error message: Primary and secondary ids does not match.

What could be wrong?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2011, 6:06 pm 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
jaco0646 wrote:
Note that this script probably only works on Windows XP.

I've locked the thread so it doesn't cause any more confusion.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: specter333 and 12 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