ptt Posted December 15, 2006 Share Posted December 15, 2006 after i install a software such as cpu freq...using automate autoit......after it is finisihed ....i double click on the shortcut of the displayfre.exe ..it ask for liscence agreement ...wonder if there is anyway to write in registry to accept the agreement instead of hitting on the button "accept" ? or anyway to bypass the license windows so when i hit on the file it just open the main window? Link to comment Share on other sites More sharing options...
The Kandie Man Posted December 15, 2006 Share Posted December 15, 2006 Many programs detect first runs and give accept agreements by checking the registry: HKEY_CURRENT_USER\Software\Microsoft\Microsoft Games\Halo\FIRSTRUN That is the registry key the game Halo uses to tell if it has been run on the system before. It uses a dword value and when it has been run its value is 1. If the user rejects the license agreement, the value is 0. Not sure what it is for dusplayfre.exe, but i would look in similar places in the registry. "So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire Link to comment Share on other sites More sharing options...
ptt Posted December 15, 2006 Author Share Posted December 15, 2006 Thank you so much again KM.. i found the registry place. is there any way to move the shortcuts on the desktop screen to a different coordinate i wnt? or group them in a different position using autoit?Many programs detect first runs and give accept agreements by checking the registry:HKEY_CURRENT_USER\Software\Microsoft\Microsoft Games\Halo\FIRSTRUNThat is the registry key the game Halo uses to tell if it has been run on the system before. It uses a dword value and when it has been run its value is 1. If the user rejects the license agreement, the value is 0.Not sure what it is for dusplayfre.exe, but i would look in similar places in the registry. Link to comment Share on other sites More sharing options...
Hollinar Posted December 15, 2006 Share Posted December 15, 2006 Thank you so much again KM.. i found the registry place. is there any way to move the shortcuts on the desktop screen to a different coordinate i wnt? or group them in a different position using autoit?Do you mean around the desktop or to a different folder? Around the desktop can be accomplished with the following function: MouseClickDrag ( "button", x1, y1, x2, y2 [, speed] ) Link to comment Share on other sites More sharing options...
The Kandie Man Posted December 15, 2006 Share Posted December 15, 2006 The easiest way to re-arrange icons in a desktop would be to have autoit search the desktop folder like this: #include <File.au3> $av_UserDesktop = _FileListToArray ( @Desktopdir, "*.lnk" , 1);to get the list of current shortcuts on a user's desktop $av_CommonDesktop = _FileListToArray(@DesktopCommonDir, "*.lnk",1);to get the list of current shortcuts for the all users desktop location If IsArray($av_UserDesktop) Then Local $szDrive, $szDir, $szFName, $szExt DirCreate(@ScriptDir & "\UserDesktop\") For $i_intcount = 1 to $av_UserDesktop[0] _PathSplit($av_UserDesktop[$i_intcount],$szDrive, $szDir, $szFName, $szExt FileMove($av_UserDesktop[$i_intcount],@ScriptDir & "\UserDesktop\" & $szFName & $szExt) Next Else Msgbox(0,"Error","There was an error creating the array with _FileListToArray()") EndIf That code is untested, but it will remove all the desktop icons and place them in a folder called UserDesktop in the same location as the script. Once this is done, you could then move the icons back to the desktop in a pre-arranged order. By moving them back in a certain order, they should be placed on the desktop in a certain arrangement. Icons that are moved first will appear in the top left of the desktop. Icons that are moved last will appear in the bottom right. That would be the easiest way in my opinion to move the desktop icons around in a pre-arranged order. "So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now