The online racing simulator
How do i get a pop up like this? (I have added a img)


How do i get something like that?
-
(Heiko1) DELETED by Heiko1
Quote from stuntguy3000 :

How do i get something like that?

Hi,
You can do this with LFSLapper

openPrivTextButton( "button_ID",origL,origT,$wide_button,$hight_button,5,96,"text in chat window","Text in button",$max_lenght_of_input,Goto_this_Sub );

Sub Goto_this_Sub( $myVar )
privMsg( "$myVar = " . $myVar );
EndSub

Quote from stuntguy3000 :[img]

How do i get something like that?

What open source project are you using as base for your insim app?
Have you made your own?

When you ask a question:
1. Check for other similar threads;
2. Provide as much details as you can;
3. It would be good if you provide source code of a similar action, so other people can give you more correct answers.

And insim.txt says it. Also in case you are using LFS_External as a base - it's awfully obvious there.

All you have to do is put some effort in it yourself.
Quote from broken :What open source project are you using as base for your insim app?
Have you made your own?

When you ask a question:
1. Check for other similar threads;
2. Provide as much details as you can;
3. It would be good if you provide source code of a similar action, so other people can give you more correct answers.

And insim.txt says it. Also in case you are using LFS_External as a base - it's awfully obvious there.

All you have to do is put some effort in it yourself.

I am using the LC insim as a bace source if that will help.
The open source Lc InSim app that was posted the last time was using LFS_External. And as I said - it's pretty obvious on there how to get a input* button. All you have to do is play a little with the CreateButton function.
He wants to make a button that is essentially a text input, not just a regular button. (based on the image he posted).

You can usually find all the answers you're looking for in [YOURLFSFOLDER]/docs/insim.txt

struct IS_BTN // BuTtoN - button header - followed by 0 to 240 characters
{
byte Size; // 12 + TEXT_SIZE (a multiple of 4)
byte Type; // ISP_BTN
byte ReqI; // non-zero (returned in IS_BTC and IS_BTT packets)
byte UCID; // connection to display the button (0 = local / 255 = all)

byte ClickID; // button ID (0 to 239)
byte Inst; // some extra flags - see below
byte BStyle; // button style flags - see below
byte TypeIn; // max chars to type in - see below

byte L; // left : 0 - 200
byte T; // top : 0 - 200
byte W; // width : 0 - 200
byte H; // height : 0 - 200

// char Text[TEXT_SIZE]; // 0 to 240 characters of text
};

Most important of the above being:

byte TypeIn; // max chars to type in - see below


// TypeIn byte : if set, the user can click this button to type in text.

// Lowest 7 bits are the maximum number of characters to type in (0 to 95)
// Highest bit (128) can be set to initialise dialog with the button's text

// On clicking the button, a text entry dialog will be opened, allowing the specified number of
// characters to be typed in. The caption on the text entry dialog is optionally customisable using
// Text in the IS_BTN packet. If the first character of IS_BTN's Text field is zero, LFS will read
// the caption up to the second zero. The visible button text then follows that second zero.

I don't know if you can do it with lapper's scripting, you may need to edit the actual source code.
LFS_External != LFSLapper
Quote from broken :LFS_External != LFSLapper

no its not lfslapper its the old lc insim as a base
Quote from stuntguy3000 :no its not lfslapper its the old lc insim as a base

Exactly what I was pointing out.
By the way, remember: You are using LFS_External. This way much more people will understand you, instead of saying "old lc insim".
Quote from broken :Exactly what I was pointing out.
By the way, remember: You are using LFS_External. This way much more people will understand you, instead of saying "old lc insim".

lol k

FGED GREDG RDFGDR GSFDG