Sign in to follow this  
Followers 0
martin

Ctrl Esc combination for ControlSend

4 posts in this topic

I can't see how to simulate the Windows Key. If I type (on the keyboard) Ctrl Esc it works, but ControlSend( '^{ESC}' ) doesn't.

What should I be doing?


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites



Read the help file just a little better

its

Send( '^{ESC}' )

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Read the help file just a little better

its

Send( '^{ESC}' )

8)

Yes, what I meant was

ControlSend($SomeWindow,'','','^{ESC}') doesn't work.

but you're right anyway, Send does what I want but ControlSend doesn't.

Thanks Valuator.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

ControlSend() requires a control ID. You can default the Win title and text with "", but the default ControlID (last used) is -1. So that would be:

ControlSend($SomeWindow,'',-1,"^{ESC}")

That will still not pop the Windows Key menu, of course, since you are sending that key combo to a particular control, vice the desktop.

:shocked:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0