Results 1 to 3 of 3

Thread: AutoHotKeys (Extensions)

  1. #1
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default AutoHotKeys (Extensions)

    KK I looked on wizzup's site documentation and searched for AutoHotKeys.. Nothing comes up.. Searched here, nothing comes up.. Googled and I get it for VB and other languages...


    Im trying to implement it into an extension so that when the user presses a key while the simba window is minimized, it will have a form popup.

    //I have:

    Simba Code:
    MenuForm.AUTOHOTKEYS; //and that doesnt work. if I put MenuForm.Autohotkeys := dgsdgs; //doesnt work.

    //if I put
    MenuForm.AutoHotKeys := 'fdgd'; //doesnt work;
    MenuForm.AutoHotKeys := 132; //doesnt work either.

    //Tried
    MenuForm.Autohotkeys:: #n //<-- means windowskey + n doesnt work..
    MenuForm.Autohotkeys::KeyDown(123) := inputQuery(......);

    //Tried
    Procedure Userinput
    begin
    inputQuery(......);
    end;

    procedure Init;
    begin
    if (Keydown(123)) then
      Userinput;
    end;

    Tried all this aswell:
    Simba Code:
    Var I: integer;

    Function Keypress: boolean; external;

    Begin
    I:=0;
    Repeat
      Writeln (I);
         I:=I+1;
    Until Keypress
    End.

    //OnKeyDown didnt work, onKeyPress, getkeystate, ReadKey didnt work either :S

    Sigh nothing works and its not documented at all... So how do I use this or even do what Im trying to do?

  2. #2
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    I'm very confus right now and didn't really look into what you're doing. There are some tuts on extensions that may help. Mimicking SRL.sex (to some extent) may help. Also, with keys, you can do #13; for char 13, or chr(13);. Also, VK_WHATEVER exist. To get a full list of the virtual keys (VK), check Simba sawse.

    https://github.com/MerlijnWajer/Simb...ufasatypes.pas

    Virtual Keys start at line 187 as of March 28, 2011, 5:28 PM PST.

  3. #3
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Doesnt work... this is for an extension not a script... I checked all extensions but I dont see any of them with examples of how to catch a keypress in windows. or any platform..

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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