Search found 74 matches

by phasermaniac
03 Jul 2017, 10:58
Forum: Ask for Help (v1)
Topic: Creating a wrapper for interception.dll (fixed and working!) Topic is solved
Replies: 110
Views: 48350

Re: Creating a wrapper for interception.dll (fixed and working!) Topic is solved

Many thanks, I tested it with ease, and I found that with your 1st script the crosshair is always traking, I need to block movement but on button press, so I think it must be more like this: Process, Priority, , H SetBatchLines, -1 ListLines Off #KeyHistory 0 SendMode Input SetTitleMatchMode 2 SetTi...
by phasermaniac
30 Jun 2017, 11:57
Forum: Ask for Help (v1)
Topic: Creating a wrapper for interception.dll (fixed and working!) Topic is solved
Replies: 110
Views: 48350

Re: Creating a wrapper for interception.dll (fixed and working!) Topic is solved

Sorry here it is the full code: I didn't shared it before to make it shorter: #Include <_Struct> #SingleInstance force #NoEnv Process, Priority, , H SetBatchLines, -1 ListLines Off #KeyHistory 0 SendMode Input SetTitleMatchMode 2 SetTitleMatchMode Fast SetKeyDelay, -1, -1 SetMouseDelay, -1 SetWinDel...
by phasermaniac
27 Jun 2017, 13:04
Forum: Ask for Help (v1)
Topic: Creating a wrapper for interception.dll (fixed and working!) Topic is solved
Replies: 110
Views: 48350

Re: Creating a wrapper for interception.dll (fixed and working!) Topic is solved

