Jump to content

SetEnv mouseclicks position


Recommended Posts

Hi guys,

I want to SetEnv the mouseclicks position for a script. In this script I need the same position a lot so it would be handy if i could use SetEnv. But I can't get it to work. this is what i have:

SetEnv, Loc, 500, 300
leftclick, %Loc%

of course this doesn't work because of the number of parameters :) but maybe one of you guys know a way how I can surpass that problem.

Hope you can help me,

Berend Jan

Edited by Berend Jan
Link to comment
Share on other sites

  • 2 months later...

Hi guys,

I want to SetEnv the mouseclicks position for a script. In this script I need the same position a lot so it would be handy if i could use SetEnv. But I can't get it to work. this is what i have:

SetEnv, Loc, 500, 300
leftclick, %Loc%

of course this doesn't work because of the number of parameters :evil:  but maybe one of you guys know a way how I can surpass that problem.

Hope you can help me,

Berend Jan

<{POST_SNAPBACK}>

Haven't used v2 in ages but why not:

SetEnv, LocX, 500
SetEnv, LocY,300
LeftClick,%LocX%,%LocY%

Hey just wondering. Do you use both v2 and v3? (I think i've seen you in the v3 forums before.) Why use both when you can do every v2 can do in v3 and more.

I could never go back to v2 after v3. :)

Edited by SolidSnake
HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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