Close
Showing results 1 to 10 of 18

Hybrid View

  1. #1

    Default

    I had zero knowledge about scripts when I started. I really wanted some of the more advanced stuff that keyclone couldn't handle. So I sat down and figured it out by trial and error. There's still a lot I don't know (like templates) but just by keeping at it I learned it.

    That's my best advice to ya. Just keep trying different things and eventually you get better at it. It actually even starts to make sense lol. I can't actually "read' a script yet without a little bit of reference but I'm pretty close to being able to! Also whenever I found something that really gave me trouble Freddie was always great about helping or pointing in the right direction.

  2. #2

    Default

    I can't actually "read' a script yet...
    Here's a really useful trick. (At least I think so.) After you load the script, click "Show loaded hotkeys." The program will show you the hotkeys that it makes from your templates. The hotkeys are what really count -- they are the things that actually get loaded -- and they are much easier to read than templates.

    Question also is the " " need to signify whats in the %%
    Quotation marks are only needed if they enclose text that contains spaces and you want HotkeyNet to think of the enclosed text as a single thing.

    You need them here for the arguments that contain spaces. If you had written things slightly differently you wouldn't have needed them.

    For example, you could have written this:

    Code:
    <Template If>
      <If MouseIsOverWindowRect %1% %2% %3% %4% %5%>
          <SendLabel %6%>
             <Key %7%>
    <EndTemplate>
    See the difference? I wrote seven %% symbols instead of three like you did. This allows me to apply the template without quotes like this:

    Code:
       <ApplyTemplate If WoW5 88 299 125 58 w3 Numpad1>
    Also is this script language like that of like C++ or is this all in its own?
    I should have made the language like C for exactly this reason. It would be easier for people to learn. (C is a subset of C++.)

    However I was in an experimental mood when I designed HotkeyNet 1's language and as a result, the script language is bizarre and unlike anything I've ever heard of.

    I've learned my lesson and designed the new script language in HotkeyNet 2 so it resembles C as closely as possible.

    But we're stuck with the old script language for now, until HKN2 is ready.
    Last edited by Freddie : 09-10-2009 at 04:02 AM
    �Author of HotkeyNet and Mojo

Posting Rules

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