AutoHotkey Community

It is currently May 26th, 2012, 11:06 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: August 25th, 2005, 3:55 pm 
Offline

Joined: August 20th, 2005, 6:57 am
Posts: 11
Location: Memphis Tn
I will try to make this very simple. My work is using Locarta.
Image
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)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 25th, 2005, 4:50 pm 
Offline

Joined: July 25th, 2005, 10:20 pm
Posts: 139
Location: Richmond, Virginia
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 25th, 2005, 5:00 pm 
Offline

Joined: July 25th, 2005, 10:20 pm
Posts: 139
Location: Richmond, Virginia
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 25th, 2005, 9:03 pm 
Offline

Joined: February 16th, 2005, 5:32 pm
Posts: 44
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.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot], JSLover, Kirtman, Miguel, XstatyK and 59 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group