Jump to content

help starting up again: mouse to cordinates


 Share

Recommended Posts

ok

im wirting a new programm.

its been a while since i have used autoit and i have learned many different scripts in the time (AS2, lil silverlight , VB)

so my memory is a little jargoned so to speak

can one of you guys be kind enuth as to reply with a : mouse move to cordinates ("rightXpixles" , "downYpixels")

much apreciated in advance :)

Budweiser + room = warm beerwarm beer + fridge = too long!warm beer + CO2 fire extinguisher = Perfect![quote]Protect the easly offended ... BAN EVERYTHING[/quote]^^ hmm works for me :D

Link to comment
Share on other sites

ok

im wirting a new programm.

its been a while since i have used autoit and i have learned many different scripts in the time (AS2, lil silverlight , VB)

so my memory is a little jargoned so to speak

can one of you guys be kind enuth as to reply with a : mouse move to cordinates ("rightXpixles" , "downYpixels")

much apreciated in advance :)

Check the helpfile for MouseMove()
Link to comment
Share on other sites

You'll need MouseGetPos to get the current position. It returns an array, so set your variable like this:

$currentPosition = MouseGetPos()
$currentX = $currentPosition[0]
$currentY = $currentPosition[1]

From there, you can use this:

MouseMove($X + $xMove, $Y + $yMove)

Where $xMove and $yMove are the left/right and up/down number of pixels you want to move your mouse.

Normally I wouldn't give a freeby like this, but the script in your sig is awesome. Welcome back, and good luck! :)

Link to comment
Share on other sites

Check the helpfile for MouseMove()

:huh2: hmm ... i gotta redownload it XD (the help file it is)

oh wells :) tnks :)

i thought it was something more like getcordinates() XD

tnkas again ^_^

Budweiser + room = warm beerwarm beer + fridge = too long!warm beer + CO2 fire extinguisher = Perfect![quote]Protect the easly offended ... BAN EVERYTHING[/quote]^^ hmm works for me :D

Link to comment
Share on other sites

:huh2: hmm ... i gotta redownload it XD (the help file it is)

oh wells :) tnks :)

i thought it was something more like getcordinates() XD

tnkas again ^_^

Click my signature for Mouse Location Pointer. It will help you get started on all of that.

My Projects: [topic="89413"]GoogleHack Search[/topic], [topic="67095"]Swiss File Knife GUI[/topic], [topic="69072"]Mouse Location Pointer[/topic], [topic="86040"]Standard Deviation Calculator[/topic]

Link to comment
Share on other sites

//edit "fixed initial problem"

!new one!

ok i have searched the built in help file

and found no results

my problem is. using the pixeel color in my if statement. i dont kno how to present the RGB code in the "if $pix...."

the color is simple due to it being plane black

also a minor error pops up with my else

Func LoadAfterCreation()
$pixload = PixelGetColor( 1000, 760)
    If $pixload = "000000"
        sleep(1000)
        LoadAfterCreation()
    Else
        CharacterSetup()
    EndIf
EndFunc

//edit oncce again nvm :) i have fixed problem

Edited by Thornhunt

Budweiser + room = warm beerwarm beer + fridge = too long!warm beer + CO2 fire extinguisher = Perfect![quote]Protect the easly offended ... BAN EVERYTHING[/quote]^^ hmm works for me :D

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...