heXDev Posted May 6, 2018 Posted May 6, 2018 Hello again. I need help adding a new keyboard shortcut for opening the Character Detail Window, for example, because if I add a new shortcut and in its action field I put ShowWindow Name=WINDOWNAME nothing happens. What should I put into the new shortcut action? Thanks for reading!
adr.bot Posted May 7, 2018 Posted May 7, 2018 seems its interface, well u can add there ur custom "shortcut", like "OpenMyWindow", and in shortcut.uc > function HandleShortcutCommand( String a_Param ) { local String Command; if( ParseString( a_Param, "Command", Command ) ) { switch( Command ) { case "OpenMyWindow": if ( IsShowWindow("WhatEverWindow") ) { HideWindow(WhatEverWindow); } else { ShowWindow(WhatEverWindow); } break; } } atleast like this for interlude, gl! 1
heXDev Posted May 8, 2018 Author Posted May 8, 2018 16 hours ago, adr.bot said: seems its interface, well u can add there ur custom "shortcut", like "OpenMyWindow", and in shortcut.uc > function HandleShortcutCommand( String a_Param ) { local String Command; if( ParseString( a_Param, "Command", Command ) ) { switch( Command ) { case "OpenMyWindow": if ( IsShowWindow("WhatEverWindow") ) { HideWindow(WhatEverWindow); } else { ShowWindow(WhatEverWindow); } break; } } atleast like this for interlude, gl! Thanks for replying! I really appreciate it. I didnt know you could add a function to be handled here by shortcuts. Thanks a lot!
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