d4rk Posted February 23, 2008 Posted February 23, 2008 2, i have a msgbox with ok and cancel choices, so how to give the event on each choices ? i've found but can't find any answer ... [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys
Developers Jos Posted February 23, 2008 Developers Posted February 23, 2008 (edited) Which part isn't clear for you in the helpfile ? example: $rc = MsgBox(1,'test','test') If $rc = 1 Then ;ck is clicked EndIf Edited February 23, 2008 by Jos 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.
d4rk Posted February 23, 2008 Author Posted February 23, 2008 Which part isn't clear for you in the helpfile ?The Return Value, i see the value return for each choice but i can't find the way how to put them. this's my code, it can't show the messagebox with each choice func shutdn($a) $a=msgbox(4,"Hey","2222")if $a=1 Thenmsgbox(1,"ok","ok")Elsemsgbox(1,"cancel","cancel")EndFuncwhile 1Hotkeyset("^q","shutdn")WEnd [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys
Developers Jos Posted February 23, 2008 Developers Posted February 23, 2008 Not sure what you are asking here . 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.
d4rk Posted February 23, 2008 Author Posted February 23, 2008 The Return Value, i see the value return for each choice but i can't find the way how to put them. this's my code, it can't show the messagebox with each choice func shutdn($a) $a=msgbox(4,"Hey","2222")if $a=1 Thenmsgbox(1,"ok","ok")Elsemsgbox(1,"cancel","cancel")EndFuncwhile 1Hotkeyset("^q","shutdn")WEndYoh, i forget an end if [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys
d4rk Posted February 23, 2008 Author Posted February 23, 2008 Which part isn't clear for you in the helpfile ? example: $rc = MsgBox(1,'test','test') If $rc = 1 Then ;ck is clicked EndIf can you put a messagbox at ;ck is clicked ? [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys
rmarino Posted February 23, 2008 Posted February 23, 2008 can you put a messagbox at ;ck is clicked ?Each button has it's own return value that you can use to look for in your script:$s = MsgBox(2, "Test", "Test")Select Case $s = 3 MsgBox(0, "", "ABORT") Case $s = 4 MsgBox(0, "", "RETRY") Case $s = 5 MsgBox(0, "", "IGNORE")EndSelectQuick script to show how to use them
d4rk Posted February 23, 2008 Author Posted February 23, 2008 Each button has it's own return value that you can use to look for in your script:$s = MsgBox(2, "Test", "Test")Select Case $s = 3 MsgBox(0, "", "ABORT") Case $s = 4 MsgBox(0, "", "RETRY") Case $s = 5 MsgBox(0, "", "IGNORE")EndSelectQuick script to show how to use themthanks, but isn't it work with my code? (with If structure ?) [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys
MHz Posted February 23, 2008 Posted February 23, 2008 (edited) thanks, but isn't it work with my code? (with If structure ?)I did that for you $a = msgbox(4,"Hey","2222") If $a = 1 Then MsgBox(0x40000, '' , 'OK') ElseIf $a = 2 Then MsgBox(0x40000, '' , 'CANCEL') ElseIf $a = 3 Then MsgBox(0x40000, '' , 'ABORT') ElseIf $a = 4 Then MsgBox(0x40000, '' , 'RETRY') ElseIf $a = 5 Then MsgBox(0x40000, '' , 'IGNORE') ElseIf $a = 6 Then MsgBox(0x40000, '' , 'YES') ElseIf $a = 7 Then MsgBox(0x40000, '' , 'NO') ElseIf $a = 10 Then MsgBox(0x40000, '' , 'TRY AGAIN') ElseIf $a = 11 Then MsgBox(0x40000, '' , 'CONTINUE ') EndIf Edit: With using the flag 4, then you have the option of Yes and No. Edited February 23, 2008 by MHz
d4rk Posted February 23, 2008 Author Posted February 23, 2008 Thanks all [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys
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