AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

What command do i need to use?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Faint Trace



Joined: 20 Aug 2005
Posts: 11
Location: Memphis Tn

PostPosted: Thu Aug 25, 2005 2:55 pm    Post subject: What command do i need to use? Reply with quote

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
View user's profile Send private message
Litmus Red



Joined: 25 Jul 2005
Posts: 139
Location: Richmond, Virginia

PostPosted: Thu Aug 25, 2005 3:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Litmus Red



Joined: 25 Jul 2005
Posts: 139
Location: Richmond, Virginia

PostPosted: Thu Aug 25, 2005 4:00 pm    Post subject: Reply with quote

You may find the tabs are grouped as a single control, so ControlClick might not help you.

You could try some different keystrokes. Chris suggested Control-PgDn, Control Tab, and the "Control TabRight" command on another post.

http://www.autohotkey.com/docs/commands/Control.htm

You could also use an image search.

http://www.autohotkey.com/docs/commands/ImageSearch.htm
Back to top
View user's profile Send private message
delta



Joined: 16 Feb 2005
Posts: 44

PostPosted: Thu Aug 25, 2005 8:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group