Looping a keyboard macro?

General area for talk about ZSNES. The best place to ask for related questions as well as troubleshooting.

Moderator: ZSNES Mods

Post Reply
caffarena
New Member
Posts: 5
Joined: Wed Sep 14, 2005 2:45 pm

Looping a keyboard macro?

Post by caffarena »

Can anybody recommend a way to loop a keyboard macro in zsnes?

I'm basically looking to "hold B while pressing left then right" over and over. I tried the built in macro function before I realized it was to meant to execute several keystrokes at once as opposed to in succession.

Any help would be appreciated. Or a third party software recommendation?

Thanks.
Noxious Ninja
Dark Wind
Posts: 1271
Joined: Thu Jul 29, 2004 8:58 pm
Location: Texas
Contact:

Post by Noxious Ninja »

The built-in key combo editor is most definately designed to press keys in succession. However, it is not at this time suitable for looping.
[u][url=http://bash.org/?577451]#577451[/url][/u]
caffarena
New Member
Posts: 5
Joined: Wed Sep 14, 2005 2:45 pm

Post by caffarena »

Thanks for the quick reply. I must be missing something. Is there a seperator command to execute keys in succession as opposed to synchronously?

If so, can the macro key be assigned to a joystick button?
Noxious Ninja
Dark Wind
Posts: 1271
Joined: Thu Jul 29, 2004 8:58 pm
Location: Texas
Contact:

Post by Noxious Ninja »

Yes, you add delays. These can be numbers of frames or seconds.

I'm not sure if it can be assigned to a joystick button.
[u][url=http://bash.org/?577451]#577451[/url][/u]
caffarena
New Member
Posts: 5
Joined: Wed Sep 14, 2005 2:45 pm

Post by caffarena »

I'll give it a shot this evening. Thanks for your help.
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

It can be bound to joystick buttons, and even better, from previous feedback if you do so the combo will repeat as long as said button is depressed.

If you bind the combo on a keyboard key the combo will not repeat upon completion.
皆黙って俺について来い!!

Code: Select all

<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
caffarena
New Member
Posts: 5
Joined: Wed Sep 14, 2005 2:45 pm

Post by caffarena »

That's exactly what I was hoping for, thanks.

Would you mind explaining how to insert delays into the key commands so they don't execute at the same time?

Cheers.
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

As mentionned above, you have to time your own delays between keypresses.

Simple example would be the famous QCF+punch from many fighting games:
Press only Down | 2 frames | Press only Right | 2 frames | Release Down | 2 frames | Release Right | Press & Release 'A'

One frame lasts 1/60th of second in NTSC games, and 1/50th in PAL ones.
皆黙って俺について来い!!

Code: Select all

<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
mabauti
Rookie
Posts: 20
Joined: Wed Aug 24, 2005 7:02 am

Post by mabauti »

I'm using keyboard macros for FF3 Sabin's Bum Rush. I wonder why sometimes it works and sometimes does not work (about 75% vs 25%)...any suggestion? :?
Ok
Hyos
Regular
Posts: 207
Joined: Mon Aug 15, 2005 2:15 pm

Post by Hyos »

I made shortcuts once that worked 100%. They were like

Press Down,Release Down
Press Down-Right, Release Down-Right
Press...

No separators and worked like a charm, perhaps you have to experiment a bit.
Agozer
16-bit Corpse | Nyoron~
Posts: 3534
Joined: Sun Aug 01, 2004 7:14 pm
Location: Nokia Land

Post by Agozer »

Well, you don't always have to put frame-waits between inputs for the combinations to work.
whicker: franpa is grammatically correct, and he still gets ripped on?
sweener2001: Grammatically correct this one time? sure. every other time? no. does that give him a right? not really.
Image
mabauti
Rookie
Posts: 20
Joined: Wed Aug 24, 2005 7:02 am

Post by mabauti »

mmm...yeah I'm using frame-waits (2 fw every keypressing). Let me experiment... :idea:
Ok
caffarena
New Member
Posts: 5
Joined: Wed Sep 14, 2005 2:45 pm

Post by caffarena »

It took a half hour of trial and error but I finally found a combination that works really well for my purposes. Binding it a game pad button allowed for the looping, so it worked perfectly.

Thanks for all the help!
Post Reply