Announcement

Collapse
No announcement yet.

Move the mouse pointer?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Move the mouse pointer?

    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

  • #2
    Re: Move the mouse pointer?

    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! [img]/ubbthreads/images/icons/wink.gif[/img]

    ((Seriously, I would advise against such things tho ... may well upset the end user too much [img]/ubbthreads/images/icons/smile.gif[/img] ))
    -
    = Derek
    ["All glory comes from daring to begin" - fortune cookie]

    Comment


    • #3
      Re: Move the mouse pointer?

      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>

      Comment

      Working...
      X