Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 5 - Modders Workshop > Thread: Interface button for console command problem
Thread: Interface button for console command problem
spinkilla
spinkilla

Tavern Dweller
posted November 26, 2012 02:36 PM
Edited by spinkilla at 15:02, 26 Nov 2012.

Interface button for console command problem

Backgroud: I like to play homm5 far from screen without keyboard, only
with a wireless mouse. I make some keyboard tasks like splitting stacks, adv highlithing via binds to "mouse gestures".
Others like quicksave, kingdom overview, sleep/wake hero are done via new/replaced buttons on adventure screen.
I'm able to make onscreen button for every game message which is bindable  in input*.cfg, so the most needed key shortcuts are now clickable for me.

Unfortunately there is one problem. I need button for toggle_fullscreen (not simple switch via alt+tab or winkey becase of game behavior after comeback to fullscreen. Playin on 1 screen and watching video on second after switching via alt+tab is causing that one side of game screen isn't traping mouse anymore ) and this game message isn't working in Quantomas homm5.5 (enhanced AI)...
There is possibility to toggle fullscreen from console gfx_fullscreen 0/1 & gfx_update). Also similar way (via consoleCmd) it's possible to trigger that from lua map script. But I did't found a way to run it from UI level without usign console itself. Of course I can go into menu->options->video options ->checkbox fullscreen->accept but I'm tired of this method and need to do this in one click...

Question is: Does anybody know how to forward console command (setvar, gfx_update, etc. with parameters) to game without usign editline but clicking on button screen?
My experiments on UI\ConsoleCommand.(UIConsoleCommand).xdb are lack of success...
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0146 seconds