topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Sunday December 8, 2024, 4:00 pm
  • 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

Last post Author Topic: ControlZ x times  (Read 20519 times)

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,629
    • View Profile
    • Donate to Member
Re: ControlZ x times
« Reply #25 on: September 10, 2020, 01:06 PM »
Do you mean the keys to send should be configurable or that my program has a configurable hotkey?
Yes and yes.

KodeZwerg

  • Honorary Member
  • Joined in 2018
  • **
  • Posts: 718
    • View Profile
    • Donate to Member
Re: ControlZ x times
« Reply #26 on: September 11, 2020, 01:16 AM »
Do you mean the keys to send should be configurable or that my program has a configurable hotkey?
Yes and yes.
Ouch and Okay.... a micro bit too late for todays release what might be last release.
Configurable Keys that can be send I will integrate if that what I today present is useable at all.
My own application and Hotkey there might be a chance that I integrate such aswell even if for myself I consider it very dangerous.
(pressing hotkey while wrong process is/was selected might end bad...)






SendKeys (c) KodeZwerg

Version: 0.0.0.1
Version: Contro-Edition
Version: working Alpha

Q: Whats the point?
A: This application will send keys to any third-party target application.

Manual:
1. Start application. Try 32 or 64 bit to find your target.
2. Choose by Icon or Executable or Title a target process.
3. Adjust loops.
4. Push "Send CTRL-Z to selected" if you think you know what you are doing.

Personal Comments:
I do not know if I am able to continue this project.
Because of that you get what I have done so far.
Why I might step-back from this project:
To track 32 and 64 bit processes within one build is for me ATM not possible.
I would need to invest time to that matter, what I currently can not spend.
Filter out more "unwanted" results needs also more research.

Warning:
I do not much error checking in that programming state (alpha),
during that stage I do push up code to do what I want.
Due to that,
if you have selected a wrong Item it might result in strange Windows behavior!!!
If I did not told you that,
if you have selected a wrong Item it might result in strange Windows behavior!!!
That said, if you select correct Item and press button all should work flawless.
Anyway, do not blame me for errors.

Limitations:
for now the only keys that will be send are "CONTROL + Z".
my application does not have it's own hotkey by now, so don't search.
32 bit build works for 32 bit applications,
64 bit build works for 64 bit applications.
loop range is from 1 up to 99.
listview does not autoupdate itself, you must re-run my application.

How it works:
1. Gather all Window-Handles together
2. Filter out alot of unwanted entries
3. collect more info for remaining entries
4. fill results in a listview
5. wait for user to select something
6. wait for user to press button
7. execute my sendkey method
7-1. bring target process window to foreground
7-2. send keys to whatever window is in foreground
7-3. jump to 7-1 until loop ends
8. done.


//edit
ps: for now it is still overloaded with too much results, thats why I also added "Title" "Handle" and "PID" so you may determine the correct process.

Here you see 64 bit in action where I have choosen Notepad as my target.
Screenshot - 11_09.png
« Last Edit: September 11, 2020, 03:19 AM by KodeZwerg »

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: ControlZ x times
« Reply #27 on: September 11, 2020, 08:02 AM »
I'll take a good look with time and comment !
Best Regards

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: ControlZ x times
« Reply #28 on: September 11, 2020, 02:12 PM »
Trying
AsusPortatil - 11_09_2020 , 19_39_24.pngControlZ x timesAsusPortatil - 11_09_2020 , 19_43_50.pngControlZ x times

I don't understand what I have to do with this screen. So I will try anyway.

it works it works !!!!1  :-* :P
But I need something else
AsusPortatil - 11_09_2020 , 19_47_27.pngControlZ x times

Initially I thought only act in the active tab or in the indicated by the path in SendKeys window. But I can select in SendKeys any tab, and apply in the final tab selected. So the real tab is the selected tab in the case of pspad. And this is good for me...
Why the limit is 99 keystrokes ?

 :tellme:

KodeZwerg

  • Honorary Member
  • Joined in 2018
  • **
  • Posts: 718
    • View Profile
    • Donate to Member
Re: ControlZ x times
« Reply #29 on: September 14, 2020, 02:18 AM »
Why the limit is 99 keystrokes ?
Since I've thought 99 would be okay as a maximal value.
If I need to undo more that 99 times I have done something wrong was my thought.
In my newest edition "SendKeys32" there is also that limit but you have a hotkey to invoke "Send again".
You find SendKeys32 inside N.A.N.Y. 2021 forum.

In that edition it is also alot easier finding correct target, I've heavily used filters  :-*

Enjoy  :Thmbsup:

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: ControlZ x times
« Reply #30 on: September 15, 2020, 07:39 AM »
Why the limit is 99 keystrokes ?
Since I've thought 99 would be okay as a maximal value.
If I need to undo more that 99 times I have done something wrong was my thought.
In my newest edition "SendKeys32" there is also that limit but you have a hotkey to invoke "Send again".
You find SendKeys32 inside N.A.N.Y. 2021 forum.

In that edition it is also alot easier finding correct target, I've heavily used filters  :-*

Enjoy  :Thmbsup:
I don't argue with at the present time one of the few good programmers adding apps in the nany .....

Best Regards
I will read all you program.
 :-* :P