Key Combination Editor - Loop commands?

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

Moderator: ZSNES Mods

Post Reply
Bromoghan
New Member
Posts: 9
Joined: Tue Dec 10, 2013 10:19 pm

Key Combination Editor - Loop commands?

Post by Bromoghan »

Is there a way to loop commands with the Key Combination editor? I'd like to have the "A" button pressed + released every 5 minutes for x number of times.
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Re: Key Combination Editor - Loop commands?

Post by grinvader »

If you need the button pressed down for 5 minutes then released, 5 minutes is 300 seconds. Use the delays.

Binding a key combo to a pad lets you auto-repeat the combo when the corresponding button is kept depressed.
皆黙って俺について来い!!

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
Bromoghan
New Member
Posts: 9
Joined: Tue Dec 10, 2013 10:19 pm

Re: Key Combination Editor - Loop commands?

Post by Bromoghan »

My bad. More accurately.

Press A + Release
Wait 5 minutes
Press A + Release
Wait 5 minutes
etc, etc.

I'll revisit the Key Combination Editor .. Perhaps I was just to hasty with it?
[edit] Perhaps I have an older version of the ZSNES (v1.51 Jan. 24 2007). The largest option for delay in seconds is 5. The version I have, I cannot manually type into the text box that contains the Key Combination to set the delay to 300 seconds [/edit]

I've tried using VBScript to SendKeys to the emu, that didn't work.
I've tried using On-Screen Keyboard + AutoClicker, that didn't work.

Are there any "hooks" that the WMI or an API can latch on to so I can send key commands to the application?
Last edited by Bromoghan on Thu Dec 12, 2013 2:31 am, edited 2 times in total.
odditude
Official tech support dood
Posts: 2118
Joined: Wed Jan 25, 2006 7:57 am

Re: Key Combination Editor - Loop commands?

Post by odditude »

still, use the delays. press, release, delay 300s. hold the button down and you should be golden.
Why yes, my shift key *IS* broken.
Bromoghan
New Member
Posts: 9
Joined: Tue Dec 10, 2013 10:19 pm

Re: Key Combination Editor - Loop commands?

Post by Bromoghan »

I attempted what I thought was the equivalent of your statement and placed a weight on the keyboard "y" .. no luck. Screenshot of my Key Comb Editor screen:

Image

It's all good .. I'll just manually monitor the screen for a few minutes every day for a while until I've completed my goal (Irony is .. It'd just be easier to find the infinite money code for the game .. but, that feels like cheating .. even though, technically, I'm doing the same thing .. Yeah, I know .. I'm not right in the head)

Anyways, thanks for trying .. On a side note ..... Really appreciate this emulator and all the great memories and games it lets me access.
odditude
Official tech support dood
Posts: 2118
Joined: Wed Jan 25, 2006 7:57 am

Re: Key Combination Editor - Loop commands?

Post by odditude »

it autorepeats if bound to a gamepad button.
Why yes, my shift key *IS* broken.
Bromoghan
New Member
Posts: 9
Joined: Tue Dec 10, 2013 10:19 pm

Re: Key Combination Editor - Loop commands?

Post by Bromoghan »

I'm sorry, I don't understand your explanation as I'm unsure of what you mean by "gamepad button". If "gamepad button" refers to some additional hardware (such as a USB SNES controller), then I don't have one. If you mean, I need to change the mapping of the Combo Key from "y" to "Numpad 3", then I'll give that a shot.

I only have a keyboard + mouse. My keyboard is mapped as follows:

s - up
z - left
x - down
c - right

Numpad 3 - A
Numpad 2 - B
Numpad 6 - X
Numpad 5 - Y
Numpad 1 - L
Numpad 4 - R
Numpad . - Select
Numpad Enter - Start

Again .. thanks for the feedback and patience :D
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Re: Key Combination Editor - Loop commands?

Post by grinvader »

This is a (cheap) gamepad:
Image

With a keyboard, there is no auto-repeat. You press the key, it triggers the combo once. You have to release the key then press it again for repeats.

Btw, your key combo will press and release A the next frame, wait 2 frames and 190 seconds, press and release A the next frame, then wait 2 more frames.
The frame steps aren't very useful.
Anyway, I didn't remember the step amount limitations. No way to have 5 minutes delays right now, sorry.
皆黙って俺について来い!!

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
Bromoghan
New Member
Posts: 9
Joined: Tue Dec 10, 2013 10:19 pm

Re: Key Combination Editor - Loop commands?

Post by Bromoghan »

Good deal .. yeah, I was reading up on the Config_Input and realized what you meant .. thought I'd come here and share my new found knowledge, only to see you beat me to it :D

Thanks man. Mayhaps I can figure out a way to perform a obj.SendKey command to the emulator .. That or just break down and find the cheat code for infinite money .... heh heh :p
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Re: Key Combination Editor - Loop commands?

Post by grinvader »

Bromoghan wrote:find the cheat code for infinite money
Typically much, much easier. Which game ?
皆黙って俺について来い!!

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
Bromoghan
New Member
Posts: 9
Joined: Tue Dec 10, 2013 10:19 pm

Re: Key Combination Editor - Loop commands?

Post by Bromoghan »

Ogre Battle, March of the Black Queen ... I remember always wanting to play it when I was younger .. rented it once .. but never bought it .. was to slow for me at the time .. love it now.
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Re: Key Combination Editor - Loop commands?

Post by grinvader »

7E1578 7F
7E1579 96
7E157A 98
皆黙って俺について来い!!

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
Bromoghan
New Member
Posts: 9
Joined: Tue Dec 10, 2013 10:19 pm

Re: Key Combination Editor - Loop commands?

Post by Bromoghan »

Cool, I'll try those out .. see what they do :D Thanks man.
Bromoghan
New Member
Posts: 9
Joined: Tue Dec 10, 2013 10:19 pm

Re: Key Combination Editor - Loop commands?

Post by Bromoghan »

Welp, I plugged them in, they were accepted .. but, no idea what they're doing :D
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Re: Key Combination Editor - Loop commands?

Post by grinvader »

Get some cash and see how much you have.
皆黙って俺について来い!!

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
Bromoghan
New Member
Posts: 9
Joined: Tue Dec 10, 2013 10:19 pm

Re: Key Combination Editor - Loop commands?

Post by Bromoghan »

Sick :D

Went from 100k to 10,014,435 !!! No more wasting rep waiting on the days to go by :D (heh, or having to figure out a way to push a button every couple of minutes to cycle the income popup window :D)

Thanks man!!
Post Reply