SendKeys.Send - application is not handling Windows messages

236 views
Skip to first unread message

alesho...@gmail.com

unread,
Aug 25, 2021, 6:33:36 AM8/25/21
to Migrated By Firefly
Hi,

I have outside application I wrote and is called from textbox KeyDown event. I need to send a key to application that was pressed on keyboard and I use SendKeys.Send() method. Application is tested and works fine, but when I call it from migrated application I got error:

SendKeys cannot run inside this application because the application is not handling Windows messages. Either change the application to handle messages, or use the SendKeys.SendWait method.

Any Idea how to set application to handle WindowsMesseges or any other way to send Key to my other application?

Noam Honig

unread,
Aug 25, 2021, 6:35:11 AM8/25/21
to alesho...@gmail.com, Migrated By Firefly
I'm not aware of this limitation.

Please create a small stand alone reproduction and place it on the migration ftp folder, we'll have a look
Noam Honig  
Founder & CEO


--
You received this message because you are subscribed to the Google Groups "Migrated By Firefly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to migrated-by-fir...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/migrated-by-firefly/de7a5717-4b0c-4b67-ac40-302fbac46491n%40googlegroups.com.

alesho...@gmail.com

unread,
Aug 25, 2021, 9:12:15 AM8/25/21
to Migrated By Firefly
I think there might be an difference based on migrated version. I have uploaded my tests to FTP, there you will find application with dll, simple form with texteditor that takes the key that was send with SendKey.Send().

With this is also RunApp thet runs another form and test if it is working, works fine.

Then I have taken latest version or Northwind (Gilad send me few days ago) made simple UIController and it worked FINE!!!

but on older version of Northwind (also included) I got same error as in our application. 

Please check if you have any idea what if there is a simple few lines of code or do I need to upgrade whole ENV?

Thank you, 

alesho...@gmail.com

unread,
May 12, 2022, 3:03:53 AM5/12/22
to Migrated By Firefly
Hi,

We have upgraded ENV and firefly.Box to latest version, set application to run on .NET Framework 4.8 and this message appears again.

Is there anything we need to change in firefly.Box or ENV for this to work?

Thank you.

Noam Honig

unread,
May 12, 2022, 7:28:35 AM5/12/22
to alesho...@gmail.com, Migrated By Firefly
Hi Alex,

Note - we do not recommend upgrading to the latest Firefly and ENV - without thorough testing of the application as issues may arise and it's usually not worth it.

Back in August, Gilad sent you a suggested fix for this issue, to apply to your version of firefly. Did you try and apply it? did it work? (we've tested it with the example you've provided and it worked)

Can you please retest the example you've sent with the fix Gilad suggested and let us know.

If you want, you are welcome to create a new standalone example (Northwind or similar) and send us - we'll take a look.

Best

Noam Honig  
Founder & CEO

Noam Honig

unread,
May 12, 2022, 8:01:56 AM5/12/22
to Ales Horvat, Migrated By Firefly
Hi Ales,

We provided a separate fix for the windows 11 combobox issue, you may want to simply apply that instead of taking a new version.

As for the send key issues, do I need a new reproduction from you or the old example with new env and firefly will reproduce this?

Let me know
Noam Honig  
Founder & CEO


On Thu, May 12, 2022 at 2:46 PM Ales Horvat <alesho...@gmail.com> wrote:
Yes, we were testing new version and in this latest version the same error with SendKeys. We upgraded because of windows 11 Combobox issue.

We changed back to the old ENV and Firefly.Box and it is working.

Last time it was only needed to upgrade ENV and the problem was fixed in that version, no changes were needed from our side. 

Ales Horvat

unread,
May 13, 2022, 4:28:37 AM5/13/22
to Noam Honig, Migrated By Firefly
Yes, we were testing new version and in this latest version the same error with SendKeys. We upgraded because of windows 11 Combobox issue.

We changed back to the old ENV and Firefly.Box and it is working.

Last time it was only needed to upgrade ENV and the problem was fixed in that version, no changes were needed from our side. 


On Thu, May 12, 2022 at 1:28 PM Noam Honig <no...@fireflymigration.com> wrote:

alesho...@gmail.com

unread,
May 13, 2022, 6:27:11 AM5/13/22
to Migrated By Firefly
I think ald reproduction should work, I tried to migrate ENV but a lot of errors appeared and I could not Build that solution with new ENV.

Noam Honig

unread,
May 13, 2022, 6:35:21 AM5/13/22
to alesho...@gmail.com, Migrated By Firefly
Please create a sample of the issue online the version you want us to look at and fix. 
Upload it to the ftp and we’ll look at it based on availability 

--
Reply all
Reply to author
Forward
0 new messages