Welcome, Guest. Please login or register.

Author Topic: Can someone do some editing on a small tool written in C?  (Read 3667 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline FlashlabTopic starter

  • Hero Member
  • *****
  • Join Date: Aug 2005
  • Posts: 1396
    • Show all replies
Can someone do some editing on a small tool written in C?
« on: June 15, 2007, 09:09:26 PM »
There's a small tool on Aminet called Doubler that makes the right mouse button work with ShapeShifter. It makes the right mouse button do a double click hence the name. I'd like it to be edited to do a Right-Amiga plus single left mouse click. That would give the Mac essentially a right mouse button.

Doubler: it comes with source code. I don't know anything about C but I guess it's not a too difficult program to edit for a amateur coder.

Is there anyone who would like to do try this? I'd appreciate it very much!
Amiga 4000D Cyberstorm PPC 060@50 604@200 SCSI 130Mb Ram G-Rex Voodoo3 PicassoIV Paloma Ariadne Delfina Lite

Online Flash version of BoulderDash: Offline...
 

Offline FlashlabTopic starter

  • Hero Member
  • *****
  • Join Date: Aug 2005
  • Posts: 1396
    • Show all replies
Re: Can someone some editing on a small tool written in C?
« Reply #1 on: June 15, 2007, 09:14:56 PM »
He already did so much for us. He deserves his weekend rest!

I guess it's time I should learn to code myself. I can only do some Flash actionscript and basic...
Amiga 4000D Cyberstorm PPC 060@50 604@200 SCSI 130Mb Ram G-Rex Voodoo3 PicassoIV Paloma Ariadne Delfina Lite

Online Flash version of BoulderDash: Offline...
 

Offline FlashlabTopic starter

  • Hero Member
  • *****
  • Join Date: Aug 2005
  • Posts: 1396
    • Show all replies
Re: Can someone some editing on a small tool written in C?
« Reply #2 on: June 15, 2007, 09:51:41 PM »

Quote

C is really not that difficult in terms of syntax. It's really quite readable. The problem will be finding out which AmigaOS function you need to call (and how) to emulate the pressing of the Amiga key and the left mouse button.

--
moto


I already read the code. It seems quite readable; that's true but compiling seems like a disaster to me. Some months ago I did some small experiments and nothing but trouble;-) I just tried to compile this program but that didn't work out for me. Not to mention I don't know any of the commands.
Amiga 4000D Cyberstorm PPC 060@50 604@200 SCSI 130Mb Ram G-Rex Voodoo3 PicassoIV Paloma Ariadne Delfina Lite

Online Flash version of BoulderDash: Offline...
 

Offline FlashlabTopic starter

  • Hero Member
  • *****
  • Join Date: Aug 2005
  • Posts: 1396
    • Show all replies
Re: Can someone some editing on a small tool written in C?
« Reply #3 on: June 15, 2007, 09:58:20 PM »
The problem with compiling was that I just kept getting errors. Whenever I fixed one I just got a new one ;-) Haha! In the end I just gave up.

This weekend I'll try do it again...
Amiga 4000D Cyberstorm PPC 060@50 604@200 SCSI 130Mb Ram G-Rex Voodoo3 PicassoIV Paloma Ariadne Delfina Lite

Online Flash version of BoulderDash: Offline...
 

Offline FlashlabTopic starter

  • Hero Member
  • *****
  • Join Date: Aug 2005
  • Posts: 1396
    • Show all replies
Re: Can someone some editing on a small tool written in C?
« Reply #4 on: June 15, 2007, 10:03:09 PM »
You don't need ShapeShifter to test this program. It has a debug Tooltype to test and can work with any task also by Tooltype.
Amiga 4000D Cyberstorm PPC 060@50 604@200 SCSI 130Mb Ram G-Rex Voodoo3 PicassoIV Paloma Ariadne Delfina Lite

Online Flash version of BoulderDash: Offline...
 

Offline FlashlabTopic starter

  • Hero Member
  • *****
  • Join Date: Aug 2005
  • Posts: 1396
    • Show all replies
Re: Can someone some editing on a small tool written in C?
« Reply #5 on: June 15, 2007, 10:18:27 PM »
Haha tough week eh? Some here but not with any coding;-)
Amiga 4000D Cyberstorm PPC 060@50 604@200 SCSI 130Mb Ram G-Rex Voodoo3 PicassoIV Paloma Ariadne Delfina Lite

Online Flash version of BoulderDash: Offline...
 

Offline FlashlabTopic starter

  • Hero Member
  • *****
  • Join Date: Aug 2005
  • Posts: 1396
    • Show all replies
Re: Can someone some editing on a small tool written in C?
« Reply #6 on: June 15, 2007, 10:57:20 PM »
I re-read you post Karlos and maybe I'm mistaken but I think you got some things mixed up?

The program looks for right mous button clicks within a specific task name (default: ShapeShifter Window Int; can be changed with ToolType). If the right mouse button is clicked it simulates a double click with the left mouse button. I want it to simulate instead a single left click with right Amiga pressed simultaneously.

Correct me if I'm wrong but then you don't need to replace IECODE_LBUTTON with IECODE_RBUTTON or do a InputEvent because it doesn't need to check key strokes?
Amiga 4000D Cyberstorm PPC 060@50 604@200 SCSI 130Mb Ram G-Rex Voodoo3 PicassoIV Paloma Ariadne Delfina Lite

Online Flash version of BoulderDash: Offline...
 

Offline FlashlabTopic starter

  • Hero Member
  • *****
  • Join Date: Aug 2005
  • Posts: 1396
    • Show all replies
Re: Can someone some editing on a small tool written in C?
« Reply #7 on: June 19, 2007, 08:48:29 PM »
A little bump as I don't want this topic to be forgotten...

If anyone would like to try this it would be great!
Amiga 4000D Cyberstorm PPC 060@50 604@200 SCSI 130Mb Ram G-Rex Voodoo3 PicassoIV Paloma Ariadne Delfina Lite

Online Flash version of BoulderDash: Offline...
 

Offline FlashlabTopic starter

  • Hero Member
  • *****
  • Join Date: Aug 2005
  • Posts: 1396
    • Show all replies
Re: Can someone some editing on a small tool written in C?
« Reply #8 on: June 23, 2007, 12:24:15 PM »
Maybe someone has time this weekend?
Amiga 4000D Cyberstorm PPC 060@50 604@200 SCSI 130Mb Ram G-Rex Voodoo3 PicassoIV Paloma Ariadne Delfina Lite

Online Flash version of BoulderDash: Offline...
 

Offline FlashlabTopic starter

  • Hero Member
  • *****
  • Join Date: Aug 2005
  • Posts: 1396
    • Show all replies
Re: Can someone some editing on a small tool written in C?
« Reply #9 on: July 15, 2007, 02:24:07 PM »
A small :bump: to make sure it doesn't get forgotten...
Amiga 4000D Cyberstorm PPC 060@50 604@200 SCSI 130Mb Ram G-Rex Voodoo3 PicassoIV Paloma Ariadne Delfina Lite

Online Flash version of BoulderDash: Offline...
 

Offline FlashlabTopic starter

  • Hero Member
  • *****
  • Join Date: Aug 2005
  • Posts: 1396
    • Show all replies
Re: Can someone some editing on a small tool written in C?
« Reply #10 on: September 02, 2007, 04:03:48 PM »
Final bump?
Amiga 4000D Cyberstorm PPC 060@50 604@200 SCSI 130Mb Ram G-Rex Voodoo3 PicassoIV Paloma Ariadne Delfina Lite

Online Flash version of BoulderDash: Offline...