Post Reply  Post Thread 
turbo function?
Author Message
opelfrost
Junior Member
**


Posts: 2
Group: Registered
Joined: Aug 2008
Status: Offline
Reputation: 0
Post: #1
turbo function?

Is there anyway to make the fragpedal II press a keyboard key in quick succession like a turbo function in game-pad (not hold down the key).

to be more precise, I need my button 1 to continuously press 'Z' key when i'm holding down the button. It shld only stop pressing the 'Z' key when i release button 1.

This post was last modified: 11-05-2008 02:17 AM by opelfrost.

11-05-2008 02:14 AM
Find all posts by this user Quote this message in a reply
Kimo
-
*******


Posts: 19
Group: Administrators
Joined: Jul 2008
Status: Offline
Reputation: 0
Post: #2
RE: turbo function?

Excellent question Opelfrost.

There are a few different ways, but the best way is to use KeyPress(0, 'z', 20).
Below is the contents of the attached macro.
I added comments to help you understand what the code is doing.

THREAD Profile

Start:

WaitForButton(Button, ButtonMask) //This is to tell the program to wait for the button to be pressed.

DO //This start of the loop. The code below will be what is looped.

KeyPress(0, 'z', 20) //This is a key press of 'z'.
//The 20 represents the duration in milliseconds that
//the key will be held down. The lower the number the faster the key
//will be pressed. But if it is to short the computer might not
// catch that the key.

WHILE ((GetButtonState & ButtonMask) == Button) //This is the end loop. It stops
//when the button is lifted.

GOTO Start
END



Attached File(s)
.idi File  Repeat Z.idi (Size: 193 bytes / Downloads: 44)

Life's too short to be pissed off all the time
11-05-2008 05:28 PM
Find all posts by this user Quote this message in a reply
Guest
Unregistered


Post: #3
RE: turbo function?

Thanks, managed to get it working, but when i tried to increase the miliseconds to 1000, the device decided to 'hang' when saving and after that, my computer juz refuse to detect the device -.-

11-05-2008 09:50 PM
Quote this message in a reply
opelfrost
Junior Member
**


Posts: 2
Group: Registered
Joined: Aug 2008
Status: Offline
Reputation: 0
Post: #4
RE: turbo function?

eh nevermind, found out what went wrong.

easily solved by manually clearing the device memory

11-05-2008 10:05 PM
Find all posts by this user Quote this message in a reply
Kimo
-
*******


Posts: 19
Group: Administrators
Joined: Jul 2008
Status: Offline
Reputation: 0
Post: #5
RE: turbo function?

Guest Wrote:
when i tried to increase the milliseconds to 1000, the device decided to 'hang'


By increasing to 1000 means that it would hold the 'z' key down for 1000 milliseconds before releasing it. For what you are trying to do you want a lower number.


Life's too short to be pissed off all the time
11-05-2008 10:39 PM
Find all posts by this user Quote this message in a reply
Guest
Unregistered


Post: #6
RE:

If you ask me, I would never put that in doubt.

Regards,
Hoodia Gordonii

03-09-2009 10:59 AM
Quote this message in a reply
Guest
Unregistered


Post: #7
buy phen 375

just try phen 375

12-02-2009 10:25 AM
Quote this message in a reply
Post Reply  Post Thread 

[-]
Quick Reply
Message
Type your reply to this message here.



Image Verification
Image Verification Please enter the text within the image on the left in to the text box below. This process is used to prevent automated posts.

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites
Rate This Thread:

Forum Jump: