Close
Page 1 of 2 1 2 LastLast
Showing results 1 to 10 of 14
  1. #1

    Default Requested Feature

    I just discovered that HKN can fill a role for even single-client use that lotro has so far not bothered to provide: flavor emotes.

    When I play WoW I like to add a little text script to certain actions for flavor, but if the action is used a lot you need a random function to reduce the frequency of the emote. This would be a nice feature for HKN so that I can do it in other games as well.

  2. #2
    Multiboxologist MiRai's Avatar
    Join Date
    Apr 2009
    Location
    Winter Is Coming
    Posts
    6815

    Default

    While I'm not saying you are wrong to put in a request for HKN features, I will say that it's likely to go unfilled. HKN has (had) its own forum for things such as this, but Freddie has stopped supporting HKN and therefore, most likely, won't be adding anything new.

    However, I don't use HKN and what you're actually asking might be able to be accomplished w/o the need for a new feature. There are a few HKN gurus that wander these forums so, you might just have to be patient and see if they reply.

  3. #3

    Default

    Quote Originally Posted by Vreejack View Post
    I just discovered that HKN can fill a role for even single-client use that lotro has so far not bothered to provide: flavor emotes.

    When I play WoW I like to add a little text script to certain actions for flavor, but if the action is used a lot you need a random function to reduce the frequency of the emote. This would be a nice feature for HKN so that I can do it in other games as well.
    You can make a hotkey with a key combo you would never press by accident, within that hotkey, place several toggles, and one of them has your emote code. Then on the hotkey to want to physically press, call the toggle key with dorandomtoggle.
    Code:
    <hotkey 4>
    //do stuff
    <dorandomtoggle hotkey lshift rshift q>
    <hotkey lshift rshift q>
    <toggle>
    <toggle>
    <toggle>
    //emote stuff
    You can use more or less blank toggles to adjust frequency. It will be random working several times in a row, and then not for a while type of thing, if you want a fixed rate, use dohotkey instead of dorandomtoggle.

  4. #4

    Default

    As Bettysue says, what you want can already be done with DoRandomToggle and the Text command.

    Code:
    <Hotkey 2>
    	<Toggle>
    		<SendLabel w1>
    			<Key 2>
    	<Toggle>
    		<SendLabel w1>
    			<Key 2>
    	<Toggle>
    		<SendLabel w1>
    			<Key 2>
    	<Toggle>
    		<SendLabel w1>
    			<Key 2>
    	<Toggle>
    		<SendLabel w1>
    			<Key 2>
    	<Toggle>
    		<SendLabel w1>
    			<DoRandomToggle Hotkey Oemax 1>
    
    
    <UseKeyAsModifier OemAX>
    
    <Hotkey Oemax 1>
       <Toggle>
    	<SendLabel w1>
    		<Text /em doom>
    		<Key 2>
       <Toggle>
    	<SendLabel w1>
    		<Text Duck and Cover!>
    		<Key 2>
       <Toggle>
    	<SendLabel w1>
    		<Text /em dance>
    		<Key 2>
       <Toggle>
    	<SendLabel w1>
    		<Text Mad dog! Kill it, Kill it!>
    		<Key 2>


    Starting at the top of the code, we create a hotkey for 2. You'll see I have repeated 2 several times as a toggle. You can do it without toggles in the main key, but you will get too many calls for a random emote and you'll end up spamming them. Using the toggle like this means that the random will only go off once in every 6 presses. You can add more toggle steps here to further reduce the frequency of emote calls.

    The second toggle calls DoRandomToggle, which as you see below that will call a random emote + key 2. If you wanted, you could also add "blanks" here by tacking in toggles for Key 2 or increase the frequency of certain emotes in relations to others by duplicating their toggle.
    Blog : Herding Khats
    Team : Kina - Çroaker - Messkit - Lìfetaker - Wìdowmaker
    Newbie Guides : Multiboxing Vol. 1 - Multiboxing Vol. 2 - HotKeyNet - Jamba
    The Almighty Lax made a liar out of me, apparently I DO get prizes for it.
    *Commences Wielding the Banhammer like there's piñatas up in here and I'm Lady Thor*

    _ Forum search letting you down? Use the custom Google search _

  5. #5

    Default

    well for crying out loud that was exactly what i was looking for, thanks

    Is there a system variable for current window so i can just feed keystrokes through if i am not focused on the game ?
    For example if i switch over to the editor i always forget to turn off HKN.

    otoh, if hkn is not suppotyed any more perhaps i should switch.
    Last edited by MiRai : 11-21-2012 at 05:45 PM Reason: Merged

  6. #6

    Default

    You can use If ActiveWinIs. I put it directly in my keylist

    Code:
    <Hotkey CapsLockOff MyList; CapsLockoff Shift MyList; CapsLockOff Alt MyList; CapsLockOff Ctrl MyList; CapsLockOff Ctrl Alt MyList; CapsLockOff Shift Ctrl MyList; CapsLockOff Shift Alt MyList>
    	<If ActiveWinIs WoW>
    	  	 <SendLabel w1, w2, w3, w4, w5>
       	<Key %Trigger%>
    		<Else>
    			<SendPC Local>
    		<TurnHotkeysOff>
    			<SendFocusWin>
    		<Key %Trigger%>
    This way if I am in my WoW1 window it broadcasts as normal. If I am in any other window {IM client, browser, other wow windows, notepad, etc.} it toggles off HotKeyNet broadcasting {just like pause} and then sends the key.

    Edit - I don't see a reason to switch. Just because Freddie isn't actively developing HKN doesn't mean the program is going to just up and die. He hasn't had to add anything to HKN in a few years and the only thing that has changed is he no longer has support forums. You'll get plenty of assistance here and he has no plans so far to stop allowing HotKeyNet to be used.
    Last edited by Khatovar : 11-21-2012 at 03:37 PM
    Blog : Herding Khats
    Team : Kina - Çroaker - Messkit - Lìfetaker - Wìdowmaker
    Newbie Guides : Multiboxing Vol. 1 - Multiboxing Vol. 2 - HotKeyNet - Jamba
    The Almighty Lax made a liar out of me, apparently I DO get prizes for it.
    *Commences Wielding the Banhammer like there's piñatas up in here and I'm Lady Thor*

    _ Forum search letting you down? Use the custom Google search _

  7. #7

    Default

    I've stopped providing user support (answering questions) but I still support HotkeyNet in terms of bug fixes. If anybody finds a new serious bug, I'll fix it. People can still PM me on the HotkeyNet forum, and I still read email sent to the address for reporting HotkeyNet bugs. But nobody has reported a new bug in years. The program is seven years old and back in its day, it had thousands of users. After a while, with an old program like this that had lots of users, practically all the bugs get found,

    Luckily, Khat and BettySue and others still give excellent user support for HotkeyNet. User support doesn't have to come from the programmer.
    Last edited by Freddie : 11-21-2012 at 05:40 PM
    �Author of HotkeyNet and Mojo

  8. #8

    Default

    All good news, thank you.

    I am still having a serious problem, however, in getting windows to focus properly. Is there a trick to this? For example, this simple hotkey:

    <hotkey a>
    <SendLabel w1>
    <Key a>
    <SendLabel w2>
    <Key F2>
    <Wait 50>
    <Key a>
    <restore>
    What almost always happens is that w2 never gets focus and instead the taskbar flashes a tab for w2 needing attention. Then all the keys which were supposed to go to w2 go to w1 instead. I tried inserting a delay after the first sendlabel but that did not help. The error I am actually getting is "1400 invalid window handle" Though previously I would often see the same problem with an error of "0 Completed successfully"

  9. #9

    Default

    What sendmode settings are you using? What script are you using? It sounds to me like you are trying to use SendWinM or something like that, it needs to be simply SendWin.
    Blog : Herding Khats
    Team : Kina - Çroaker - Messkit - Lìfetaker - Wìdowmaker
    Newbie Guides : Multiboxing Vol. 1 - Multiboxing Vol. 2 - HotKeyNet - Jamba
    The Almighty Lax made a liar out of me, apparently I DO get prizes for it.
    *Commences Wielding the Banhammer like there's piñatas up in here and I'm Lady Thor*

    _ Forum search letting you down? Use the custom Google search _

  10. #10

    Default

    No, it's SendWin. I have never used SendWinM. It usually works, but sometimes fails. Sometimes it fails many times in a row. Curiously, It tends to happen on the very first time I use a particular macro for a while after using other macros.
    For example, I have a hotkey to tell the partner to follow the leader. If I have not used it for a while then it has a high chance of failing the first time, which is not a big deal as it always works the second time.

    settings are:
    background focus delays 50/50
    modifier delays 50/50

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •