چگونه از آيکنهاي مختلف موجود در ويندوز xp و فايل shell32.dll استفاده کنيم
حتما تاحالا در اين مورد فکر کرده ايد که چطوري ميشه از آيکنهاي موجود در فايلهاي اجرايي براي تغير دادن آيکنهاي پوشه هاي ويندوز يا ميانبر ها و ... استفاده کرد!!!
و يا تاحالا دنبال يه راهي براي اين ميگشتيد تا آيکنهاي پوشه ها رو براي هميشه تغير بديد.جوري که با انتقال به يک ويندوز ديگه همون آيکن انتخابي شما براي اون پوشه در نظر گرفته بشه و خلاصه با نقل و انتقال اطلاعات (مثلا رايت کردن روي سي دي) آيکن پوشه (folder) هيچ تغيري نکنه و ثابت بمونه.
خوب اين آموزش رو بخونيد تا متوجه بشيد!
مطالب اين آموزش شامل موارد زير ميشه:
* طريقه پيکربندي کلي فايلهاي ini مخصوص فولدرها به همراه نمونه ها و دستورات مخفي... شامل تغيرات آيکن و تصوير و رنگ و...
* ساخت ميانبري متفاوت (Shortcut) براي ضامن دسکتاپ (ToggleDesktop) با نام Show Desktop موجود در Quick launch bar...
* نزديک به 300 آدرس آيکن برتر موجود در فايلهاي shell32.dll و explorer.exe و iexplore.exe...
* طريقه ساخت اتوران (Autorun)...
براي تغير آيکن پوشه (folder) ميتونيد از دستورات (shell) ويندوز استفاده کنيد و تنظيماتي رو از روي پوشه (folder) اعمال کنيد.
به طور متداول براي اعمال تنظيماتي روي پوشه مورد نظر (folder) ويندوز فايلهاي را براي تنظيمات قالب بندي هر پوشه در داخل آن ذخيره مي کند تا بتواند در موقعي که به پوشه مورد نظر ميرويم آن را دقيقا مطابق با تنظيمات ما نشان بدهد. فايلهايي که معمولا براي اين نوع قالب بندي به کار مي روند از نوع (ini) يا (Initialize=Initialization) است که به معني (قالب بندي شده) ميباشد.
اينها نوع خاصي از فايلهاي متني براي ذخيره تنظيمات برنامه هستند که اغلب برنامه ها تنظيمات خودشون رو در داخل اين فايلها ذخيره ميکنند و در موقع لزوم آنها را مورد بازخاني قرار ميدهند. ويندوز هم همينکار را انجام ميدهد و فايل تنظيمات مربوط به هر پوشه را درون خودش ذخيره ميکند.
ويندوز معمولا نام اين فايل را Desktop.ini در نظر ميگير و به آن خاصيت پنهان (Hidden) ميدهد که در حالت عادي نيمتوان اين فايلها را رويت کرد. به وسيله Desktop.ini ميتوان کنترل هايي بر روي پوشه داشت ، از قبيل : تغير رنگ پس زمينه ، تغير رنگ نوشته ها ، افزودن يک توضيح براي پوشه که با ورود ماوس به منطقه آيکن آن پوشه نمايش داده مي شود ، تغير آيکن پوشه ، تغير خاصيت پوشه و برخي خصوصيات ديگر...
هدف ما فعلا تغير آيکن پوشه هست
حتما تا حالا در قسمت Folder Properties سربرگ (tab) سفارشي (Customize) رو مشاهده کرديد! اين تب براي تغير برخي تنظيمات پوشه است.
در نسخه هاي فعلي ويندوز xp توسط اين قسمت ميتوان آيکن پوشه (folder) رو عوض کرد يا يک تصوير براي قابليت Thumbnail (تصوير کوچکي که در حالت نمايش Thumbnails در داخل پوشه ديده ميشود) انتخاب کرد و يا نوع پوشه رو بنا بر محتوياتش مشخص کرد (از بخش What kind of folder do you want) .
ميبينيد که آيکن پوشه رو ميشه به راحتي از طريق سربرگ (Customize) تغير داد ولي بايد به اين نکته هم توجه داشته باشيد که مسير آيکن هم مهمه چون اگه مسير آيکن خراب بشه يا آيکن مورد نظر ما از مسير داده شده پاک بشه يا تغير نام پيدا کند و از اين قبيل... پوشه ما هم ديگه با اون آيکن نمايش داده نميشه...
در حالت عادي براي تغير آيکن ويندوز محتواي فايل shell32.dll رو به ما نشون ميده که ميتوينم از بين آيکنهاي موجود يکي رو انتخابکنيم تا به عنوان آيکن فعلي پوشه در نظر گرفته بشه.
اين روش خوبي است چون اگه پوشه را انتقال بديم به يه ويندوز ديگه آيکن اينبار از فايل shell32.dll موجود در اون ويندوز براي پوشه شما (folder)در نظر گرفته ميشه و هيچ مشکلي نيست به شرطي که ويندوز از نوع xp باشه و از فايل shell32.dll استفاده کنه. در غير اينصورت يا آيکن اشتباهي نشون داده ميشه يا اصلاً نشون داده نميشه.
راه ديگه اي که ميتونيم به کار ببريم اينه که آيکن رو در يک مسير داخلي قرار بديم ، يعني آيکني که براي پوشه در نظر گرفته ايم رو داخل خود اون کپي کنيم و مسير اون رو براي تنظيمات بديم تا هميشه با آن پوشه آيکن موجود در اون هم منتقل بشه و هميشه در دسترس باشه.
حالا آيکن ميتونه از نوع ico باشه يا از آيکنهاي موجود در برنامه هاي اون پوشه باشه. براي ويندوز فرقي نميکنه ، چون در هر صورت آيکن رو براي اون پوشه در نظر ميگيره و نشون ميده!
خودتون هم ميتونيد فايل Desktop.ini رو داخل نوت پد (notepad) باز کنيد و تغيراتي روش بديد به شرطي که مطابق با قواعد باشه.
مثلا براي تغير مسير آيکن ميتونيد اينا رو بنويسيد:
*براي استفاده از آيکنهاي داخلي موجود در يک فايل
[.ShellClassInfo]
IconFile=%SystemRoot%\system32\SHELL32.dll
IconIndex=27
*براي استفاده از يک آيکن خارجي کپي شده در پوشه
[.ShellClassInfo]
IconFile=icon.ico
تنظيمات ديگه اي هم هست که ميتونيد در نظر بگيريد.
مثلا يک خط توضيح براي اون فولدر بنويسيد:
Infotip=Best Learning in SNJOnline.blogfa.com
يا يک تصوير پس زمينه براي اون انتخاب کنيد:
IconArea_Image=Folder Settings\Background.JPG
يا رنگ پس زمينه رو عوض کنيد:
IconArea_TextBackground=0x00C0C0C0
يا رنگ نوشته ها رو:
IconArea_Text=0x00FFFFFF
اينم نمونه فايل desktop.ini
[.ShellClassInfo]
Infotip=Best Learning in SNJOnline.blogfa.com
ConfirmFileOp=0
IconFile=%SystemRoot%\system32\SHELL32.dll
IconIndex=130
[{BE098140-A513-11D0-A3A4-00C04FD706EC}]
Attributes=1
IconArea_Text=0x000000FF
IconArea_TextBackground=0x00DADADA
IconArea_Image=Folder Settings\Background.JPG
[ExtShellFolderViews]
{BE098140-A513-11D0-A3A4-00C04FD706EC}={BE098140-A513-11D0-A3A4-00C04FD706EC}
با دو خط کوتاه دستور تو ويندوز ميشه آيکنها رو از فايلهاي اجرايي انتخاب و نمايش داد!
و البته اگه برنامه نويسي بلد باشيد با کمي زرنگي ميتونيد از دستورات پوسته به نفع خودتون استفاده کنيد.
اين دو خط رو تو نوت پد بنويسيد و با پسوند scf ذخيره کنيد و بعدشم يه رفرش بزنيد تا نتيجه شاهکارتون رو ببينيد.
اگه خروجي فايل تو دسکتاپ باشه ديگه نيازي به رفرش هم نيست!. فقط کافي تغيرات فايل رو تو نوت پد سيو کنيد!. چون اکسپلورر خودشو اتوماتيک رفرش ميکنه پس آيکن فايل هم تغير ميکنه!.
نوت پد (notepad) رو باز کنيد.
اين دو خط رو کپي کنيد داخلش و فايل خروجي رو تو دسکتاپ سيو کنيد.
[Shell]
IconFile=explorer.exe,0
نتيجه رو ببينيد.
حالا به جاي شماره 0 بعد از کاما يه عدد ديگه کمتر از 10 بزاريد و دوباره فايلو سيو کنيد.
بازم نتيجه رو ببينيد.
دوباره تغير بديد.دوباره ذخيره کنيد...
براي استفاده از بقيه آيکن ها در بقيه فايلهاي اجرايي هم ميتونيد به اين ترتيب عمل کنيد.
all icon from iexplore.exe in winxp.
IconFile=%HOMEDRIVE%\Program Files\Internet Explorer\iexplore.exe,0 = internet explorer main icon
...\iexplore.exe,1 = internet explorer page icon
...\iexplore.exe,15 = internet explorer old page icon
...\iexplore.exe,4 = internet explorer home page icon
...\iexplore.exe,6 = internet explorer search icon
...\iexplore.exe,8 = internet explorer jpeg image icon
...\iexplore.exe,9 = internet explorer gif image icon
...\iexplore.exe,22 = internet explorer mht page icon
other icon in iexplore.exe is old.
all icon from explorer.exe in winxp.
IconFile=explorer.exe,0 = explorer icon
IconFile=explorer.exe,1 = search icon
IconFile=explorer.exe,3 = desktop icon
IconFile=explorer.exe,5 = Taskbar icon
IconFile=explorer.exe,6 = Recycle Bin icon
IconFile=explorer.exe,7 = i icon
IconFile=explorer.exe,9 = X icon
IconFile=explorer.exe,13 = folder icon
IconFile=explorer.exe,14 = globe icon
IconFile=explorer.exe,15 = mail icon
other icon in explorer.exe is old.
all icon from shell32.dll in winxp.
IconFile=shell32.dll,0 = none icon
IconFile=shell32.dll,1 = WorclPacl old page icon
IconFile=shell32.dll,2 = .com files icon
IconFile=shell32.dll,3 = windows closed folder icon
IconFile=shell32.dll,4 = windows opened folder icon
IconFile=shell32.dll,6 = windows Floppy drive icon
IconFile=shell32.dll,7 = windows removable disk icon
IconFile=shell32.dll,8 = windows local drive icon
IconFile=shell32.dll,9 = windows online network drive icon
IconFile=shell32.dll,10 = windows offline network drive icon
IconFile=shell32.dll,11 = windows CD-ROM drive icon
IconFile=shell32.dll,13 = windows network globe icon
IconFile=shell32.dll,15 = windows My Computer icon
IconFile=shell32.dll,16 = windows printer icon
IconFile=shell32.dll,17 = windows computer & network icon
IconFile=shell32.dll,18 = windows local network icon
IconFile=shell32.dll,19 = windows Control Panel folder icon
IconFile=shell32.dll,20 = windows Scheduled Tasks icon
IconFile=shell32.dll,21 = windows Desktop icon
IconFile=shell32.dll,22 = windows search icon
IconFile=shell32.dll,23 = windows help icon
IconFile=shell32.dll,24 = windows Turn Off icon
IconFile=shell32.dll,27 = windows search icon
IconFile=shell32.dll,31 = windows Empty Recycle Bin icon
IconFile=shell32.dll,32 = windows Full Recycle Bin icon
IconFile=shell32.dll,34 = windows Desktop icon 1
IconFile=shell32.dll,35 = windows Desktop icon 2
IconFile=shell32.dll,36 = windows printer folder icon
IconFile=shell32.dll,38 = windows fonts folder icon
IconFile=shell32.dll,39 = windows taskbar icon
SNJOnline.blogfa.com©SNJOnline.blogfa.com
IconFile=shell32.dll,40 = windows music cd icon
IconFile=shell32.dll,43 = windows star icon
IconFile=shell32.dll,44 = windows Log off icon
IconFile=shell32.dll,45 = windows find folder icon
IconFile=shell32.dll,46 = windows update icon
IconFile=shell32.dll,47 = windows lock icon
IconFile=shell32.dll,49 = windows empty icon
IconFile=shell32.dll,50 = windows empty icon
IconFile=shell32.dll,51 = windows empty icon
IconFile=shell32.dll,52 = windows empty icon
IconFile=shell32.dll,55 = windows search page icon
IconFile=shell32.dll,60 = windows network printer icon
IconFile=shell32.dll,61 = windows save printer icon
IconFile=shell32.dll,66 = windows Move folder icon
IconFile=shell32.dll,67 = windows .folder Rename icon
IconFile=shell32.dll,69 = windows .ini(Initialization) files icon
IconFile=shell32.dll,71 = windows .bat(Batch) files icon
IconFile=shell32.dll,72 = windows .dll(Dynamic-Link Library) files icon
IconFile=shell32.dll,73 = windows font files(A) icon
IconFile=shell32.dll,74 = windows font files(TTF) icon
IconFile=shell32.dll,75 = windows font files(a) icon
IconFile=shell32.dll,78 = windows backup disk icon
IconFile=shell32.dll,80 = windows Disk Defragmenter icon
IconFile=shell32.dll,81 = windows Default Printer icon
IconFile=shell32.dll,82 = windows Default Network Printer icon
IconFile=shell32.dll,81 = windows network documents folder icon
IconFile=shell32.dll,86 = windows Star icon
IconFile=shell32.dll,105 = windows fax modem icon
IconFile=shell32.dll,106 = windows Default fax modem icon
IconFile=shell32.dll,107 = windows Default network fax modem icon
IconFile=shell32.dll,108 = windows network fax modem icon
IconFile=shell32.dll,109 = windows stop icon
IconFile=shell32.dll,110 = windows Folder Options icon
IconFile=shell32.dll,113 = windows DVD CD icon
IconFile=shell32.dll,115 = windows film page icon
IconFile=shell32.dll,116 = windows audio page icon
IconFile=shell32.dll,120 = windows mouse icon
IconFile=shell32.dll,122 = windows modem icon
IconFile=shell32.dll,126 = windows document folder icon
IconFile=shell32.dll,127 = windows Picture folder icon
IconFile=shell32.dll,128 = windows Music folder icon
IconFile=shell32.dll,129 = windows Film folder icon
IconFile=shell32.dll,130 = windows MSN icon
IconFile=shell32.dll,131 = windows delete icon
IconFile=shell32.dll,133 = windows Rename icon
IconFile=shell32.dll,136 = windows Printer icon
IconFile=shell32.dll,137 = windows GO icon
IconFile=shell32.dll,139 = windows Kodak icon
IconFile=shell32.dll,140 = windows whityboard icon
IconFile=shell32.dll,141 = windows Display Properties icon
IconFile=shell32.dll,146 = windows Shortcut arrow icon
IconFile=shell32.dll,150 = windows home network icon
IconFile=shell32.dll,159 = windows Accessibility Options icon
IconFile=shell32.dll,160 = windows User Accounts icon
IconFile=shell32.dll,162 = windows Add or Remove Programs icon
IconFile=shell32.dll,163 = windows mouse & printer icon
IconFile=shell32.dll,168 = windows Sounds and Audio Devices icon
SNJOnline.blogfa.com©SNJOnline.blogfa.com
IconFile=shell32.dll,171 = windows search text icon
IconFile=shell32.dll,172 = windows Narrator icon1
IconFile=shell32.dll,173 = windows On-Screen Keyboard icon
IconFile=shell32.dll,175 = windows help page icon
IconFile=shell32.dll,176 = windows GO button icon
IconFile=shell32.dll,177 = windows DVD CD Drive icon
IconFile=shell32.dll,180 = windows CD-ROM icon
IconFile=shell32.dll,181 = windows CD-R icon
IconFile=shell32.dll,182 = windows CD-RW icon
IconFile=shell32.dll,183 = windows DVD-ROM icon
IconFile=shell32.dll,184 = windows DVD-R icon
IconFile=shell32.dll,204 = windows DVD-RW icon
IconFile=shell32.dll,185 = windows MP3-Player icon
IconFile=shell32.dll,186 = windows Cassette-Player icon
IconFile=shell32.dll,187 = windows Cassette-Player icon
IconFile=shell32.dll,188 = windows CD icon
IconFile=shell32.dll,194 = windows Floppy icon
IconFile=shell32.dll,196 = windows Mobile icon
IconFile=shell32.dll,198 = windows Modem icon
IconFile=shell32.dll,199 = windows Modem icon
IconFile=shell32.dll,200 = windows pocket computer icon
IconFile=shell32.dll,201 = windows Scanner icon
IconFile=shell32.dll,202 = windows Scanners and Cameras icon
IconFile=shell32.dll,203 = windows handycam icon
IconFile=shell32.dll,204 = windows NewFolder icon
IconFile=shell32.dll,217 = windows Eject icon
IconFile=shell32.dll,204 = windows NewFolder icon
IconFile=shell32.dll,204 = windows NewFolder icon
IconFile=shell32.dll,220= windows IE( internet explorer ) icon
and other...!
IconFile=shell32.dll,xxx= windows xxxxxxxxxx icon
Shell32.dll is full of the windows icons!
به جز آيکن از اجزاي ديگه يه فايل هم ميتونيد استفاده کنيد فقط بايد روش کار بشه. (جوينده يابنده است)
مثلا براي ساخت آيکن دسکتاپ ميتونيد از اين کدها استفاده کنيد.
[Shell]
Command=2
IconFile=explorer.exe,3
[Taskbar]
Command=ToggleDesktop
فايل خروجي دقيقا مانند آيکن Show Desktop در Quick launch bar عمل مي کند! يعني با يکبار کليک روي آيکن همه پنجره ها کوچک مي شوند و با کليک بعدي همه پنجره ها بزرگ مي شوند.
اگه به جاي ToggleDesktop بنويسيد explorer اينبار با کليک کردن روي فايل windows explorer باز ميشه!
;)
snjonline.blogfa.com