Skip to content

Commit

Permalink
docs: fix remove some red areas
Browse files Browse the repository at this point in the history
  • Loading branch information
phil294 committed Oct 21, 2023
1 parent 1673aac commit 34c105e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ <h2 class="calibre18">Tutorial Contents</h2>
<li class="calibre11"> Press Win+Z. A web page opens in the default browser.</li>
<li class="calibre11">To exit or edit the script, right click its tray icon.</li>
</ol>
<p class="calibre8"> Note: Each script can contain any number of hotkeys (in the absence of hotkeys, a script will perform a series of sequential actions the moment it is launched). In addition, multiple scripts can be running simultaneously, <span class="tbd">each with its own tray icon.</span></p>
<p class="calibre8"> Note: Each script can contain any number of hotkeys (in the absence of hotkeys, a script will perform a series of sequential actions the moment it is launched). In addition, multiple scripts can be running simultaneously, each with its own tray icon.</p>
<p class="calibre8"> </p>
<p class="style1"><a id="TutorialHelp.htm__Launch" href="#TutorialHelp.htm__Launch" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">#</a> Launching a program or document</p>
<p class="calibre8">The <a href="#Run.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">Run</a> command is used to launch a program, document, URL, or shortcut, as in the following examples:<br class="calibre12" /> Run, gedit<br class="calibre12" /> Run, %A_Home%/Documents/Address List.doc<br class="calibre12" /> <br class="calibre12" /> Run, www.yahoo.com<br class="calibre12" /> Run, mailto:someone@anywhere.com</p>
Expand All @@ -974,7 +974,7 @@ <h2 class="calibre18">Tutorial Contents</h2>
<p class="calibre8">To move the mouse without clicking, use <a href="#MouseMove.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">MouseMove</a>. To drag the mouse, use <a href="#MouseClickDrag.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">MouseClickDrag</a>. </p>
<p class="calibre8"> </p>
<p class="style1"><a id="TutorialHelp.htm__Activate" href="#TutorialHelp.htm__Activate" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">#</a> Activating and manipulating windows</p>
<p class="calibre8">To activate a window (make it foremost), use <a href="#WinActivate.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">WinActivate</a>. To detect whether a window exists, use <a href="#IfWinExist.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">IfWinExist</a> or <a href="#WinWait.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2"><span class="tbd">WinWait</span></a>. The following example illustrates these commands:</p>
<p class="calibre8">To activate a window (make it foremost), use <a href="#WinActivate.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">WinActivate</a>. To detect whether a window exists, use <a href="#IfWinExist.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">IfWinExist</a> or <a href="#WinWait.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">WinWait</a>. The following example illustrates these commands:</p>
<pre class="calibre22">IfWinExist, Untitled - Notepad
{
WinActivate
Expand All @@ -988,7 +988,7 @@ <h2 class="calibre18">Tutorial Contents</h2>
<p class="calibre8">The above example first searches for any existing window whose title starts with "Untitled - Notepad" (case sensitive). If such a window is found, it is activated. Otherwise, Notepad is launched and the script waits for the Untitled window to appear, at which time it is activated. The above example also utilizes the <a href="#LastFoundWindow.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">last found window</a> to avoid the need to specify the window's title with each WinActivate.</p>
<p class="calibre8">Some of the other commonly used window commands are:</p>
<ul class="calibre10">
<li class="calibre11"> <a href="#WinWaitActive.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2"><span class="tbd">WinWaitActive</span></a>: Waits for a window to become active (typically used immediately after a <a href="#Run.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">Run</a> command).</li>
<li class="calibre11"> <a href="#WinWaitActive.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">WinWaitActive</a>: Waits for a window to become active (typically used immediately after a <a href="#Run.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">Run</a> command).</li>
<li class="calibre11"><a href="#IfWinActive.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">IfWinActive</a>: Checks if a window is currently active.</li>
<li class="calibre11"><a href="#WinClose.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">WinClose</a>: Closes a window.</li>
<li class="calibre11"><a href="#WinMove.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">WinMove</a>: Moves or resizes a window.</li>
Expand Down Expand Up @@ -1075,10 +1075,10 @@ <h3 class="calibre7"> Why is the <a href="#Run.htm" class="pcalibre3 pcalibre1 p
<p class="calibre8">Some programs need to be started in their own directories (when in doubt, it is usually best to do so). Example:<br class="calibre12" /> Run, /opt/app/bin, /opt/app</p>
<h3 class="calibre7"><br class="calibre12" /> I'm having trouble getting my mouse buttons working as hotkeys. Any advice?</h3>
<p class="calibre8">The left and right mouse buttons should be assignable normally (for example, "#LButton::" is the Win+LeftButton hotkey). Similarly, the middle button and the turning of the <a href="#KeyList.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">mouse wheel</a> should be assignable normally except on mice whose drivers directly control those buttons.</p>
<p class="calibre8"><span class="tbd"> The fourth button (XButton1) and the fifth button (XButton2) might be assignable if your mouse driver allows their clicks to be <a href="#KeyHistory.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">seen</a> by the system.</span> If they cannot be seen -- or if your mouse has more than five buttons -- you can try configuring the software that came with the mouse (sometimes accessible in the Control Panel or Start Menu) to send a keystroke whenever you press one of these buttons. Such a keystroke can then be defined as a hotkey in a script. For example, if you configure the fourth button to send Control+F12, you can then indirectly configure that button as a hotkey by using <em class="calibre21">^F12::</em> in the script.</p>
<p class="calibre8">The fourth button (XButton1) and the fifth button (XButton2) might be assignable if your mouse driver allows their clicks to be <a href="#KeyHistory.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">seen</a> by the system. If they cannot be seen -- or if your mouse has more than five buttons -- you can try configuring the software that came with the mouse (sometimes accessible in the Control Panel or Start Menu) to send a keystroke whenever you press one of these buttons. Such a keystroke can then be defined as a hotkey in a script. For example, if you configure the fourth button to send Control+F12, you can then indirectly configure that button as a hotkey by using <em class="calibre21">^F12::</em> in the script.</p>
<p class="calibre8">If you have a five-button mouse whose fourth and fifth buttons cannot be <a href="#KeyHistory.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">seen</a>, you can try changing your mouse driver to the default driver included with the OS. This assumes there is such a driver for your particular mouse and that you can live without the features provided by your mouse's custom software.</p>
<h3 class="calibre7"><br class="calibre12" /> How can symbols and punctuation marks be defined as hotkeys?</h3>
<p class="calibre8">Symbols that don't require the shift key to be held down can be defined normally (except for semicolon, <span class="tbd">which should be defined as `;::</span>). For example, this line would make accent (`) become a hotkey: `::MsgBox, Accent was pressed.</p>
<p class="calibre8">Symbols that don't require the shift key to be held down can be defined normally (except for semicolon, which should be defined as `;::). For example, this line would make accent (`) become a hotkey: `::MsgBox, Accent was pressed.</p>
<p class="calibre8">However, symbols that require the shift key to be held down (such as @ and ?) can be defined as hotkeys by including the SHIFT modifier in the definition of the symbol's unshifted key. For example, this line would make Control-Asterisk become a hotkey: ^+8::MsgBox, Ctrl-* was pressed.</p>
<h3 class="calibre7"><br class="calibre12" /> How can a combination of modifier keys be made a hotkey?</h3>
<p class="calibre8">The modifier symbols must always apply to a named key. For example, to define Ctrl+Alt+Win as a hotkey, use ^!LWin or ^!RWin rather than ^!#. To define the spacebar, use ^Space rather than "^ ". Note that the modifier keys must be pressed before the named key, so in the first example Ctrl+Alt must be held down prior to pressing LWin or RWin.</p>
Expand Down Expand Up @@ -1149,7 +1149,7 @@ <h3 class="calibre7"><br class="calibre12" /> How to detect when a web page is f
<p class="calibre8">The technique in the following example will work with MS Internet Explorer for most pages. A similar technique might work in other browsers:</p>
<pre class="calibre22">Run, www.yahoo.com
MouseMove, 0, 0 ; Prevents the status bar from showing a mouse-hover link instead of "Done".
<span class="tbd">WinWait</span>, Yahoo! - Microsoft Internet Explorer
WinWait, Yahoo! - Microsoft Internet Explorer
WinActivate
<span class="tbd">StatusBarWait</span>, Done, 30
if ErrorLevel &lt;&gt; 0
Expand All @@ -1158,7 +1158,7 @@ <h3 class="calibre7"><br class="calibre12" /> How to detect when a web page is f
MsgBox, The page is done loading. </pre>
<h3 class="calibre7"><br class="calibre12" /> How can dates and times be compared or manipulated?</h3>
<p class="calibre8">The <a href="#EnvAdd.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">EnvAdd</a> command can add or subtract a quantity of days, hours, minutes, or seconds to a time-string that is in the <a href="#FileSetTime.htm__YYYYMMDD" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">YYYYMMDDHH24MISS</a> format. The following example subtracts 7 days from the specified time: EnvAdd, VarContainingTimestamp, -7, days</p>
<p class="calibre8">To determine the amount of time between two dates or times, see <a href="#EnvSub.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">EnvSub</a>, which gives an example. Also, the built-in variable <a href="#Variables.htm__Now" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2"><span class="tbd">A_Now</span></a> contains the current local time.</p>
<p class="calibre8">To determine the amount of time between two dates or times, see <a href="#EnvSub.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">EnvSub</a>, which gives an example. Also, the built-in variable <a href="#Variables.htm__Now" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">A_Now</a> contains the current local time.</p>
<h3 class="calibre7"><br class="calibre12" /> How can the built-in Windows shortcut keys, such as Win+U (Utility Manager) and Win+R (Run), be changed or disabled?</h3>
<p class="calibre8">Here are some <a href="#Override.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">examples</a>.</p>
<h3 class="calibre7"><br class="calibre12" /> How can <a href="#MsgBox.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">MsgBox</a>'s button names be changed?</h3>
Expand Down Expand Up @@ -1801,7 +1801,7 @@ <h4 class="calibre25"><a id="Variables.htm__h" href="#Variables.htm__h" class="p
<tbody class="calibre2">
<tr class="calibre3">
<td class="calibre4">A_ThisMenuItem</td>
<td class="calibre4"><a id="Variables.htm__ThisMenuItem" href="#Variables.htm__ThisMenuItem" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">#</a>The name of the most recently selected <a href="#Menu.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">custom menu item</a> (blank if none).</span></td>
<td class="calibre4"><a id="Variables.htm__ThisMenuItem" href="#Variables.htm__ThisMenuItem" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">#</a>The name of the most recently selected <a href="#Menu.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">custom menu item</a> (blank if none).</td>
</tr>
<tr class="calibre3">
<td class="calibre4">A_ThisMenu</td>
Expand Down

0 comments on commit 34c105e

Please sign in to comment.