Collins Posted May 24, 2018 Share Posted May 24, 2018 I have created an app that runs at background when its closed.. I want it to launch back and appear when the user press combination of CTRL + ALT + O ( or any specified by user).. Hope i get help soon. Thank you Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted May 24, 2018 Moderators Share Posted May 24, 2018 So post your code, we can't help without it. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Collins Posted May 24, 2018 Author Share Posted May 24, 2018 What i mean is. Is it possible to make my application running at background pop up when CTRL + ALT + O key is pressed Link to comment Share on other sites More sharing options...
seandisanti Posted May 25, 2018 Share Posted May 25, 2018 Check out HotKeySet() Link to comment Share on other sites More sharing options...
Collins Posted May 25, 2018 Author Share Posted May 25, 2018 3 minutes ago, seandisanti said: Check out HotKeySet() sure i will and get back if i need help.. Link to comment Share on other sites More sharing options...
Zedna Posted May 25, 2018 Share Posted May 25, 2018 Look at GUISetAccelerators(), it's exactly what you need. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
jdelaney Posted May 25, 2018 Share Posted May 25, 2018 (edited) Not a scripted solution, but windows already let's you do that...right click...shortcut key. I set a key for all my used apps and rapid fire open them Edited May 25, 2018 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
seandisanti Posted May 25, 2018 Share Posted May 25, 2018 10 hours ago, Zedna said: Look at GUISetAccelerators(), it's exactly what you need. If the application is backgrounded, Accelerator wouldn't work would it? Link to comment Share on other sites More sharing options...
Zedna Posted May 25, 2018 Share Posted May 25, 2018 2 hours ago, seandisanti said: If the application is backgrounded, Accelerator wouldn't work would it? Sorry - my mistake. You are right. Accelerators work only when application is active. So right answer is really HotkeySet() as suggested above by someone ... Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Alex1986 Posted May 25, 2018 Share Posted May 25, 2018 (edited) Is this you want? #include <Misc.au3> HotKeySet("{ESC}" , "_close") While 1 if _IsPressed("11") And _IsPressed("12") And _IsPressed("4F") Then MsgBox(0,0,"You Are Pressed CTRL + ALT + O") EndIf Wend Func _close() Exit EndFunc Edited May 25, 2018 by Alex1986 Collins 1 Link to comment Share on other sites More sharing options...
czardas Posted May 26, 2018 Share Posted May 26, 2018 (edited) Hotstrings topic in example scripts might also be worth a look at. Edited May 26, 2018 by czardas Collins 1 operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
Collins Posted May 26, 2018 Author Share Posted May 26, 2018 Thank you guys. I have been able to work it out with your help.,. I really appreciate that .. 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