Close
Showing results 1 to 10 of 35

Threaded View

  1. #8

    Default

    Quote Originally Posted by Freddie View Post
    You must be a programmer.
    Guilty.
    I've dabbled in programming as a hobby since I got my first computer (Commodore 64) like 20 years ago. It seems that no matter how much you know about computers there are always new things to learn, and new problems to face.

    Quote Originally Posted by Freddie View Post
    One of the things I've learned from supporting HotkeyNet for four years is that it doesn't occur to people that the way to write complex scripts is to start with something simple. After the simple thing is working, add to it and make it more complex.

    It seems like the most obvious thing in the world, but it just doesn't occur to people. It never ceases to amaze me. They will post 200-line definitions with embedded templates and includes and say, "I can't figure out what's wrong. Help!"

    Well of course they can't figure out. The definition is too complicated. I can't figure it out either.
    I know exactly what you mean! That's why I used such a simple example. It's much easier to fix the problem at hand if you don't have pages of code to sort through.

    Anyway, as for the problem, it's gone now. Since I learned that I could load a script on the slave client all of my problems have disappeared. I can't believe that after looking through pages and pages of Google results for HotKeyNet, FTL, etc. that I never once seen anything stating to put a script on the slave client. It might have been stated and I just missed it...

    Here's the revised example script and the slave client script I used to test (just in case this helps someone else):

    Master Client:
    Code:
    <Label w1 Local SendWinM WoW1>
    <Label w2 192.168.0.109 SendWinM WoW2>
    <Label w3 192.168.0.109 SendWinM WoW3>
    <Label w4 192.168.0.109 SendWinM WoW4>
    <Label w5 192.168.0.109 SendWinM WoW5>
    
    
    <Hotkey ScrollLockOn Alt Ctrl L>
        <SendPC Local>
        <Run "D:\Program Files\World of Warcraft\WoW.exe">
        <RenameWin World WoW1>
        <wait 10000>
        <SendWinM WoW1>
            <text "Account">
            <wait 500>
            <key Tab>
            <wait 500>
            <text "Pass">
            <wait 100>
            <key Enter>
    
        <SendPC 192.168.0.109>
        <Run "D:\Program Files\World of Warcraft\WoW.exe">
        <RenameWin World WoW2>
        <wait 10000>
        <SendWinM WoW2>
            <SetWinPos 0 0>
            <SetWinSize 704 440>
            <RemoveWinFrame>
            <text "Account">
            <wait 500>
            <key Tab>
            <wait 500>
            <text "Pass">
            <wait 100>
            <key Enter>
    
        <SendPC 192.168.0.109>
        <Run "D:\Program Files\World of Warcraft\WoW.exe">
        <RenameWin World WoW3>
        <wait 10000>
        <SendWinM WoW3>
            <SetWinPos 576 0>
            <SetWinSize 704 440>
            <RemoveWinFrame>
            <text "Account">
            <wait 500>
            <key Tab>
            <wait 500>
            <text "Pass">
            <wait 100>
            <key Enter>
    
        <SendPC 192.168.0.109>
        <Run "D:\Program Files\World of Warcraft\WoW.exe">
        <RenameWin World WoW4>
        <wait 10000>
        <SendWinM WoW4>
            <SetWinPos 0 360>
            <SetWinSize 704 440>
            <RemoveWinFrame>
            <text "Account">
            <wait 500>
            <key Tab>
            <wait 500>
            <text "Pass">
            <wait 100>
            <key Enter>
    
        <SendPC 192.168.0.109>
        <Run "D:\Program Files\World of Warcraft\WoW.exe">
        <RenameWin World WoW5>
        <wait 10000>
        <SendWinM WoW5>
            <SetWinPos 576 360>
            <SetWinSize 704 440>
            <RemoveWinFrame>
            <text "Account">
            <wait 500>
            <key Tab>
            <wait 500>
            <text "Pass">
            <wait 100>
            <key Enter>
    
    
    <Hotkey Numpad1>
        <SendLabel w2, w3, w4, w5>
            <Key Numpad1>
    Slave Client:
    Code:
    <Label w1 192.168.0.110 SendWinM WoW1>
    <Label w2 Local SendWinM WoW2>
    <Label w3 Local SendWinM WoW3>
    <Label w4 Local SendWinM WoW4>
    <Label w5 Local SendWinM WoW5>
    
    
    <Hotkey Numpad1>
        <If ActiveWinIs WoW2>
            <SendLabel w1, w3, w4, w5>
                <Key Numpad2>
        <Else If ActiveWinIs WoW3>
            <SendLabel w1, w2, w4, w5>
                <Key Numpad3>
        <Else If ActiveWinIs WoW4>
            <SendLabel w1, w2, w3, w5>
                <Key Numpad4>
        <Else If ActiveWinIs WoW5>
            <SendLabel w1, w2, w3, w4>
                <Key Numpad5>
    As you can see I removed the "IF" in the master script because it only has one window and is therefore always active when the master system has focus. It's still active when the slave has focus too, but then the slave client script supercedes the master client script.

    Thanks again for your help! I was getting fed up with searching, which is why I made a thread. It takes a lot of agony to get me to ask for help. I'm a big believer in Google, hehe. Now I can get back to the fun stuff.
    Last edited by Nomahd : 02-03-2011 at 05:59 PM Reason: Oops, had an error in my code from changing stuff

Posting Rules

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