Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / invert mouse script

Author
Message
Crowstooth
15
Years of Service
User Offline
Joined: 27th Sep 2009
Location: London
Posted: 30th Sep 2009 07:21
I did a search for "invert mouse" and found an old post which was closed and nobody had an answer to this problem. I found a script from somewhere but I don't know where to put it. I include it here for those who need it and also in the hope that someone will tell me where to put it.


;no 3

BlockInput Mouse
SetMouseDelay -1

MouseGetPos x, oldy
SetTimer WatchMouse, 1
Return

WatchMouse:
MouseGetPos x, y
MouseMove 0, 2*(oldy-y), 0, R
MouseGetPos x, oldy
Return

!z::ExitApp

_________________________________________________________
;no 2

#NoEnv
SetBatchLines -1
Process Priority,,R

BlockInput Mouse ; user mouse input is ignored during MouseMove
CoordMode Mouse, Screen ; absolute coordinates
SysGet m, Monitor ; get the screen edges
mLeft += 1, mRight -= 2, mTop += 1, mBottom -= 2
SetMouseDelay -1 ; fastest action

MouseGetPos x0, y0 ; get initial mouse pointer location
SetTimer WatchMouse, 1 ; run the subroutine fast (10..16ms)
Return

WatchMouse:
MouseGetPos x, y ; get current mouse position
x0 += 2*(x0-x), x0 := x0 < mLeft ? mLeft : (x0 > mRight ? mRight : x0)
y0 += 2*(y0-y), y0 := y0 < mTop ? mTop : (y0 > mBottom ? mBottom : y0)
MouseMove x0, y0, 0 ; set new position as old, for the next timer
Return

!z::ExitApp ; stop the madness; make the script persistent

________________________________________________________
;No 1
#NoEnv
SetBatchLines -1
Process Priority,,R

BlockInput Mouse ; user mouse input is ignored during MouseMove
CoordMode Mouse, Screen ; absolute coordinates
SysGet m, Monitor ; get the screen edges
mTop += 1, mBottom -= 2
SetMouseDelay -1 ; fastest action

MouseGetPos x0, y0 ; get initial mouse pointer location
SetTimer WatchMouse, 1 ; run the subroutine fast (10..16ms)
Return

WatchMouse:
MouseGetPos x, y ; get current mouse position
y0 += 2*(y0-y), y0 := y0 < mTop ? mTop : (y0 > mBottom ? mBottom : y0)
MouseMove x, y0, 0 ; set new position as old, for the next timer
Return

!z::ExitApp ; stop the madness; make the script persistent
This is my first post and I've read all the warnings so I don't want to foul up this lifeline. I have tried to place it in everywhere I thought it might work. I made it an FPI but I'm attaching it as a text document.
Hope this helps you and me.
John.

Attachments

Login to view attachments
Bibo4PC
15
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 30th Sep 2009 13:30
am guessing that doesn't belong here

Nickydude
Retired Moderator
17
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 30th Sep 2009 17:13 Edited at: 30th Sep 2009 17:14
Are you wanting this for FPS Creator? If so that is not the scripting language used. I think that script (or programming code) is for DarkBasic.

Login to post a reply

Server time is: 2024-10-13 03:28:29
Your offset time is: 2024-10-13 03:28:29