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! Quote
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 Quote
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! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.