Close
Showing results 1 to 10 of 12

Hybrid View

  1. #1

    Default

    Heres the script Ive been using. E is to reset cam position which lines up crosshairs somehwat for aoe spells. Follow works well but mouseclicks are not going well. WOuld love to be able to swithc windows lineup and return to mainwindow. Any help/corrections would be greatly appreciated. This is the sample wow script 2 on 1 edited for my use with tera. Feel free to use.

    Mouseclicks as of now..when i clck left mouse it changes focus window to window 2 and if i click again it then goes back to window 1. I would love for this to work where If i hold down a hotkey..it switches to window 2 lets me line up the crosshairs..then either release hot key or press another hotkey to return to window 1 and continue broadcasting keyclicks.

    Launching and renaming doesnt really work cause of the launcher window and how that works..so ive been launching and renaming manually. But if anyone cant edit that to work..that would be great too...Please HELP!

    CNTRL R works to rename the windows only if the launcher is closed..which btw will not kill either instance of TERA after they are running. Atleast for me.



    Code:
    //-----------------------------------------------------------
     // PRESS CTRL R TO RENAME Tera'S IF YOU LAUNCH THEM MANUALLY 
    //-----------------------------------------------------------
     <Hotkey ScrollLockOn Ctrl R>
         <SendPC local>
             <RenameWin "TERA" Tera1> 
     <Hotkey ScrollLockOn Alt R>
         <SendPC local>
             <RenameWin "TERA" Tera2>
           
    //-----------------------------------------------------------
     // SUBROUTINE TO LAUNCH AND RENAME A COPY OF Tera.
     //-----------------------------------------------------------
     <Command LaunchAndRename>
        <SendPC %1%> 
          <Run "C:\ProgramData\HappyCloud\Cache\TERA\TERA-Launcher.exe">
             <RenameTargetWin %2%>
     
    //-----------------------------------------------------------
     // HOTKEY TO LAUNCH AND RENAME BOTH Tera'S.
     //-----------------------------------------------------------
     <Hotkey ScrollLockOn Alt Ctrl L>
         <LaunchAndRename Local Tera1>
         <LaunchAndRename Local Tera2>
    <Hotkey ScrollLockOn g>
        <SendPC local>
            <SendWinm Tera2>
                <key Enter>
                <wait 250>
                <text /follow Player Name>
         <wait 300>
                <key Enter>
    
    <Hotkey ScrollLockOn Alt o>
        <SendPC local>
            <SendWinM Tera1>
                <key Enter>
                <wait 250>
                <text /follow Player Name>
         <wait 300>
                <key Enter>
    <Command SetPip>
       <TargetWin Tera1>
          <SetWinPos 0 0>
          <SetWinSize 1920 1080>
       <TargetWin Tera2>
          <SetWinPos 1921 0>
          <SetWinSize 1920 1080>
    <Hotkey ScrollLockOn Alt w>
       <SetPiP Tera2>
                
    `
    <Hotkey Alt F1>
    <SetActiveWindowTracking on>
    <Hotkey Alt F2>
    <SetActiveWindowTracking off>
     //-----------------------------------------------------------
     // DEFINE MAIL LABELS FOR SENDING KEY STROKES 
    //-----------------------------------------------------------
     <Label w1 Local SendWinM Tera1>
     <Label w2 Local SendWinM Tera2>
    //-----------------------------------------------------------
     // DEFINE HOTKEYS FOR ALL KEY COMBINATIONS THAT WILL GET
     // SENT TO BOTH TeraS. ADD MORE KEY COMBO'S IF YOU WANT. 
    //-----------------------------------------------------------
     <Hotkey ScrollLockOn A-Z, 0-4, 6-9, Plus, Minus, Space, F1-F12 except W, A, S, D, Q, E, G>
     <SendLabel w1, w2>
     <Key %Trigger%> 
     <Hotkey e>
     <SendWinM Tera2>
     <Key %Trigger%> 
    //-----------------------------------------------------------
     // DEFINE MOVEMENT KEYS THAT WILL GET SENT TO BOTH Tera'S.
     // ADD MORE KEYS IF YOU WANT. 
    //-----------------------------------------------------------
     <MovementHotkey ScrollLockOn up, down, left, right>
     <SendLabel w1, w2>
     <Key %Trigger%> 
    //-----------------------------------------------------------
     // BROADCAST MOUSE CLICKS. HOLD DOWN OEM3 (ON U.S. KEYBOARDS,
     // THAT'S THE SQUIGGLE KEY IN UPPPER LEFT CORNER) WHEN YOU 
    // WANT TO BROADCAST.
     //-----------------------------------------------------------
     
    
    <UseKeyAsModifier Oem3>
    <Hotkey ScrollLockOn LButton>
     <SendLabel w1, w2>
     <Clickmouse LButton>
     <wait 250>
     <RestoreMousePos>
     <Else>
     <SendFocusWin>
     <Clickmouse LButton>
    Last edited by Khatovar : 03-31-2013 at 10:45 PM

  2. #2

    Default

    Quote Originally Posted by jrc04444 View Post
    Mouseclicks as of now..when i clck left mouse it changes focus window to window 2 and if i click again it then goes back to window 1. I would love for this to work where If i hold down a hotkey..it switches to window 2 lets me line up the crosshairs..then either release hot key or press another hotkey to return to window 1 and continue broadcasting keyclicks.
    I see you have ActiveWindowTracking, but I have no idea how you're trying to use it. You also have mouse broadcasting as always on, I would advise against this as the amount of use your mouse is going to get is only going to cause the restore command to get messed up and make the mouse restore to the wrong window.

    Your mouse setup doesn't have an IF, so there's never a time where ELSE comes into play, which means every time you hit your left mouse button, the mouse is moving between both windows. There's also a delay in there between hitting the left button and restoring, which is only going to compound the issue of the windows not switching back to the main.

    As I said previously, your best bet is probably going to be using ActiveWindowTracking. This will automatically raise the slave window to the foreground whenever you move your mouse over it and raise the master to the foreground again when you move your mouse back. Turn on ActiveWindowTracking, move your mouse over to the slave window and position your crosshairs, leftclick and then just sweep your mouse back over to the master window. ActiveWindowTracking should put the master window back as the active window the second your mouse moves over it.


    Launching and renaming doesnt really work cause of the launcher window and how that works..so ive been launching and renaming manually. But if anyone cant edit that to work..that would be great too...Please HELP!

    CNTRL R works to rename the windows only if the launcher is closed..which btw will not kill either instance of TERA after they are running. Atleast for me.
    In general, I really hate the Launch setup in the default script. I'd suggest reconfiguring to use the modified version from my guide on Configuring a HotKeyNet Starter Script. The refined version is about halfway down the page.

    If you are running from different locations, you can use RenameFromPath. This is what I used for EQ2, which also has a wonky launcher. NOTE - this code is only for EQ2. You would need to do a lot of refining to make it work for another game. Heck, you might even need a lot of refining to get it to work with EQ2 at this point. It's just so you can see how I got my launch to work using RenameFromPath.

    Code:
    //----------------------------------------------------------
    // 	RESIZE AND POSITION
    //----------------------------------------------------------
    //*
    <Command ResizeAndPosition>
    	<SendPC Local>
    		<SendWin %1%>
    			<SetWinRect 0 0 1920 1050>              
    		<SendWin %2%>
    			<SetWinRect 1920 0 960 540>
    //+
    
    
    //----------------------------------------------------------
    // 	EQ2 LAUNCH AND RENAME
    //----------------------------------------------------------
    //*
    <Command LaunchAndRename>
    	<SendPC %1%>
    		<TargetWin "EverQuest II">
    			<CloseWin>
    				<Wait 500>
    	<Run %2%>
    		<wait 5000>
    	<TargetWin "EverQuest II">
    		<ClickMouse Window 750 525>
    			<wait 3000>
    	<TargetWin "EverQuest II">
    		<ClickMouse Window 350 275>
    			<text %3%>
    				<wait 50>
    	<Key Tab>
    		<text %4%>
    			<wait 50>
    	<Key Enter>
    		<wait 3000>
    	<TargetWin "EverQuest II">
    		<ClickMouse Screen 1250 750>
    			<wait 5000>
    	<RenameFromPath %5% %6%>
    		<ResizeAndPosition MAIN SLAVE>
    //+
    
    
    
    //----------------------------------------------------------
    // 	LAUNCH HOTKEY 
    //----------------------------------------------------------
    //*
    <Hotkey LCtrl  LAlt w>
    	<if WinDoesNotExist SLAVE>
    		<LaunchAndRename Local "G:\EQ2 Slave\LaunchPad.exe" NAME PASSWORD "G:\EQ2 Slave\EverQuest2.exe" SLAVE>
    		<endif>
    	<if WinDoesNotExist MAIN>
    		<LaunchAndRename Local "G:\EQ2\LaunchPad.exe" NAME PASSWORD G:\EQ2\EverQuest2.exe MAIN>
    		<endif>
    <ResizeAndPosition MAIN SLAVE>
    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 _

Posting Rules

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