PDA

View Full Version : Move the mouse pointer?


Lazerpower
04-08-2003, 03:27 PM
Hi all!
Anyone have a way to move the mouse pointer on the screen?
Like mouse click will jump to a page and move the right 2 inches.

Thanks,
Tom

Derek
04-08-2003, 03:44 PM
The only way I know how to do this is click the 'link' that will jump page, then grab the mouse and shift it so the pointer moves to the right about 2 inches! /ubbthreads/images/icons/wink.gif

((Seriously, I would advise against such things tho ... may well upset the end user too much /ubbthreads/images/icons/smile.gif ))

Worm
04-08-2003, 03:54 PM
This will move it to the upper left corner. I don't know how to get the X/Y position from AMS to move the mouse X number of pixels/twips, but play with this and I'm sure you can achieve what you want.

%DLLResult% = File.CallDLLFunction ( "%SysDir%\User32.dll", "SetCursorPos", "0,0")

<IR_ACTIONS_LIST>
<Action name="Call DLL Function">
<Type>143</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<FileName>%SysDir%\User32.dll</FileName>
<FunctionName>SetCursorPos</FunctionName>
<FunctionParameters>0,0</FunctionParameters>
<ReturnType>1</ReturnType>
<CallingConvention>1</CallingConvention>
<Variable>%DLLResult%</Variable>
</Action>
</IR_ACTIONS_LIST>