Select gump before action.

General Injection issues

Moderators: Murderator+, Murderator

Post Reply
Psyny
Posts: 22
Joined: 2004-07-06 07:03:29
Contact:

Select gump before action.

Post by Psyny »

Hail,

Is possible to select the last apeared gump bofore doing an action ?

Like select the gumpo and say "BLA BLA BLA " ?

Coz i need to say how many loops to craft. and only uo.say or print... its make my char say something.
in normal gump it works. but in this one i need to select the box that i will print something.

plz! help ...
Psyny
Posts: 22
Joined: 2004-07-06 07:03:29
Contact:

Post by Psyny »

If its help... i got more technical info:

All commands: ____
1] noclose
2] nomove
3] nodispose
4] page 0
5] resizepic 249 223 5120 280 200
6] text 259 233 45 0
7] text 259 253 45 1
8] text 259 273 45 2
9] text 259 293 45 3
10] text 259 313 45 4
11] text 259 333 45 5
12] text 259 353 45 6
13] gumppic 349 393 2444
14] textentry 359 396 50 25 88 2 7
15] gumppic 251 383 1417
16] text 281 413 88 8
17] button 449 393 2313 2312 1 1109 1

Reply: ___________
[0001] primary reply
Checks&Radios (0)
Entryes (1)
[0002] 7


I need to enter a certai Text in this Text Entry...
In this case 7... but i did it manualy.
i need to automatic enter a number from 1 to 9 in this Text Entry.
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

no way in last official version
Psyny
Posts: 22
Joined: 2004-07-06 07:03:29
Contact:

Post by Psyny »

Hail, i got a way to solve the problem in this case. But i dont know the commands for that.

14] textentry [n]359 396[/n] 50 25 88 2 7

thoose 356 and 396 is the entry position in the screen right ?

I need to know how to make the mouse click in thoose coords ( in case uo.lclick( 359,396 ) )
Psyny
Posts: 22
Joined: 2004-07-06 07:03:29
Contact:

Post by Psyny »

ok ive developed a way ... but i dont know if will work ^-^
i need to go to home to test...
here is

--------------------

entry_text = uo.lastgump("text",14)
entry_x = left(entry_text,13)
entry_x = right(entry_x,3)
entry_y = left(entry_text,17)
entry_y = right(entry_y,3)
entry_x = strtomoney(entry_x) + 10
entry_y = strtomoney(entry_y) + 10

uo.lclick(entry_x,entry_y)
uo.say("10")

---------------------

ive detected the position of the text entry, clicked on it ( now its actived and waiting for a text input ), but i dont know if the uo.say("10") will send the text for textentry or to normal text place.
Psyny
Posts: 22
Joined: 2004-07-06 07:03:29
Contact:

Post by Psyny »

Its dont works =(

Yoko, only uo.lastgump(" ",x) argument possible is 'text' ?
injection have other arguments for lastgump ?
Psyny
Posts: 22
Joined: 2004-07-06 07:03:29
Contact:

Post by Psyny »

well... searching in the forums. its all clear now...
really noway in last published version do to what i want..

Yoko, u have plans for gumps action in future ?
and the uo.lastgump function is in last source code version ?
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

"Mr. Fookes, have you a PLAN?
Do i have a PLAN?
Do i have a PLAN?!
Fookes always have a PLAN!!!" (c) russian cartoon
Post Reply