Re: A86: keypresses


[Prev][Next][Index][Thread]

Re: A86: keypresses




this also works, but you can only send ascii codes (i think)

_pushQueue = $4094
.org _asm_exec_ram

    ld a,'G'
    call _pushQueue
    ld a,'o'
    call _pushQueue
    ld a,' '
    call _pushQueue
    ld a,'a'
    call _pushQueue
    ld a,'w'
    call _pushQueue
    ld a,'a'
    call _pushQueue
    ld a,'y'
    call _pushQueue
    ld a,'!'
    call _pushQueue
    ret

-josh

On Tue, 1 Feb 2000 11:32:52 EST ComAsYuAre@aol.com writes:
> 
> In a message dated Tue, 1 Feb 2000  9:13:56 AM Eastern Standard 
> Time, Rgdtad@aol.com writes:
> 
> > 
> > How do I simulate keypresses?
> 
> If you only want to simulate one key (upon exiting a program for 
> example), do this:
>  ld a,kEnter
>  jp _jforcekey
> 
> If you want to simulate a lot of them in a row, you have to set up a 
> sqrtKEY program and return predefined values, which is a bit more 
> complicated.
> 

________________________________________________________________
YOU'RE PAYING TOO MUCH FOR THE INTERNET!
Juno now offers FREE Internet Access!
Try it today - there's no risk!  For your FREE software, visit:
http://dl.www.juno.com/get/tagj.