Zend9x Posted February 25, 2017 Posted February 25, 2017 Hi. I want send key to inactive window ( browser...) ( Controlsend not work with browser, just work with Notepad) _WinAPI_PostMessage($whandle, 0x100, $hexCode, 0) ;keydown This Just only send one key. But i want send upcase A ( shift key with a key) or Ctrl + O.... How i can do it? Thank you!
genius257 Posted February 25, 2017 Posted February 25, 2017 (edited) Hi @Zend9x this works for me _WinAPI_PostMessage($whandle, 0x102, Asc("A"), 0) Edit: Looking into the CTRL+O thing Edited February 26, 2017 by genius257 To show your appreciation My highlighted topics: AutoIt Package Manager, AutoItObject Pure AutoIt, AutoIt extension for Visual Studio Code Github: AutoIt HTTP Server, AutoIt HTML Parser
junkew Posted February 28, 2017 Posted February 28, 2017 Most likely you have to use sendinput function of win32 api FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
junkew Posted February 28, 2017 Posted February 28, 2017 http://stackoverflow.com/questions/13200362/how-to-send-ctrl-shift-alt-key-combinations-to-an-application-window-via-sen FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now