{"id":348,"date":"2010-08-23T14:40:20","date_gmt":"2010-08-23T14:40:20","guid":{"rendered":"http:\/\/us111.siteground.us\/~tlhouse0\/ptfbpro.com\/automate\/?p=348"},"modified":"2012-06-13T21:55:38","modified_gmt":"2012-06-13T21:55:38","slug":"access-common-windows-functions-by-hotkey","status":"publish","type":"post","link":"https:\/\/ptfbpro.com\/automate\/access-common-windows-functions-by-hotkey\/","title":{"rendered":"Access common windows functions by hotkey"},"content":{"rendered":"<p>I bet there are some Windows operations you perform regularly like flushing Internet Explorer&#8217;s cache, visiting the Add\/Remove programs screen (aka &#8220;Programs &amp; Features&#8221; in Windows 7), changing folder options, tweaking the firewall&#8217;s whitelist etc. Using PTFB Pro&#8217;s macro recorder you can get access to some of these functions a whole lot faster than you might think.<\/p>\n<p>Here&#8217;s an example. Let&#8217;s say you want to flush IE&#8217;s cache of temporary files:<\/p>\n<ol>\n<li>Create a screen based macro in PTFB Pro, and quit recording immediately by hitting the Pause\/Break key.\u00a0 That&#8217;s right &#8211; you&#8217;re <em>not <\/em>going to simply record the action of going to the Start Menu, selecting Internet Options in the control panel and digging through IE&#8217;s screens. There&#8217;s a faster way!<\/li>\n<li>Open the macro you&#8217;ve just created. Give it a meaningful name on the first page, then switch to the Triggers page. Turn <em>off<\/em> &#8220;Trigger spontaneously&#8221; and click on &#8220;Hotkey&#8221;. Choose the hotkey combo you want to use for this action, and switch to the Editing page.<\/li>\n<li>On the Editing page, delete any existing actions and add a &#8220;Run Executable&#8221; item. Type (or copy paste) the following line into the command line box: <code>RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8<\/code><\/li>\n<li>Click OK to save your changes and you&#8217;re done!<\/li>\n<\/ol>\n<p>You can use the same technique for a lot of other operations, just by changing the command line you use in step #3. Below there&#8217;s a list of the more common ones on Windows 7, but a bit of Googling will no doubt find you more. Also, bear in mind that this can be just the starting point for much more powerful actions.\u00a0 For example, you could define a macro that uses a RunDLL command to bring up a screen, then create another macro to carry out a specific operation on that screen, then create a third &#8220;wrapper&#8221; macro that runs both the other two in sequence in response to an entirely different hotkey.<\/p>\n<p><strong>Some more RunDLL command lines for Windows 7<\/strong><\/p>\n<p>Content Advisor<br \/>\n<code>RunDll32.exe msrating.dll,RatingSetupUI<\/code><\/p>\n<p>Control Panel<br \/>\n<code>RunDll32.exe shell32.dll,Control_RunDLL<\/code><\/p>\n<p>Date and Time Properties<br \/>\n<code>RunDll32.exe shell32.dll,Control_RunDLL timedate.cpl<\/code><\/p>\n<p>Display Settings<br \/>\n<code>RunDll32.exe shell32.dll,Control_RunDLL desk.cpl<\/code><\/p>\n<p>Device Manager<br \/>\n<code>RunDll32.exe devmgr.dll DeviceManager_Execute<\/code><\/p>\n<p>Folder Options &#8211; General<br \/>\n<code>RunDll32.exe shell32.dll,Options_RunDLL 0<\/code><\/p>\n<p>Folder Options &#8211; Search<br \/>\n<code>RunDll32.exe shell32.dll,Options_RunDLL 2<\/code><\/p>\n<p>Folder Options &#8211; View<br \/>\n<code>RunDll32.exe shell32.dll,Options_RunDLL 7<\/code><\/p>\n<p>Forgotten Password Wizard<br \/>\n<code>RunDll32.exe keymgr.dll,PRShowSaveWizardExW<\/code><\/p>\n<p>Flush IE&#8217;s Temporary Internet Files:<br \/>\n<code>RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8<\/code><\/p>\n<p>Flush IE&#8217;s Cookies:<br \/>\n<code>RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2<\/code><\/p>\n<p>Flush IE&#8217;s Browsing History:<br \/>\n<code>RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1<\/code><\/p>\n<p>Flush IE&#8217;s Stored Form Data:<br \/>\n<code>RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16<\/code><\/p>\n<p>Flush IE&#8217;s Stored Passwords:<br \/>\n<code>RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32<\/code><\/p>\n<p>Full IE browsing cleanup:<br \/>\n<code>RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255<\/code><\/p>\n<p>Full IE browsing cleanupfiles inc settings stored by Add-ons:<br \/>\n<code>RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351<\/code><\/p>\n<p>Hibernate<br \/>\n<code>RunDll32.exe powrprof.dll,SetSuspendState<\/code><\/p>\n<p>IE Favourites<br \/>\n<code>Rundll32.exe shdocvw.dll,DoOrganizeFavDlg<\/code><\/p>\n<p>Keyboard Properties<br \/>\n<code>RunDll32.exe shell32.dll,Control_RunDLL main.cpl @1<\/code><\/p>\n<p>Lock Screen<br \/>\n<code>RunDll32.exe user32.dll,LockWorkStation<\/code><\/p>\n<p>Mouse Button &#8211; Swap left button to function as right<br \/>\n<code>Rundll32 User32.dll,SwapMouseButton<\/code><\/p>\n<p>Mouse Properties Dialog Box<br \/>\n<code>Rundll32 Shell32.dll,Control_RunDLL main.cpl @0,0<\/code><\/p>\n<p>Map Network Drive Wizard<br \/>\n<code>Rundll32 Shell32.dll,SHHelpShortcuts_RunDLL Connect<\/code><\/p>\n<p>Network Connections<br \/>\n<code>RunDll32.exe shell32.dll,Control_RunDLL ncpa.cpl<\/code><\/p>\n<p>Open With Dialog Box<br \/>\n<code>Rundll32 Shell32.dll,OpenAs_RunDLL Any_File-name.ext<\/code><\/p>\n<p>Power Options<br \/>\n<code>RunDll32.exe Shell32.dll,Control_RunDLL powercfg.cpl<\/code><\/p>\n<p>Printer Management Folder<br \/>\n<code>Rundll32 Shell32.dll,SHHelpShortcuts_RunDLL PrintersFolder<\/code><\/p>\n<p>Programs &amp; Features, aka Add\/Remove programs<br \/>\n<code>RunDll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,0<\/code><\/p>\n<p>Region and Language Options<br \/>\n<code>Rundll32 Shell32.dll,Control_RunDLL Intl.cpl,,0<\/code><\/p>\n<p>Safely Remove Hardware Dialog Box<br \/>\n<code>Rundll32 Shell32.dll,Control_RunDLL HotPlug.dll<\/code><\/p>\n<p>Sound Properties Dialog Box<br \/>\n<code>Rundll32 Shell32.dll,Control_RunDLL Mmsys.cpl,,0<\/code><\/p>\n<p>Stored Usernames and Passwords<br \/>\n<code>RunDll32.exe keymgr.dll,KRShowKeyMgr<\/code><\/p>\n<p>System Properties &#8211; Advanced<br \/>\n<code>RunDll32.exe shell32.dll,Control_RunDLL sysdm.cpl<\/code><\/p>\n<p>System Properties &#8211; Advanced<br \/>\n<code>Rundll32 Shell32.dll,Control_RunDLL Sysdm.cpl,,3<\/code><\/p>\n<p>Taskbar Properties<br \/>\n<code>RunDll32.exe shell32.dll,Options_RunDLL 1<\/code><\/p>\n<p>User Accounts<br \/>\n<code>RunDll32.exe shell32.dll,Control_RunDLL nusrmgr.cpl<\/code><\/p>\n<p>Unplug\/Eject Hardware<br \/>\n<code>RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll<\/code><\/p>\n<p>Windows Security Center<br \/>\n<code>RunDll32.exe shell32.dll,Control_RunDLL wscui.cpl<\/code><\/p>\n<p>Windows &#8211; About<br \/>\n<code>RunDll32.exe SHELL32.DLL,ShellAboutW<\/code><\/p>\n<p>Windows Firewall Options<br \/>\n<code>RunDll32.exe shell32.dll,Control_RunDLL firewall.cpl<\/code><\/p>\n<p>Windows Fonts Folder<br \/>\n<code>Rundll32 Shell32.dll,SHHelpShortcuts_RunDLL FontsFolder<\/code><\/p>\n<p><a href=\"http:\/\/www.ptfbpro.com\/\" target=\"_blank\">Find out more about boosting your productivity with autoclicks and macros.<\/a><br \/>\n<em><a href=\"http:\/\/www.ptfbpro.com\/download.shtml\" target=\"_blank\">CLICK HERE to download a free 30 day trial, no strings attached<\/a>. If you aren&#8217;t entirely happy simply uninstall!<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I bet there are some Windows operations you perform regularly like flushing Internet Explorer&#8217;s cache, visiting the Add\/Remove programs screen (aka &#8220;Programs &amp; Features&#8221; in Windows 7), changing folder options, <a class=\"more-link\" href=\"https:\/\/ptfbpro.com\/automate\/access-common-windows-functions-by-hotkey\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[16,17],"tags":[],"class_list":["post-348","post","type-post","status-publish","format-standard","hentry","category-automate-repetitive-tasks","category-automation-power-users"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ptfbpro.com\/automate\/wp-json\/wp\/v2\/posts\/348"}],"collection":[{"href":"https:\/\/ptfbpro.com\/automate\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ptfbpro.com\/automate\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ptfbpro.com\/automate\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ptfbpro.com\/automate\/wp-json\/wp\/v2\/comments?post=348"}],"version-history":[{"count":0,"href":"https:\/\/ptfbpro.com\/automate\/wp-json\/wp\/v2\/posts\/348\/revisions"}],"wp:attachment":[{"href":"https:\/\/ptfbpro.com\/automate\/wp-json\/wp\/v2\/media?parent=348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ptfbpro.com\/automate\/wp-json\/wp\/v2\/categories?post=348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ptfbpro.com\/automate\/wp-json\/wp\/v2\/tags?post=348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}