Author Topic: click #contx ?  (Read 5047 times)

0 Members and 1 Guest are viewing this topic.

Offline CoraginTopic starter

  • Wacko in Pajama's
  • Elite
  • *
  • *
  • Posts: 1641
  • Activity:
    0%
  • Reputation Power: 23
  • Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...
  • Gender: Male
  • It Is What It Is.
  • Respect: +117
  • Referrals: 1
    • View Profile
click #contx ?
« on: December 29, 2009, 12:49:47 AM »
0
whats the command?

click #contx x #conty y

and it will basicly click the top most gump at that position?  obviously x and y mean the number, like 435 300 ect ect...

click #contx 435 #conty 300


I ask because I had a complaint about my armor crafter and when a gump is moved it still clicks same spot on screen, not the gump.  I am looking for an easy way to fix this without moving gumps via contpos 50 50
Coragin

My Facebook
And now I'm better at doing what ever it is Wolverine does!

Offline rana70

  • Elite
  • *
  • *
  • Posts: 294
  • Activity:
    0%
  • Reputation Power: 5
  • rana70 has no influence.
  • Gender: Male
  • Respect: +75
  • Referrals: 2
    • View Profile
    • MyScripts
Re: click #contx ?
« Reply #1 on: December 29, 2009, 05:07:33 PM »
0
Hi,

I am not sure if I got your question correct...
but .... click #contx x #conty y
does nothing you expect it might do ...

if you like to make clicks Gump position independant you have to use something like this:

Code: [Select]
; Set the offsets of your clickposition in your gump
Set %offsetX 435
Set %offsetY 300

; Mod the clickposition with the actual Gump Location on screen (#ConPos)
Set %clickposX #ContPosX + %offsetX
Set %clickposY #ContPosY + %offsetY

; Finally run the click command
click %clickposx %clickposY

Most people use a kind of a SUB to simply read out the gump name or size,
to make sure it is the correct  gump and modify the click position before
they perform the click command

cu

Offline CoraginTopic starter

  • Wacko in Pajama's
  • Elite
  • *
  • *
  • Posts: 1641
  • Activity:
    0%
  • Reputation Power: 23
  • Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...
  • Gender: Male
  • It Is What It Is.
  • Respect: +117
  • Referrals: 1
    • View Profile
Re: click #contx ?
« Reply #2 on: December 29, 2009, 05:28:43 PM »
0
Yep thats it, I figured it out lastnight when no on replied lol
Coragin

My Facebook
And now I'm better at doing what ever it is Wolverine does!

Offline camotbik

  • Sr. Member
  • *
  • Posts: 349
  • Activity:
    0%
  • Reputation Power: 3
  • camotbik has no influence.
  • Gender: Male
  • Hello! I'm a UO addict.
  • Respect: +90
  • Referrals: 0
    • View Profile
Re: click #contx ?
« Reply #3 on: December 30, 2009, 05:38:56 AM »
0
Code: [Select]
; Set the offsets of your clickposition in your gump
Where can i get those offset cordinates?
« Last Edit: December 30, 2009, 09:37:40 PM by camotbik »
What you witness -- is whatver..
uogamers hybrid.

Offline rana70

  • Elite
  • *
  • *
  • Posts: 294
  • Activity:
    0%
  • Reputation Power: 5
  • rana70 has no influence.
  • Gender: Male
  • Respect: +75
  • Referrals: 2
    • View Profile
    • MyScripts
Re: click #contx ?
« Reply #4 on: December 30, 2009, 08:44:45 PM »
0
Code: [Select]
; Set the offsets of your clickposition in your gump
[/quote]
Where can i get those offset cordinates?

This "offset" positions are the areas of the buttons you like to click,
when I need to find them I put the gump to the left upper screencorner
(this is sually 0,0 position) and movethe mouse to the button area.
Now you can check the EUOX buttomline 4th box from the left or check the
data in the #CursorPos lines.

cu

Offline camotbik

  • Sr. Member
  • *
  • Posts: 349
  • Activity:
    0%
  • Reputation Power: 3
  • camotbik has no influence.
  • Gender: Male
  • Hello! I'm a UO addict.
  • Respect: +90
  • Referrals: 0
    • View Profile
Re: click #contx ?
« Reply #5 on: December 30, 2009, 09:38:25 PM »
0
Quote
This "offset" positions are the areas of the buttons you like to click,
when I need to find them I put the gump to the left upper screencorner
(this is sually 0,0 position) and movethe mouse to the button area.
Now you can check the EUOX buttomline 4th box from the left or check the
data in the #CursorPos lines.

cu
Thank you for the quick and simple explanation.
« Last Edit: December 31, 2009, 07:25:40 AM by camotbik »
What you witness -- is whatver..
uogamers hybrid.

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13314
  • Activity:
    0%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +3090
  • Referrals: 34
    • View Profile
    • ScriptUO
Re: click #contx ?
« Reply #6 on: December 30, 2009, 11:58:49 PM »
0
Where can i get those offset cordinates?

I wrote a script that does the coordinate generation for you:

http://www.scriptuo.com/index.php?topic=505.0;highlight=offset+click+generator
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline Khameleon

  • Script Tester - Team Leader
  • Elite
  • *
  • *
  • Posts: 2574
  • Activity:
    0%
  • Reputation Power: 30
  • Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!
  • Gender: Male
  • Respect: +465
  • Referrals: 0
    • View Profile
Re: click #contx ?
« Reply #7 on: December 31, 2009, 07:15:29 AM »
0
what I do is write this at the top of a page.

ContPos 0 0
halt

that moves my most top menu to pos 0 0
then I record all of the button locations I need
that fits well with the most common script

Code: [Select]
Sub ClickOffset
set %x #Contposx + %Offsetx
set %y #contPosY + %OffsetY
click %x %y F
Return

Tags: