Jump to content
Sign in to follow this  
MarcoCastro

Help with a box message

Recommended Posts

MarcoCastro

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}")

Share this post


Link to post
Share on other sites
BillLuvsU

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

Share this post


Link to post
Share on other sites
PsaltyDS

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

Share this post


Link to post
Share on other sites
MarcoCastro

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

Share this post


Link to post
Share on other sites
BillLuvsU

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

Share this post


Link to post
Share on other sites
MarcoCastro

Thanks team...

Edited by MarcoCastro

Share this post


Link to post
Share on other sites
BillLuvsU

...


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

Share this post


Link to post
Share on other sites
Jos

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

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
jvanegmond

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}")

Share this post


Link to post
Share on other sites
BillLuvsU

nice proxy there manadar! lol. evan used the same prompt.


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

Share this post


Link to post
Share on other sites
MarcoCastro

nice proxy there manadar! lol. evan used the same prompt.

thaks you all the best..

Share this post


Link to post
Share on other sites
jvanegmond

nice proxy there manadar! lol. evan used the same prompt.

Haha :( I just moved the line, because I figured he expected it to ask for the number first, and then wait for the window to become active.. :shocked:

Share this post


Link to post
Share on other sites
MarcoCastro

Haha :P I just moved the line, because I figured he expected it to ask for the number first, and then wait for the window to become active.. :(

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

Share this post


Link to post
Share on other sites
PsaltyDS

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

Share this post


Link to post
Share on other sites
MarcoCastro

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

Share this post


Link to post
Share on other sites
jvanegmond

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:

Share this post


Link to post
Share on other sites
MarcoCastro

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...

Share this post


Link to post
Share on other sites
MarcoCastro

Just so you know that was only meant as a corny programmer joke: Big-endian, Little-endian.

:shocked:

I not, but it will look for it about that

Share this post


Link to post
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
Sign in to follow this  

×