AutoHotkey Community

It is currently May 24th, 2012, 12:13 am

All times are UTC [ DST ]


Search found 7 matches
Search these results:

Author Message

 Forum: Suggestions   Topic: Controlling popup menues.

Posted: March 30th, 2007, 1:55 pm 

Replies: 6
Views: 5392


By the way, command IDs in my case are unusable - application does not understand them. I think it uses TrackPopupMenu return value

 Forum: Suggestions   Topic: Controlling popup menues.

Posted: March 30th, 2007, 1:53 pm 

Replies: 6
Views: 5392


So, not much sense to control the context menus this way, IMHO. I end up by analysing menu structure and generate {DOWN}s and {ENTER}s API_GetMenuItemID( hMenu, nPos ) { return DllCall("GetMenuItemID", "uint", hMenu, "int", nPos) } API_GetSubm...

 Forum: Suggestions   Topic: Controlling popup menues.

 Post subject: Controlling popup menues.
Posted: March 29th, 2007, 6:42 am 

Replies: 6
Views: 5392


Please add an ability to control popup menues. The basic methods is the following: 1. Find a window with class like #32768 2. Get HMENU by sending MN_GETHMENU to the window 3. Get menu item id (I think you can use existing code to the WinMenuSelectItem) 4. Send a WM_COMMAND to the appropriate window...

 Forum: Support   Topic: how to wait WinMenuSelectItem effect

Posted: July 28th, 2006, 1:24 pm 

Replies: 3
Views: 4822


First note, you can't put a hotkey in a condition command, a hotkey is global, except if put in a #IfWinActive directive. So you are probably missing just a #. It is missing from my post only Next, perhaps you should add a signifiant Sleep after the WinMenuSelectItem command, if you application is ...

 Forum: Support   Topic: how to wait WinMenuSelectItem effect

Posted: July 27th, 2006, 9:01 am 

Replies: 3
Views: 4822


i use the following code toEnglish() { WinMenuSelectItem, , ,Tools,SetEnglishLayout Sleep -1 } IfWinActive, ahk_class AxaptaClientClassName ~^Enter:: toEnglish() SendInput,{APPSKEY}sg Exit toEnglish is used to switch target application layout to the english locale...

 Forum: Issues   Topic: english keys under russian layout

 Post subject: no
Posted: September 15th, 2004, 7:17 am 

Replies: 4
Views: 2120


Does having both the script and your active window set to the same layout resolve this problem? no - when i do so script sends || instead of english characters. I need, that script do not emulate keypress under current layout, but emulate keypress under english layout. can it be achieved?

 Forum: Issues   Topic: english keys under russian layout

Posted: September 14th, 2004, 12:43 pm 

Replies: 4
Views: 2120


this script works under english keyboard layout, but don't under russian
(application understands 'u' as russian 'ge' - it is located on the same button)

Code:
~^!c::
  IfWinActive, Axapta
  Send, {ALTDOWN}m{ALTUP}c{ENTER}u
Exit
Sort by:  
Page 1 of 1 [ Search found 7 matches ]


All times are UTC [ DST ]


Powered by phpBB® Forum Software © phpBB Group