topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Monday September 21, 2020, 11:51 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: N.A.N.Y. 2021: SendKeys32 by KodeZwerg  (Read 306 times)

KodeZwerg

  • Honorary Member
  • Joined in 2018
  • **
  • Posts: 488
    • View Profile
    • Donate to Member
N.A.N.Y. 2021: SendKeys32 by KodeZwerg
« on: September 14, 2020, 01:37 AM »
SendKeys32 (c) by KodeZwerg


Version: 0.0.1.10
Version: N.A.N.Y. Edition


Q: Whats the point?
A: This application may be used to Send Keys x times to other applications.


Details:
Base Idea and Initiator: Contro (requested to send CTRL-Z x times)
Translation of that idea into programming code: KodeZwerg
It uses alot of Windows Api code to do its job.
Due the kind of what it is and does, it may be listed as virus/trojan.
(c) Delphi wrappers from Waldemar Derr are used.


Limitations:
All customizable Keys are limited to Windows Api Virtual Keys.
If you need more keys, i should get scancode information.
Windows default fontsize will by used.


Known Bugs:
auto refresh sometimes dont let you scroll correctly within listview.
since you can not send directly keys to any application in a unique way,
I do utilize SendInput().
SendInput() does write my stuff into keyboard driver like you would type them.
Due to that, if my application try to send keys, and some other application
gets into foreground at this moment, my input will be received by that window
and not the window that you have selected.
Some programs work slowly, if you encounter such take advantage of configuration
and increase the "Time in milliseconds between Send Keys" value.
Feel free to find a good working value for your system, 100-200 should be fair.
You should not go lower than 25 ms anyway it is unlocked down to 1 ms.
My application can not be controlled just by keyboard.


feature History, oldest to newest:
added a listview as a selection box
added EnumWindow() to fill listview
added icons for listview
added SendInput() button to send static keys
added loop posibility
redesigned everything for a nany release
stripped down listview to hold only window captions
exported further information into own fields
switched to Delphi wrappers (c) by Waldemar Derr
added auto refresh
added customizable filters with my defaults
added full customizable "Send ShortCut" editor
added full customizable "HotKey" editor
added "only one instance can be run" due HotKey feature
added some hotkey actions
added configuraton page
added customizable delay between Send Keys
added window always on top on/off
added about page


Enjoy another working application by KodeZwerg.


Some Pictures of new GUI
Main Interface:
01_SendKeys_Interface.pngN.A.N.Y. 2021: SendKeys32 by KodeZwerg
Filter:
02_SendKeys_Filter.pngN.A.N.Y. 2021: SendKeys32 by KodeZwerg
HotKey:
03_SendKeys_HotKey.pngN.A.N.Y. 2021: SendKeys32 by KodeZwerg
Configuration:
04_SendKeys_Config.pngN.A.N.Y. 2021: SendKeys32 by KodeZwerg


Next Version GUI:
05_SendKeys_Planned.pngN.A.N.Y. 2021: SendKeys32 by KodeZwerg
sorry bad english and Delphi are my hobby ;)
politeness is not one of my strengths in writing, just because it sounds rough doesn't mean that I mean it rough.
« Last Edit: September 16, 2020, 01:40 AM by KodeZwerg »

KodeZwerg

  • Honorary Member
  • Joined in 2018
  • **
  • Posts: 488
    • View Profile
    • Donate to Member
Re: N.A.N.Y. 2021: SendKeys32 by KodeZwerg
« Reply #1 on: September 14, 2020, 03:34 AM »
Short description for Contro as example "how-to"

1. Run SendKeys32.exe
2. select target via listed window captions
3. as a control you can look handle/pid/classname/filename
4. Execute ShortCuts Editor: check "activate CONTROL key"
5. Execute ShortCuts Editor: select "VK_Z" under "Key" segment
6. Execute ShortCuts Editor: set # of repeats
7. Execute ShortCuts Editor: press "Send ShortCut"

This would be a possible way to send x times CONTROL+Z to target.
For redo just also check "activate SHIFT key"

Enjoy.
sorry bad english and Delphi are my hobby ;)
politeness is not one of my strengths in writing, just because it sounds rough doesn't mean that I mean it rough.

KodeZwerg

  • Honorary Member
  • Joined in 2018
  • **
  • Posts: 488
    • View Profile
    • Donate to Member
Re: N.A.N.Y. 2021: SendKeys32 by KodeZwerg
« Reply #2 on: September 15, 2020, 01:18 AM »
Updated version in Post #1 available

changes since v0.0.1.7
+redesigned Execute Shortcuts Editor
+Increased Repeater up to 9999
+renamed HotKey actions
+activated "Send ShortCut to focused Window" HotKey action
+added "Setup VK_CUSTOM" on configuration page
+included VK_CUSTOM into "Select Virtual Key" box
+refactored alot of code
+fixed a color bug
+fixed repeat counter bug
+slightly extended about page content
sorry bad english and Delphi are my hobby ;)
politeness is not one of my strengths in writing, just because it sounds rough doesn't mean that I mean it rough.

KodeZwerg

  • Honorary Member
  • Joined in 2018
  • **
  • Posts: 488
    • View Profile
    • Donate to Member
