czmaster Posted December 27, 2014 Share Posted December 27, 2014 Hello, When I use a specific hotkey (with HotKeySet) I want to send a specific text in the active windows. Example : HotKeySet("^+e","ex") func ex() ControlSend("","","","ex") EndFunc I don't just use Send because If I send a letter while pressing CTRL (used in my hotkey) it will not work, so i used ControlSend This code works very well in all programs except FirefoxDo you know why ? Thank you Link to comment Share on other sites More sharing options...
junkew Posted December 27, 2014 Share Posted December 27, 2014 (edited) most likely you mean you are in an html page and as such it will not recognize the control to activate first suggestion to use send but before put a sleep 500 or something like that so you have a short moment to release your ctrl key other suggestion can be to check first if ctrl key is down before sending input with GetAsyncKeyState Edited December 27, 2014 by junkew FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
czmaster Posted December 29, 2014 Author Share Posted December 29, 2014 Thank you for the answerSince I tried to change the hotkey with F10 (for example) and it works in firefoxSo the problem is that Firefox does not appreciate when it use the ALT or CTRL hotkeys with ControlSendAgainst Send works well with , but it does not work in other software like Ms Word I will investigate this case Link to comment Share on other sites More sharing options...
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