Yoko

All sides of Injection
It is currently 2025-10-16 19:48:52

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
 Post subject: LClick lastgum
PostPosted: 2009-07-16 23:37:35 
Offline

Joined: 2005-07-28 20:31:08
Posts: 25
How can I do a LClick on the lastgump that appear on the screen?

Ex:

Code:
_____infogump_______
serial   0x00a9874e
gumpid   0x001224f1
X   0
Y   0
108   packet size
0   reply packet size
Buttons: ________
 page 0
    1 [    1] image=0x1582 at 3:510
Checks&Radios: __
Entryes: ________
All commands: ____
    1] NoClose
    2] button 3 510 5505 5506 1 0 1
    3] text 0 570 38 0
Text: ____________
    0] Anti Macro


I Know that this gump is located at X3 Y510, but I want a script that take the cordenates automaticaly.

Thanks.

[]'s

_________________
Image
Image
Image


Top
   
 Post subject:
PostPosted: 2009-08-09 13:34:43 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Code:
sub antimacro()
    var coord = ""
    repeat
        if uo.lastgump( 'replyed' ) == 0 and uo.lastgump( 'text', 0 ) == 'Anti Macro' then
            coord = uo.lastgump( 'command', 0 )
            coord = explode( ' ', coord )
            uo.lclick( val( coord[1] ), val( coord[2] ) )
            while uo.lastgump( 'replyed' ) == 0
                wait( 100 )
            wait( 100 )
        endif
        wait( 100 )
    until false
endsub

Not tested, written in reply window after long rest from the scripts.

sub explode can be found on this forum.

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited