{"id":324,"date":"2008-05-17T11:07:01","date_gmt":"2008-05-17T11:07:01","guid":{"rendered":"http:\/\/6teen.ru\/?p=194"},"modified":"2008-05-17T11:07:01","modified_gmt":"2008-05-17T11:07:01","slug":"2119-2","status":"publish","type":"post","link":"http:\/\/pblog.ru\/lab\/?p=324","title":{"rendered":"\u041a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u0432 \u043f\u0430\u043d\u0435\u043b\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 IE?"},"content":{"rendered":"<p>\u041a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u0432 \u043f\u0430\u043d\u0435\u043b\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 IE?<br \/>\n<!--more--><\/p>\n<pre class=\"alt2\" style=\"margin:0px; padding:6px; border:1px inset; width:580px; height:320px; overflow:auto\"><div>\u041a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u0432 \u043f\u0430\u043d\u0435\u043b\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 IE?\n\n1. ButtonText = \u0412\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0430\u044f \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0430 \u043a \u043a\u043d\u043e\u043f\u043a\u0435\n2. MenuText = \u0422\u0435\u043a\u0441\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u0434\u043b\u044f \u043f\u0443\u043d\u043a\u0442\u0430 \u0432 \u043c\u0435\u043d\u044e \"\u0421\u0435\u0440\u0432\u0438\u0441\"\n3. MenuStatusbar = *Ignore*\n4. CLSID = \u0412\u0430\u0448 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 classID. \u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e CLSID (\u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0438) \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c GUIDTOSTRING.\n5. Default Visible := \u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0439.\n6. Exec := \u041f\u0443\u0442\u044c \u043a \u0412\u0430\u0448\u0435\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435.\n7. Hoticon := \u0438\u043a\u043e\u043d\u043a\u0430 \u0438\u0437 shell32.dll \u043a\u043e\u0433\u0434\u0430 \u043c\u044b\u0448\u043a\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430\u0434 \u043a\u043d\u043e\u043f\u043a\u043e\u0439\n8. Icon := \u0438\u043a\u043e\u043d\u043a\u0430 \u0438\u0437 shell32.dll\nCODE\nprocedure CreateExplorerButton;\nconst\nTagID = '\\{10954C80-4F0F-11d3-B17C-00C0DFE39736}\\';\nvar\nReg: TRegistry;\nProgramPath: string;\nRegKeyPath: string;\nbegin\nProgramPath := 'c:\\folder\\exename.exe';\nReg := TRegistry.Create;\ntry\nwith Reg do begin\nRootKey := HKEY_LOCAL_MACHINE;\nRegKeyPath := 'Software\\Microsoft\\Internet Explorer\\Extensions';\nOpenKey(RegKeyPath + TagID, True);\nWriteString('ButtonText', 'Your program Button text');\nWriteString('MenuText', 'Your program Menu text');\nWriteString('MenuStatusBar', 'Run Script');\nWriteString('ClSid', '{1FBA04EE-3024-11d2-8F1F-0000F87ABD16}');\nWriteString('Default Visible', 'Yes');\nWriteString('Exec', ProgramPath);\nWriteString('HotIcon', ',4');\nWriteString('Icon', ',4');\nend\nfinally\nReg.CloseKey;\nReg.Free;\nend;\nend;\n<\/div><\/pre>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u0432 \u043f\u0430\u043d\u0435\u043b\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 IE?<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[448,457],"tags":[702,772,796,885],"_links":{"self":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts\/324"}],"collection":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=324"}],"version-history":[{"count":0,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts\/324\/revisions"}],"wp:attachment":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=324"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}