Arch
2003-06-29 13:02:02 UTC
I'm in the process of creating and testing a hotkeys program that emulates
many of AutoIt's commands. To whet your appetite, here are some of the
features I have working already:
*any* key can be programmed as hotkey as long as it's not in use by another
program or Windows itself. Example: #w is windows-key held down followed by
W. Other examples: NumpadENTER, MEDIA_NEXT_TRACK (for keyboards with
extended buttons), etc.
The shift/ctrl/win/alt keys can optionally be distinguished between left and
right: Example: <#w is LWIN-W while >#w would be RWIN-W.
Internal support for both the RegisterHotkey() method and the keyboard hook
method, for the ultimate control over performance without giving up any
flexibility.
Supports scan codes and virtual keys so that any conceivable key on any
conceivable keyboard can be supported (hopefully).
Supports mouse button actions (e.g. click the middle button to launch a
program).
Supports ALT-TAB as a special action: you can finally create your own
substitutes for alt-tab, which in my case helps relieve sore fingers.
Here's what I use and it's amazing how much it helps:
RWIN & J = Alt-Tab
RWIN & L = WinClose (closes the foreground window, like Alt-F4)
Supports the Send command and SetKeyDelay.
You can create nonstandard modifying keys. Example:
Numlock & PGUP = notepad (hold down the numlock key then press PGUP to
execute)
You can force Numlock, Capslock, or Scrolllock to always be on or off.
The windowing "IF" commands support "ELSE" (it was a real bitch to get the
recursion right for this, so now I know why AutoIt doesn't support ELSE :)
Example:
NumpadAdd = IfWinActive, FotoCanvas, , Send, {+}, Else, IfWinActive, ACDSee,
, Send, {+}, Else, VolumeSetMax.aut
Here's another cool trick:
#c = Send, ^c, AND, Sleep, 100, AND, Clip2File.exe /text /sort
It allows you to hold down LWIN and then press "C" in Explorer to copy the
selected filenames, rather than the files themselves, onto the clipboard.
Clip2File is an advanced version of the program I already posted to the list
a while back. If there's demand for this, I'll put the latest version in
the archives right away rather than waiting until I finish all the features.
--------
I have a few questions for those of you who might know about such things:
EnumChildWindows(): Is this how one should gather WinText?
Can child windows also have children? If so, I would need to call it
recursively.
How can you tell which text elements are hidden? This may be moot because I
was considering not supporting DetectHiddenText since it seems like you
would always want this turned on anyway.
I welcome any feedback or suggestions. Also, please let me know if you're
interested in helping me test it.
Thanks,
Chris
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Looking for the latest Free IT White Papers?
Visit SearchMobileComputing.com to access over 500 white papers.
Get instant access at SearchMobileComputing.com Today
http://us.click.yahoo.com/ZyjvfD/PLNGAA/uitMAA/EGnolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
AutoItList-***@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
many of AutoIt's commands. To whet your appetite, here are some of the
features I have working already:
*any* key can be programmed as hotkey as long as it's not in use by another
program or Windows itself. Example: #w is windows-key held down followed by
W. Other examples: NumpadENTER, MEDIA_NEXT_TRACK (for keyboards with
extended buttons), etc.
The shift/ctrl/win/alt keys can optionally be distinguished between left and
right: Example: <#w is LWIN-W while >#w would be RWIN-W.
Internal support for both the RegisterHotkey() method and the keyboard hook
method, for the ultimate control over performance without giving up any
flexibility.
Supports scan codes and virtual keys so that any conceivable key on any
conceivable keyboard can be supported (hopefully).
Supports mouse button actions (e.g. click the middle button to launch a
program).
Supports ALT-TAB as a special action: you can finally create your own
substitutes for alt-tab, which in my case helps relieve sore fingers.
Here's what I use and it's amazing how much it helps:
RWIN & J = Alt-Tab
RWIN & L = WinClose (closes the foreground window, like Alt-F4)
Supports the Send command and SetKeyDelay.
You can create nonstandard modifying keys. Example:
Numlock & PGUP = notepad (hold down the numlock key then press PGUP to
execute)
You can force Numlock, Capslock, or Scrolllock to always be on or off.
The windowing "IF" commands support "ELSE" (it was a real bitch to get the
recursion right for this, so now I know why AutoIt doesn't support ELSE :)
Example:
NumpadAdd = IfWinActive, FotoCanvas, , Send, {+}, Else, IfWinActive, ACDSee,
, Send, {+}, Else, VolumeSetMax.aut
Here's another cool trick:
#c = Send, ^c, AND, Sleep, 100, AND, Clip2File.exe /text /sort
It allows you to hold down LWIN and then press "C" in Explorer to copy the
selected filenames, rather than the files themselves, onto the clipboard.
Clip2File is an advanced version of the program I already posted to the list
a while back. If there's demand for this, I'll put the latest version in
the archives right away rather than waiting until I finish all the features.
--------
I have a few questions for those of you who might know about such things:
EnumChildWindows(): Is this how one should gather WinText?
Can child windows also have children? If so, I would need to call it
recursively.
How can you tell which text elements are hidden? This may be moot because I
was considering not supporting DetectHiddenText since it seems like you
would always want this turned on anyway.
I welcome any feedback or suggestions. Also, please let me know if you're
interested in helping me test it.
Thanks,
Chris
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Looking for the latest Free IT White Papers?
Visit SearchMobileComputing.com to access over 500 white papers.
Get instant access at SearchMobileComputing.com Today
http://us.click.yahoo.com/ZyjvfD/PLNGAA/uitMAA/EGnolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
AutoItList-***@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/