Git Product home page Git Product logo

Comments (9)

Misiur avatar Misiur commented on August 25, 2024

G and W might work, not certain about D, it seems it uses outdated api. Y uses Command_TouchNamed which is not ported (no idea when it will be)

from ysi-includes.

Crayder avatar Crayder commented on August 25, 2024

I still use W, that's really the only one I ever used (I have renamed it to "Sleep"). The others would be nice shortcuts though, I'd like to see this.

from ysi-includes.

Y-Less avatar Y-Less commented on August 25, 2024

I actually think this will just work:

https://github.com/Misiur/YSI-Includes/blob/master/y_commands.inc#L1104-L1156

from ysi-includes.

Misiur avatar Misiur commented on August 25, 2024

How did I miss that? Huh.

from ysi-includes.

PatchwerkQWER avatar PatchwerkQWER commented on August 25, 2024

Okay, I test it and here are results:
First problem - undefinited symbol E_CALLBACK_DATA
I find it's in y_inline so i just put #include <YSI\y_inline>. Next error undefinited symbol E_CALLBACK_DATA_FLAGS What I must do? It's in public @QWERTY_Wait(a, b, c, d)

Thanks

from ysi-includes.

Crayder avatar Crayder commented on August 25, 2024

@PatchwerkQWER: That's weird, I have the following included and it works fine:

#include <YSI\y_inline>
#include <YSI\y_commands>
#include <YSI\y_dialog>

from ysi-includes.

Crayder avatar Crayder commented on August 25, 2024

This is how I have my sleep function:

#define Sleep(%0)%1; {new QWERTY@W;static const _QWERTY@W[]="@WAIT:...:";if(!Inline_Loop(INLINE_LOOP_PATTERNS,QWERTY@W,_QWERTY@W))return QWERTY_Wait((%0),callback_tag:_QWERTY@W);}
forward @QWERTY_Wait(a, b, c, d); public @QWERTY_Wait(a, b, c, d)
{
        new
                res[E_CALLBACK_DATA];
        res[E_CALLBACK_DATA_FLAGS] = e_CALLBACK_FLAGS:a;
        res[E_CALLBACK_DATA_POINTER] = b;
        res[E_CALLBACK_DATA_FORMAT] = c;
        res[E_CALLBACK_DATA_ALLOC] = Alloc:d;
        Callback_Call(res);
        Callback_Release(res);
}
stock QWERTY_Wait(delay, callback:c)
{
        new
                res[E_CALLBACK_DATA];
        Callback_Get(c, res, _F<>);
        SetTimerEx("@QWERTY_Wait", delay, false, "iiii", _:res[E_CALLBACK_DATA_FLAGS], res[E_CALLBACK_DATA_POINTER], res[E_CALLBACK_DATA_FORMAT], _:res[E_CALLBACK_DATA_ALLOC]);
        return cellmin;
}

This was taken directly from QWERTYUIOP, just renamed the function to "Sleep."

from ysi-includes.

Crayder avatar Crayder commented on August 25, 2024

Fuck, I just realised that I haven't compiled that script since YSI 3.1, the E_CALLBACK_DATA_FLAGS is in YSI 3.1's y_inline.
https://github.com/Misiur/YSI/blob/33c14380439f644298dde83715973246d29153a4/pawno/include/YSI/y_inline.inc

from ysi-includes.

Misiur avatar Misiur commented on August 25, 2024

Oh, I was wrong about D, it uses macros from y_text, so it should work as well! So, I know only of problem with new inline functions api.

from ysi-includes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.