AutoHotkey Community

It is currently May 27th, 2012, 12:31 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: June 20th, 2005, 5:33 pm 
Offline

Joined: November 6th, 2004, 11:03 am
Posts: 170
Location: Salt Lake City, UT
I'd like to have the NumpadSub (or some other) key perform the same action as tab, when the limit option is enforced:
Code:
   Gui,Add,Edit,yp xp w35 r.8 UpperCase Number ReadOnly limit4 vXMLFileName1 -TabStop,0000
   Gui,Add,Edit,yp xp+40 w20 r.8 UpperCase Number limit2 vXMLFileName2,%XMLFileName2%
   Gui,Add,Edit,yp xp+25 w27 r.8 UpperCase limit2 vXMLFileName3,%XMLFileName3%
   Gui,Add,Edit,yp xp+32 w45 r.8 UpperCase Number limit5 vXMLFileName4,%XMLFileNameA1%
Gui,Show,File Helper
return


$NumpadSub::
   IfWinActive,FileHelper,
      Send,{tab}
   Else
      Send, {NumpadSub}
Return


I'm not sure if this is possible, and I know it's not a bug.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 20th, 2005, 5:45 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I might be misunderstanding here, but I think there's a simple solution. Make your GUI window's title match the title you check for in the hotkey subroutine:

Gui,Show,, FileHelper


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 21st, 2005, 5:30 pm 
Offline

Joined: November 6th, 2004, 11:03 am
Posts: 170
Location: Salt Lake City, UT
There are a couple of things here. (I had the window name right in my actual code :oops: )

1) because some of these edit controls have +Number in them, I can type a tab to move to the next control, but I can't type a - because it's not a number (even though I would like it to perform the tab action)
1a) related to this, the bottom outside border of a tooltip appears when I attempt to type any non-numeric characters in an edit control with +number option.

2) in the control that does not have the +Number option, I still can't type - and get {tab}.

If this is really a support issue, please feel free to move it. ;)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 22nd, 2005, 10:04 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
ranomore wrote:
but I can't type a - because it's not a number (even though I would like it to perform the tab action)

2) in the control that does not have the +Number option, I still can't type - and get {tab}.
I'm surprised that doesn't work. When you make NumpadSub into a hotkey, I would expect the tab keystroke to take effect unless there's some kind of intereference from the control.

I just tried the script and it seems to work on my system. I can press the minus key on the numpad to navigate to the next control. Maybe it has something to do with the issue below.

Quote:
the bottom outside border of a tooltip appears when I attempt to type any non-numeric characters in an edit control with +number option.
This bug has also been reported in the following topic, but no solution has been found yet (the balloon tip appears correctly on some systems but on others only its shadow appears): http://www.autohotkey.com/forum/viewtopic.php?t=3294


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: No registered users and 2 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