Sorry, the second code had some errors... if (device = gun1id || device = gun2id) { if (state = 1) { if (device = gun1id) trigger := gun1trigger flasher := gun1flasher if (device = gun2id) trigger := gun2trigger flasher := gun2flasher [b]send %flasher% sleep, %triggerdelay%[/b] mouse.state := 2 send...
by phasermaniac
25 Jun 2017, 15:12
Forum: Ask for Help (v1)
Topic: Creating a wrapper for interception.dll (fixed and working!) Topic is solved
Replies: 110
Views: 48350

Re: Creating a wrapper for interception.dll (fixed and working!) Topic is solved

Hi! I have been a little busy, and was testing this code and it works nice, it sleeps the mouse click, in a individual way to mantain the raw input sepparation. This is used for crt lightguns connected to windows, as they work as absolute coord mice, but need a flashing just a moment before the clic...
by phasermaniac
30 Apr 2017, 09:24
Forum: Ask for Help (v1)
Topic: Creating a wrapper for interception.dll (fixed and working!) Topic is solved
Replies: 110
Views: 48350

Re: Creating a wrapper for interception.dll (fixed and working!) Topic is solved

I had another idea, and as I was such close, I have tried, ans suceed. Its a rawinput to directinput gun converter, because lightguns working in rawinput only works sepparately in rawinput emus. So with this, you can get the guns sepparated even in desktop. The cursor goes where each player shot. Wi...
by phasermaniac
29 Apr 2017, 13:18
Forum: Ask for Help (v1)
Topic: Creating a wrapper for interception.dll (fixed and working!) Topic is solved
Replies: 110
Views: 48350

Re: Creating a wrapper for interception.dll (fixed and working!) Topic is solved

I have realised that they change when I run virtualbox and then exits. As when you run seems the usb devices gets unplugged from the host os to be recognized by the guest so. When returning from vm it seems i'm getting the next ids. Normally the guns are 13 and 12. after each reboot are 14 and 15, 1...
by phasermaniac
28 Apr 2017, 18:10
Forum: Ask for Help (v1)
Topic: Creating a wrapper for interception.dll (fixed and working!) Topic is solved
Replies: 110
Views: 48350

Re: Creating a wrapper for interception.dll (fixed and working!) Topic is solved

The triggerlenght worked perfect, I tested, and I have to play a little more with the delays, but I'm getting near perfect results. But the guns identification don't work, both fires gun2flasher. Any advice? Also,do you think this timings are reliable? It seem as I'm not getting the same timings as ...
by phasermaniac
28 Apr 2017, 10:52
Forum: Ask for Help (v1)
Topic: Creating a wrapper for interception.dll (fixed and working!) Topic is solved
Replies: 110
Views: 48350

Re: Creating a wrapper for interception.dll (fixed and working!) Topic is solved

Bingo,, many thanks this is exactly what I needed: else if is_mouse(device) { get_keyname(mouse,name,state) device1=:device hardware_id:=get_hardware_id(context,device) if hardware_id= %gunsid% { if name=LButton { if (state = 1) { if (device = device1) flasher := gun1flasher else flasher := gun2flas...
by phasermaniac
28 Apr 2017, 04:41
Forum: Ask for Help (v1)
Topic: Creating a wrapper for interception.dll (fixed and working!) Topic is solved
Replies: 110
Views: 48350

Re: Creating a wrapper for interception.dll (fixed and working!) Topic is solved

Yes, thats it!
Only the flash is launched with a and k, one for each gun
by phasermaniac
27 Apr 2017, 17:42
Forum: Ask for Help (v1)
Topic: Creating a wrapper for interception.dll (fixed and working!) Topic is solved
Replies: 110
Views: 48350

Re: Creating a wrapper for interception.dll (fixed and working!) Topic is solved

Yes, you have reason, both lightguns use Lbutton for shooting, but a key mapped button to flashing, but actually it doesn't mahter which one is the first and the second, only to flahing sepparately. I'll do this way, many thanks. The flasher program has a customizable do a single flash, it have a cu...
by phasermaniac
26 Apr 2017, 12:03
Forum: Ask for Help (v1)
Topic: Creating a wrapper for interception.dll (fixed and working!) Topic is solved
Replies: 110
Views: 48350

Re: Creating a wrapper for interception.dll (fixed and working!) Topic is solved

thanks, I got it working, but it shows only HID#VID_0B9A&PID_016A&Col01 and: P1Device = \\?\HID#VID_0B9A&PID_016A&Col01# 7&28d4c0d1&3&0000 #{378de44c-56ef-11d1-bc8c-00a0c91405dd} P2Device = \\?\HID#VID_0B9A&PID_016A&Col01# 7&3b8e7176&8&0000 #{378de44c-56ef-11d1-bc8c-00a0c91405dd} There is no way to ...
by phasermaniac
25 Apr 2017, 14:18
Forum: Ask for Help (v1)
Topic: Creating a wrapper for interception.dll (fixed and working!) Topic is solved
Replies: 110
Views: 48350

Re: Creating a wrapper for interception.dll (fixed and working!) Topic is solved

sorry but i get the error "function library not found"
The other scripts included <_Struct> but this one <interception> why?
I have interception.dll in the same folder, and interception.h in library folder.
by phasermaniac
23 Apr 2017, 17:29
Forum: Ask for Help (v1)
Topic: Creating a wrapper for interception.dll (fixed and working!) Topic is solved
Replies: 110
Views: 48350

Re: Creating a wrapper for interception.dll (fixed and working!) Topic is solved

Not really... I was testing on the pc with a huge triggerdelay, so I was not fisically pressing the trigger when the simulated LButton is fired, and I can set a custom length this way. But testing with the guns with the real trigger delay(about 1miliseconds) I'm pressing fisically the trigger when t...
by phasermaniac
23 Apr 2017, 11:42
Forum: Ask for Help (v1)
Topic: Creating a wrapper for interception.dll (fixed and working!) Topic is solved
Replies: 110
Views: 48350

Re: Creating a wrapper for interception.dll (fixed and working!) Topic is solved

I got i, many thanks! if name=LButton { if (state = 1) { send {%gun1flasher%} sleep, %triggerdelay% send(context,device,mouse,1) sleep, %triggerlength% send(context,device,mouse,1) mouse.state :=0 } if (state = 0) { send(context,device,mouse,1) } } may be not the better way, but works...
by phasermaniac
23 Apr 2017, 11:05
Forum: Ask for Help (v1)
Topic: Creating a wrapper for interception.dll (fixed and working!) Topic is solved
Replies: 110
Views: 48350

Re: Creating a wrapper for interception.dll (fixed and working!) Topic is solved

I was uncommenting it generated the key but not the LButton, I'm getting better this way: if hardware_id = %gun1id% { if name=LButton { if state=1 send A sleep, 5; trigger delay send(context,device,mouse,1) sleep, 20; trigger length send(context,device,mouse,1) } } but even writing sleep, 0 for trig...
by phasermaniac
23 Apr 2017, 10:33
Forum: Ask for Help (v1)
Topic: Creating a wrapper for interception.dll (fixed and working!) Topic is solved
Replies: 110
Views: 48350

Re: Creating a wrapper for interception.dll (fixed and working!) Topic is solved

many thanks it works, now I'm only having problem in shorten the simulated LButton, I realized I need it shorter, how I can set it custom duration?
by phasermaniac
22 Apr 2017, 14:03
Forum: Ask for Help (v1)
Topic: Creating a wrapper for interception.dll (fixed and working!) Topic is solved
Replies: 110
Views: 48350

Re: Creating a wrapper for interception.dll (fixed and working!) Topic is solved

Also I noted if I chain two mice else if is_mouse(device) { get_keyname(mouse,name,state) ToolTip % "device: " device "`nname:" name "`nstate:" state ;if device=14 ;gun1 ;ToolTip % clipboard:=get_hardware_id(context,device) hardware_id:=get_hardware_id(context,device) ;if hardware_id = HID\VID_0B9A&...
by phasermaniac
22 Apr 2017, 12:10
Forum: Ask for Help (v1)
Topic: Creating a wrapper for interception.dll (fixed and working!) Topic is solved
Replies: 110
Views: 48350

Re: Creating a wrapper for interception.dll (fixed and working!) Topic is solved

I'm getting it near working... leaving trigger as LButton (which shots in the emulators), I can blind it set_filter(context, "mouse", mouse_filter "MOUSE_BUTTON_1_DOWN|MOUSE_BUTTON_1_UP") and so delay it: if device=14 ;gun1 { if name=LButton { send k sleep, 500 send(context,device,mouse,1) } } I'm s...
by phasermaniac
22 Apr 2017, 10:32
Forum: Ask for Help (v1)
Topic: Creating a wrapper for interception.dll (fixed and working!) Topic is solved
Replies: 110
Views: 48350

Re: Creating a wrapper for interception.dll (fixed and working!) Topic is solved

Hello noesis, thanks for the response, amazing! I'm familiar with html css php some javascript, but not programming inputs and dlls... At this moment I have the example running, I have been testing the script, and I understand some things but I'm a bit lost. the tooltips report me the gun id and I a...
by phasermaniac
21 Apr 2017, 16:27
Forum: Ask for Help (v1)
Topic: Creating a wrapper for interception.dll (fixed and working!) Topic is solved
Replies: 110
Views: 48350

Re: Creating a wrapper for interception.dll (fixed and working!) Topic is solved

Hello I have 2 crt lightguns working nice in win10, they work by rawinput, absolute coordinates with Mame and other amulators. But I have a problem: no drivers that flashes the screen when shot, and crt lightguns need it to track fine in dark colors, and this makes unplayable almost every game. Anot...

Go to advanced search