| Yoko http://forum.yoko.com.ua/ |
|
| Get the cordenades of a button on a gump... http://forum.yoko.com.ua/viewtopic.php?f=17&t=13277 |
Page 1 of 1 |
| Author: | Injectioner [ 2008-02-21 04:40:34 ] |
| Post subject: | Get the cordenades of a button on a gump... |
Example: Code: 9] button 246 277 2474 2473 1 0 188 I wanna know the cordanedes of this button and then, press this button. How can I discovery his cordenades? Thanks. []'s |
|
| Author: | Destruction [ 2008-02-21 09:25:48 ] |
| Post subject: | |
Use uo.lastgump( 'command', 9 ) and parse line. |
|
| Author: | Grin [ 2008-02-21 11:54:14 ] |
| Post subject: | |
Use uo.lastgump( 'command', 8 ) там в инфо гамп индекс с 1 идет, а должен с 0. |
|
| Author: | Injectioner [ 2008-02-22 18:07:39 ] |
| Post subject: | |
To click on this gump, for example can I use? Code: Uo.LClick('uo.lastgump( 'command', 8 )')Other doubt: Code: Buttons: ________ The button 1, in the end have the 319:458. Is this the cordenades of the button? x319 y458... Thanks. []'s ps: the coordenates are random, because of that I can't put the coordenates directly on the Uo.LClic(). |
|
| Author: | Destruction [ 2008-02-22 19:11:21 ] |
| Post subject: | |
You must get coordinates from string. Use this function: Code: ; explode( string string, string pattern, number num ) For example: Code: var button_string = uo.lastgump( 'button', 8 ) Remember - it's only example! |
|
| Author: | Edred [ 2008-02-22 19:20:25 ] |
| Post subject: | |
Injectioner wrote: To click on this gump, for example can I use? Code: Uo.LClick('uo.lastgump( 'command', 8 )')No. You can use Code: var bstring Analyse it. You can use next functions for parse: Code: LTrim - remove left spaces |
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|