Jump to content

Help with a box message


Recommended Posts

this is my problem: i need a message box, in this would be appear a question for a number. the same number must be write like "99583" in the code. Thanks Champs....

Códe:

Opt("WinWaitDelay",100)

Opt("WinTitleMatchMode",4)

Opt("WinDetectHiddenText",1)

Opt("MouseCoordMode",0)

WinWait("WMSp.rsf - WRQ Reflection - IBM 5250 Terminal","Standard")

If Not WinActive("WMSp.rsf - WRQ Reflection - IBM 5250 Terminal","Standard") Then WinActivate("WMSp.rsf - WRQ Reflection - IBM 5250 Terminal","Standard")

WinWaitActive("WMSp.rsf - WRQ Reflection - IBM 5250 Terminal","Standard")

MsgBox()

Send("95{ENTER}2dist1a1{ENTER}{DOWN}{DOWN}{DOWN}1{ENTER}{DOWN}{TAB}{TAB}")

Send("99583")

Send("{TAB}{ENTER}{F3}{ENTER}8{ENTER}{F3}")

Link to comment
Share on other sites

Umm, what? Do yo mean you need an input box to accept a number? or do you just want a message box with that number to popup?

;inputbox
$variable = InputBox("Title","What number?")
;messagebox
MsgBox( 0, "Title", "Number is 99583")

Edit: forgot a quote :blush:

Edited by fear1313

[center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw

Link to comment
Share on other sites

Is there a question in there? :shocked:

One thing I notice is that you must use at least 3 parameters with MsgBox():

Displays a simple message box with optional timeout.

MsgBox ( flag, "title", "text" [, timeout] )

:(
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Is there a question in there? :shocked:

One thing I notice is that you must use at least 3 parameters with MsgBox():

:(

When i write in the box message the number (exemple "xxxxx"), that number is write in the line 11. Exemple:

Send ("xxxxx")

Thanks...

Edited by MarcoCastro
Link to comment
Share on other sites

So you want an inputbox? Is this what you want?

Opt("WinWaitDelay",100) 
Opt("WinTitleMatchMode",4) 
Opt("WinDetectHiddenText",1) 
Opt("MouseCoordMode",0) 
WinWait("WMSp.rsf - WRQ Reflection - IBM 5250 Terminal","Standard") 
If Not WinActive("WMSp.rsf - WRQ Reflection - IBM 5250 Terminal","Standard") Then WinActivate("WMSp.rsf - WRQ Reflection - IBM 5250 Terminal","Standard") 
WinWaitActive("WMSp.rsf - WRQ Reflection - IBM 5250 Terminal","Standard") 
MsgBox() 
Send("95{ENTER}2dist1a1{ENTER}{DOWN}{DOWN}{DOWN}1{ENTER}{DOWN}{TAB}{TAB}") 
$number = InputBox("Title","Input the number!")
Send($number)
Send("{TAB}{ENTER}{F3}{ENTER}8{ENTER}{F3}")

Run that and see if it's what you want...

[center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw

Link to comment
Share on other sites

  • Developers

When i write in the box message the number (exemple "xxxxx"), that number is write in the line 11. Exemple:

Send ("xxxxx")

Open the Helpfile an look at the InputBox() Function. That will allow you to prompt for a number and store that in a variable.

This Variable can be used in teh Send() command.

Thanks... and sorry my english is a "basket case"...

Yea this is a clear case of a basket :shocked:

Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Opt("WinWaitDelay",100)

Opt("WinTitleMatchMode",4)

Opt("WinDetectHiddenText",1)

Opt("MouseCoordMode",0)

$number = InputBox("Title","Input the number!")

WinWait("WMSp.rsf - WRQ Reflection - IBM 5250 Terminal","Standard")

If Not WinActive("WMSp.rsf - WRQ Reflection - IBM 5250 Terminal","Standard") Then WinActivate("WMSp.rsf - WRQ Reflection - IBM 5250 Terminal","Standard")

WinWaitActive("WMSp.rsf - WRQ Reflection - IBM 5250 Terminal","Standard")

MsgBox()

Send("95{ENTER}2dist1a1{ENTER}{DOWN}{DOWN}{DOWN}1{ENTER}{DOWN}{TAB}{TAB}")

Send($number)

Send("{TAB}{ENTER}{F3}{ENTER}8{ENTER}{F3}")

Link to comment
Share on other sites

Thanks... everyday will be learn something..... Im an indian ...jjajaajajajajajaajojojoj :shocked:

How do you compile? Are you big-indian or little-indian?

:(

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

How do you compile? Are you big-indian or little-indian?

:shocked:

Big indian is bigger than little indian... ( chapter 2 - english for a stupid people )

Pdta: Are you try in spanish? its no easy.... ( you will be a stranger in a town)...

Edited by MarcoCastro
Link to comment
Share on other sites

Big indian is bigger than little indian... ( chapter 2 - english for a stupid people )

Pdta: Are you try in spanish? its no easy.... ( you will be a stranger in a town)...

There are plenty of people on these forums that natively never learned English.. Like me and JdeB for example, and sometimes our English is better then those native English!! (Often it is not though.. )

You could start by installing a spell checker.. :shocked:

Link to comment
Share on other sites

There are plenty of people on these forums that natively never learned English.. Like me and JdeB for example, and sometimes our English is better then those native English!! (Often it is not though.. )

You could start by installing a spell checker.. :shocked:

Ok, thanks...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...