alexesn Posted August 18, 2020 Share Posted August 18, 2020 Hi guys, i'm trying to make an exe to replace my FN key, so when i'm in Photoshop to save rapidly my file. source of info: https://gist.github.com/sk22/770960609386251989e14aee8b7877ce My combination of keys is: alt + shift + control + s I figure out this code, yet it doesn't do anything: Send("{ALT+LSHIFT+LCTRL+S}") Can someone help me? Should it be only on the active window? Link to comment Share on other sites More sharing options...
Marc Posted August 18, 2020 Share Posted August 18, 2020 Try Send("^!+s") The keys are always sent to the current window. In doubt, it's good to check if the active window is really Photoshop. alexesn 1 Any of my own codes posted on the forum are free for use by others without any restriction of any kind. (WTFPL) Link to comment Share on other sites More sharing options...
alexesn Posted August 18, 2020 Author Share Posted August 18, 2020 It works! Thanks you Marc, you rock! I am receiving some weird behaviour after pressing the key (like double click on 'my computer' opens Settings, same as you hold the 'alt' key and double-click, so the alt key remains pressed all the time), might as well be from messing with the 'PC Manager' from Huawei, since the f10 key is locked from bios to open the shortcut of the program, and i was simply replacing the the .exe file. Maybe is a way to clear the alt-pressed all the time behaviour. Link to comment Share on other sites More sharing options...
Marc Posted August 19, 2020 Share Posted August 19, 2020 AutoIt does not keep any keys pressed, except you tell it to do so. As the help says: Send("{a down}") ;Holds the A key down Send("{a up}") ;Releases the A key Using that with "!" instead of "a" would cause the alt-key to keep pressed. Unless you did something like this in your code, I'd do some serious fingerpointing at your "PC Manager" Any of my own codes posted on the forum are free for use by others without any restriction of any kind. (WTFPL) Link to comment Share on other sites More sharing options...
alexesn Posted August 22, 2020 Author Share Posted August 22, 2020 my best guess is same as yours, something about PC Manager make this behavior, will test it further 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