| Author |
Message |
Forum: Support Topic: Press joypad button when I press a specific key (keyboard) |
| jshafer817 |
|
Posted: November 11th, 2010, 12:43 am
|
|
Replies: 8 Views: 473
|
| RegRead,test, HKEY_LOCAL_MACHINE, SOFTWARE\TEST, test if ErrorLevel { PPJ_SetButton(1,1) return } I guess that wont work then.... Cuz it aint workin =) It was working with a MsgBox just so I know its reading the right key... I added that to the PPJ.ahk and no dice.. Wonder if Visual Studio can do an... |
|
 |
Forum: Support Topic: Send me a bill? |
| jshafer817 |
|
Posted: November 10th, 2010, 9:51 pm
|
|
Replies: 5 Views: 212
|
Loop, HKEY_CURRENT_USER, Software\TEST, 1, 1
{
if a_LoopRegType = test
value = 0
PPJ_SetButton(1,1); Set Button 1 True
else
PPJ_SetButton(1,0); Set Button 1 True
{
Play around with this |
|
 |
Forum: Support Topic: Send me a bill? |
| jshafer817 |
|
Posted: November 10th, 2010, 9:49 pm
|
|
Replies: 5 Views: 212
|
Hmmm
a::
PPJ_SetButton(1,1) ; Set Button 1 True
Keywait, a ; Wait for button to be released
PPJ_SetButton(1,0) ; Set Button 1 False
Return
ExitHandler:
PPJ_Term() ; Release the Joystick
ExitApp |
|
 |
Forum: Scripts Topic: PPJoy library |
| jshafer817 |
|
Posted: November 10th, 2010, 9:46 pm
|
|
Replies: 40 Views: 11003
|
So can anyone figure out a way to Send to Button1 on a Virtual PPJoy Joystick?
I want to use it with a reg loop... If a registry key is present hold down this button.. If its not then let go. Worried about timings though. |
|
 |
Forum: Support Topic: Press joypad button when I press a specific key (keyboard) |
| jshafer817 |
|
Posted: November 10th, 2010, 9:43 pm
|
|
Replies: 8 Views: 473
|
| So we still cannot Send a joystick-button? |
|
 |
Forum: Support Topic: Send me a bill? |
| jshafer817 |
|
Posted: November 10th, 2010, 9:04 pm
|
|
Replies: 5 Views: 212
|
| Try reading the help files for RegRead , loop , and send In the loop do a RegRead then use an if statement to see what the value of the Registry is (make the default for the Registry something like ERROR) I dont see how to send key will tell joy1 to hold down on button 1... I read the help files an... |
|
 |
Forum: Support Topic: Send me a bill? |
| jshafer817 |
|
Posted: November 10th, 2010, 5:28 pm
|
|
Replies: 5 Views: 212
|
| Huh thanks! Could I saw send key after the value=line and before else? --------------------------- Example in help: Loop, HKEY_CURRENT_USER, Software\Microsoft\Windows, 1, 1 { if a_LoopRegType = key value = else { RegRead, value if ErrorLevel value = *error* } MsgBox, 4, , %a_LoopRegName% = %value% ... |
|
 |
Forum: Support Topic: Send me a bill? |
| jshafer817 |
|
Posted: November 10th, 2010, 10:23 am
|
|
Replies: 5 Views: 212
|
How much to get AHK and PPJOy to work like this:
I want AHK to watch for a registry key and if its there I want it to press and hold button1 on the joystick and let go when the registry key dissappears...
Couldnt find an example... |
|
 |
| Sort by: |