Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Send("{F12}") not working

$
0
0

Hi There Memebers

Very grateful for any troubleshooting tips.

I have a situation where Send("{F12}") does not work from within a script.

The context is with an open Word, Excel or other program for which F12 brings up the "Save As" DB.

Manually entering F12 from one of these programs duly brings up the Save As DB.

But sending F12 from within the script seems to do nothing.

 

If after invoking the script I then press F12 manually from the keyboard the script moves on to invoke the next line of conde which is WinWaitActive("Save As").

The script then goes on to save the file as the new filename in the way intended.

So I know that the script is hanging waitng for the "Save As" DB which never appears.

The script used to work not sure what has changed.

 

I realise this could have many different possible causes.

It is troubleshooting ideas I am hoping for here.

 

I have tested other send key items in place of my F12 including these and they work as expected:

Send("{ENTER}")

or this sequence brings up Help:

Send("Sleep 500 then F5 then sleep 500 then exit") Sleep(500) Send("{F1}") Sleep(500) Exit

Many thnks for any rpelies whatsoever....


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>