irswat Posted January 22, 2017 Share Posted January 22, 2017 elseif curCMDFromList=="Map" int MapKey = Input.GetMappedKey("Quick Map") Input.HoldKey(MapKey) utility.wait(0.01) Input.ReleaseKey(MapKey) elseif curCMDFromList=="Save" int SaveKey = Input.GetMappedKey("Quicksave") Input.HoldKey(SaveKey) utility.wait(0.01) Input.ReleaseKey(SaveKey) ;debug.trace("save") elseif curCMDFromList=="Exit" || curCMDFromList=="Quit" Debug.QuitGame() elseif curCMDFromList=="Sheath" int SheathKey = Input.GetMappedKey("Ready Weapon") Input.HoldKey(SheathKey) utility.wait(0.01) Input.ReleaseKey(SheathKey) elseif curCMDFromList=="Run" int RunKey = Input.GetMappedKey("Toggle Always Run") Input.HoldKey(RunKey) utility.wait(0.01) Input.ReleaseKey(RunKey) endif Map works, none of the other commands work. Even exit doesn't work. Link to comment Share on other sites More sharing options...
IsharaMeradin Posted January 22, 2017 Share Posted January 22, 2017 You may want to use TapKey instead of HoldKey. Link to comment Share on other sites More sharing options...
irswat Posted January 23, 2017 Author Share Posted January 23, 2017 It's weird because I use hold key in the shout command function, to execute a shout, and it works perfect. Map works, but it's being iffy. I'll try tapkey. Link to comment Share on other sites More sharing options...
IsharaMeradin Posted January 23, 2017 Share Posted January 23, 2017 If I were you, I'd consider following this simple idea: HoldKey for key presses that require duration.TapKey for key presses that do not require duration. Link to comment Share on other sites More sharing options...
irswat Posted January 23, 2017 Author Share Posted January 23, 2017 (edited) Neither seem to work, but I think the problem might be elsewhere after reviewing my logs. thanks Ishara. the conditional statements are detecting correctly, but there is left over data from previous loops or something Edited January 23, 2017 by irswat Link to comment Share on other sites More sharing options...
Recommended Posts