| View previous topic :: View next topic |
| Author |
Message |
Faint Trace
Joined: 20 Aug 2005 Posts: 11 Location: Memphis Tn
|
Posted: Thu Aug 25, 2005 2:55 pm Post subject: What command do i need to use? |
|
|
I will try to make this very simple. My work is using Locarta.
I need to change from the main tab to the vhcls. The tab key does not work on the section at the top, and i don't want to use the mouse drag to change from main to vhcls.
Do i need to use the ControlClick? I don't understand how this works. _________________ One machine can do the work of fifty ordinary men. No machine can do the work of one extraordinary man. Elbert Hubbard US author (1856 - 1915) |
|
| Back to top |
|
 |
Litmus Red
Joined: 25 Jul 2005 Posts: 139 Location: Richmond, Virginia
|
Posted: Thu Aug 25, 2005 3:50 pm Post subject: |
|
|
This script will send a mouse click to the cancel button in the active window.
| Code: | F3::
ControlClick, Cancel, A
Return |
In some cases, the control name will be "&Cancel" instead of "Cancel". Use the Window Spy tool to get the exact text of the controls in a window. The Window Spy tool is installed with AutoHotkey.
You can choose a specific window by changing "A" to a window title or a window class. |
|
| Back to top |
|
 |
Litmus Red
Joined: 25 Jul 2005 Posts: 139 Location: Richmond, Virginia
|
|
| Back to top |
|
 |
delta
Joined: 16 Feb 2005 Posts: 44
|
Posted: Thu Aug 25, 2005 8:03 pm Post subject: |
|
|
| Litmus Red wrote: | | Use the Window Spy tool to get the exact text of the controls in a window. |
This script does the same (it's from the manual...) Just hover over the control and the tool tip will display its name.
| Code: | ; This example allows you to move the mouse around to see
; the title of the window currently under the cursor:
#Persistent
SetTimer, WatchCursor, 100
return
WatchCursor:
MouseGetPos, , , id, control
WinGetTitle, title, ahk_id %id%
WinGetClass, class, ahk_id %id%
ToolTip, ahk_id %id%`nahk_class %class%`n%title%`nControl: %control%
return |
No need to download another software just to use it only once. |
|
| Back to top |
|
 |
|