Re: N.A.N.Y. 2021: SendKeys32 by KodeZwerg
« Reply #3 on: September 16, 2020, 02:06 AM »
changes since v0.0.1.9
+forgot to readjust edit fields max chars limit for repeating. internal up to 9999, field was limited to two chars, arffff.
sorry bad english and Delphi are my hobby ;)
politeness is not one of my strengths in writing, just because it sounds rough doesn't mean that I mean it rough.

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,451
    • View Profile
    • Donate to Member
Re: N.A.N.Y. 2021: SendKeys32 by KodeZwerg
« Reply #4 on: September 19, 2020, 10:36 AM »
Running to try
 :-* :P

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,451
    • View Profile
    • Donate to Member
Re: N.A.N.Y. 2021: SendKeys32 by KodeZwerg
« Reply #5 on: September 19, 2020, 10:57 AM »
Short description for Contro as example "how-to"

1. Run SendKeys32.exe
2. select target via listed window captions
3. as a control you can look handle/pid/classname/filename
4. Execute ShortCuts Editor: check "activate CONTROL key"
5. Execute ShortCuts Editor: select "VK_Z" under "Key" segment
6. Execute ShortCuts Editor: set # of repeats
7. Execute ShortCuts Editor: press "Send ShortCut"

This would be a possible way to send x times CONTROL+Z to target.
For redo just also check "activate SHIFT key"

Enjoy.
select a target
if target is not listed, play with target filter tab.
2. modify "Execute ShortCuts" to your needs.
3. setup # of loops
4. press "Send ShortCut" to begin action
5. you can optional visit "HotKey" tab.
to reduce possible errors I have limited the vk for hotkey
0-1, a-z, f1-f24 are possible key combo's.
full set can be optional activated.

Sure is easy.
Can you put an example ?

KodeZwerg sure is easy for a programmer, but I think you may have in count difficult users like me.

Edited : for new users may be not clear the codes. I have doubts with these windows. I don't really understand what is all about.

In the last window setup vk_custom what is the value ? In other field is a true field with the X option, but this...

AsusPortatil - 19_09_2020 , 16_56_12.pngN.A.N.Y. 2021: SendKeys32 by KodeZwerg
AsusPortatil - 19_09_2020 , 16_56_49.pngN.A.N.Y. 2021: SendKeys32 by KodeZwerg
AsusPortatil - 19_09_2020 , 16_57_15.pngN.A.N.Y. 2021: SendKeys32 by KodeZwerg

KodeZwerg

  • Honorary Member
  • Joined in 2018
  • **
  • Posts: 488
    • View Profile
    • Donate to Member
Re: N.A.N.Y. 2021: SendKeys32 by KodeZwerg
« Reply #6 on: Today at 01:46 AM »
@contro

while I began to code the "to one key command" limited version, you and other wanted a full configurable version.
my application is based on windows api methods and their common constant names for everything.

VK_  = Virtual Key followed by identifier, like VK_A = "a" or VK_1 = "1"
since those are limited, I extended it with a VK_CUSTOM identifier.
on configuration tab there you can set the VK_CUSTOM value by entering the empty field and press a typeable key.
a typeable key is a key that when it is pressed it show a character, like "a" or "1" but not "F01" or "Home" etc.

Easy example how to use this application:
1. Run "SendKeys32.exe"
2. press "HotKey" and set it up, examplary "check ALT" and select "VK_1" from dropdown box and press "Apply"
    activate "Send to focused window" on that page.
3. press "Send Key" tab and within Send ShortCut Editor check "Activate SHIFT" and select "VK_A"

when you now press "ALT+1", whatever window got focus will receive an "A" letter.

if you do not know whats happening on "Filter" Tab, either ignore it or google "WM_Identifier" to learn what is what.
in most cases and a bit fantasy you can guess what is what. WM_VISIBLE might have something to do with visibility state of a window and so on...
sorry bad english and Delphi are my hobby ;)
politeness is not one of my strengths in writing, just because it sounds rough doesn't mean that I mean it rough.

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,451
    • View Profile
    • Donate to Member
Re: N.A.N.Y. 2021: SendKeys32 by KodeZwerg
« Reply #7 on: Today at 07:10 AM »
@contro

while I began to code the "to one key command" limited version, you and other wanted a full configurable version.
my application is based on windows api methods and their common constant names for everything.

VK_  = Virtual Key followed by identifier, like VK_A = "a" or VK_1 = "1"
since those are limited, I extended it with a VK_CUSTOM identifier.
on configuration tab there you can set the VK_CUSTOM value by entering the empty field and press a typeable key.
a typeable key is a key that when it is pressed it show a character, like "a" or "1" but not "F01" or "Home" etc.

Easy example how to use this application:
1. Run "SendKeys32.exe"
2. press "HotKey" and set it up, examplary "check ALT" and select "VK_1" from dropdown box and press "Apply"
    activate "Send to focused window" on that page.
3. press "Send Key" tab and within Send ShortCut Editor check "Activate SHIFT" and select "VK_A"

when you now press "ALT+1", whatever window got focus will receive an "A" letter.

if you do not know whats happening on "Filter" Tab, either ignore it or google "WM_Identifier" to learn what is what.
in most cases and a bit fantasy you can guess what is what. WM_VISIBLE might have something to do with visibility state of a window and so on...

-KodeZwerg (Today at 01:46 AM)
Wonderful indeed !!!!!

Recently i have a broken tooth and have to wait. But I will comment !!!!

Best Regards
 :-* :P