MarcoCastro Posted April 11, 2007 Share Posted April 11, 2007 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 More sharing options...
BillLuvsU Posted April 11, 2007 Share Posted April 11, 2007 (edited) 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 April 11, 2007 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 More sharing options...
PsaltyDS Posted April 11, 2007 Share Posted April 11, 2007 Is there a question in there? 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 More sharing options...
MarcoCastro Posted April 11, 2007 Author Share Posted April 11, 2007 (edited) Is there a question in there? 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 April 11, 2007 by MarcoCastro Link to comment Share on other sites More sharing options...
BillLuvsU Posted April 11, 2007 Share Posted April 11, 2007 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 More sharing options...
MarcoCastro Posted April 11, 2007 Author Share Posted April 11, 2007 (edited) Thanks team... Edited April 11, 2007 by MarcoCastro Link to comment Share on other sites More sharing options...
BillLuvsU Posted April 11, 2007 Share Posted April 11, 2007 ... [center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw Link to comment Share on other sites More sharing options...
Developers Jos Posted April 11, 2007 Developers Share Posted April 11, 2007 (edited) 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 Edited April 11, 2007 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 More sharing options...
jvanegmond Posted April 11, 2007 Share Posted April 11, 2007 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}") github.com/jvanegmond Link to comment Share on other sites More sharing options...
BillLuvsU Posted April 11, 2007 Share Posted April 11, 2007 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 Link to comment Share on other sites More sharing options...
MarcoCastro Posted April 11, 2007 Author Share Posted April 11, 2007 nice proxy there manadar! lol. evan used the same prompt.thaks you all the best.. Link to comment Share on other sites More sharing options...
jvanegmond Posted April 11, 2007 Share Posted April 11, 2007 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.. github.com/jvanegmond Link to comment Share on other sites More sharing options...
MarcoCastro Posted April 12, 2007 Author Share Posted April 12, 2007 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.. Thanks... everyday will be learn something..... Im an indian ...jjajaajajajajajaajojojoj Link to comment Share on other sites More sharing options...
PsaltyDS Posted April 12, 2007 Share Posted April 12, 2007 Thanks... everyday will be learn something..... Im an indian ...jjajaajajajajajaajojojoj 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 More sharing options...
MarcoCastro Posted April 12, 2007 Author Share Posted April 12, 2007 (edited) How do you compile? Are you big-indian or little-indian? 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 April 12, 2007 by MarcoCastro Link to comment Share on other sites More sharing options...
jvanegmond Posted April 12, 2007 Share Posted April 12, 2007 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.. github.com/jvanegmond Link to comment Share on other sites More sharing options...
MarcoCastro Posted April 12, 2007 Author Share Posted April 12, 2007 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.. Ok, thanks... Link to comment Share on other sites More sharing options...
PsaltyDS Posted April 12, 2007 Share Posted April 12, 2007 Just so you know that was only meant as a corny programmer joke: Big-endian, Little-endian. 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 More sharing options...
MarcoCastro Posted April 12, 2007 Author Share Posted April 12, 2007 Just so you know that was only meant as a corny programmer joke: Big-endian, Little-endian. I not, but it will look for it about that Link to comment Share on other sites More sharing options...
jvanegmond Posted April 12, 2007 Share Posted April 12, 2007 Just so you know that was only meant as a corny programmer joke: Big-endian, Little-endian. Ok, that was BAD.. github.com/jvanegmond Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now