Close
Showing results 1 to 5 of 5

Thread: Easy chat

  1. #1

    Default Easy chat

    I want to share this little tidbit of code I added to my script today, that let's me chat ingame without having to pause hotkeys before or after chatting, and doesn't send any of the chat to my other windows.

    This works for 4 keys to start chat:

    Y (reply)
    shift + Y (re-reply)
    /
    Enter

    and these keys to stop chat:

    Enter
    NumpadEnter
    Esc

    This code also includes <If ActiveWinIs WoW> like the rest of my code, so keys work regularly if I'm browsing or doing something else with hotkeynet running. If you don't use that generally, you can remove the those lines.

    I use ScrollLockOn as my Do-Not-Pass key, so this code uses ScrollLockOff.
    I also had to change my Pause key (that used to be just <ToggleHotKeys>.

    Also, this won't work if you start your chat with the mouse (clicking a name in the chat log or rightclicking and clicking whisper).


    Code:
    <Hotkey Pause>
    	<If Chat is 1>
    		<SetVar Chat 0>
    		<TurnHotkeysOn>
    	<Else If HotkeysAreOn>
    		<SetVar Paused 1>
    		<ToggleHotKeys>
    	<Else If Paused is 1>
    		<SetVar Paused 0>
    		<ToggleHotKeys>
    	<Else>
    		<ToggleHotKeys>
    	<EndIf>
    
    <Hotkey ScrollLockOff Oem2; ScrollLockOff Y; ScrollLockOff Shift Y>
    	<If ActiveWinIsNot WoW>
    		<SendLabel Fcs>
    			<Key %Trigger%>
    	<Else If Paused is 1>
    		<SendLabel Fcs>
    			<Key %Trigger%>
    	<Else>
    		<SendLabel Fcs>
    			<Key %Trigger%>
    		<SetVar Chat 1>
    		<TurnHotkeysOff>
    	<EndIf>
    
    <Hotkey ScrollLockOff Enter; ScrollLockOff NumpadEnter>
    	<If ActiveWinIsNot WoW>
    		<SendLabel Fcs>
    			<Key %Trigger%>
    	<Else If Paused is 1>
    		<SendLabel Fcs>
    			<Key %Trigger%>		
    	<Else If Chat is 1>
    		<SetVar Chat 0>
    		<SendLabel Fcs>
    			<Key %Trigger%>
    		<TurnHotkeysOn>
    	<Else>
    		<SetVar Chat 1>
    		<SendLabel Fcs>
    			<Key %Trigger%>  
    		<TurnHotkeysOff>
    	<EndIf>
    
    <Hotkey ScrollLockOff Esc>
    	<If ActiveWinIsNot WoW>
    		<SendLabel Fcs>
    			<Key %Trigger%>
    	<Else If Paused is 1>
    		<SendLabel Fcs>
    			<Key %Trigger%>	
    	<Else If Chat is 1>
    		<SetVar Chat 0>
    		<SendLabel Fcs>
    			<Key %Trigger%>
    		<TurnHotkeysOn>
    	<Else>
    		<SendLabel w01, w02, w03, w04, w05, w06, w07, w08, w09, w10>
    			<Key %Trigger%>
    	<EndIf>
    This is my Fcs label, it just does SendFocusWin:

    Code:
    <Label Fcs Local SendFocusWin>

    Edit: This proved more complicated than I originally thought. I think I have it all fixed now though, I changed the above code a bit. If anyone uses this, please let me know if it works for you.
    Last edited by Pocalypse : 08-21-2009 at 02:18 AM

  2. #2

    Default

    What is with you and just posting a smiley with a number. WTH does that mean?

  3. #3

    Default

    It isn`t a smily. Atleast it isn`t smiling

  4. #4

    Default

    I'm going to say spam. A google search on that URL shows it popping up all over the place .
    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

    Awesome, I love it. When I get around to redoing my HKN setup, I'm definitely going to use this. Thanks so much for sharing it!
    Jafula.
    Jamba - Jafula's Awesome Multi Boxer Assistant. An addon for YOU.

Posting Rules

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