This repository has been archived by the owner on Oct 11, 2023. It is now read-only.
Inputsimulator, sendkeys, sendwait, windows api #440
DavidWishengrad
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I kust wanted to share with you all that sending commands intonaitocaf can be done in this fashion. The main issue is the interruption of the sending of the keys by the end user while in progress.
I have done some tests and found that setforeground application can be executed 100,000 times and there appears to be no noticeable delay, meaning it can be used before each and every key. By playing with it in debug you can add delays where needed and none at all when not, so that if an end user clicks away it is returned back to the desired app so fast that there is no issue there. Additionally, inputsimulator will do the same job as sendkeys sending keys in less than half the time.
Also note that it appears to me that many procedures where we would write code to automate acad directly through their own api can actually be handled much faster with writing a script on the fly and using inputsimulator to tell acad to run the script. The scripts I have dynamically created on the fly run lightning fast.
Beta Was this translation helpful? Give feedback.
All reactions