Jump to content

Recommended Posts

Posted

im new to all this so ive started experimenting with stuff! so far my compilation is this!

MsgBox ( 0, "mouse position", "start")

MouseGetPos ( 0 )

MsgBox ( 1, "mouse position", "finish")

what i want to do is get the position co-ords pop up in a box for me to let me know what they were..

yet im confused and dont know how to do tht!! any help would be great... thanks

Posted

You post in the General Help and Support forum so we all know that you need help ;)

Please use meaningful thread titles.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

thanks for all you help#1 new thing im doing now! currently im trying to do a message box that uses another message box depending on the last choice!

$a = "are you feeling ok today?"

$b = "sorry to hear that!"

$c = "im glad!"

MsgBox (4,"test",$a )

MsgBox (0,"test",$b )

MsgBox (0,"test",$c )

thts me so far! what i dont uderstand is 'If' i think its that i need to use! what i need is a way to get b and c as the response to question a! im just not sure what i put in for this! ive looked through if both "else" "than" styles nothing seems to help!

Posted

  On 9/13/2012 at 11:03 AM, 'flatener123 said:

currently im trying to do a message box that uses another message box depending on the last choice!

Whether or not this is what you're looking for, it's still something you can learn from since you're just getting started:

$a = "are you feeling ok today?"
$b = "sorry to hear that!"
$c = "im glad!"

$response = MsgBox (4,"test",$a ) ;Yes = 6, No = 7

If $response = 7 Then
MsgBox (0,"test",$b )
ElseIf $response = 6 Then
MsgBox (0,"test",$c )
EndIf
Posted

  On 9/13/2012 at 7:54 PM, 'MrMitchell said:

Whether or not this is what you're looking for, it's still something you can learn from since you're just getting started:

$a = "are you feeling ok today?"
$b = "sorry to hear that!"
$c = "im glad!"

$response = MsgBox (4,"test",$a ) ;Yes = 6, No = 7

If $response = 7 Then
MsgBox (0,"test",$b )
ElseIf $response = 6 Then
MsgBox (0,"test",$c )
EndIf

Or switch...case... the msgbox.. but eh... tomato - potato

Switch msgbox(4 + 32, "test", "Are you feeling ok today?")
    Case 6
        $msg = "I'm glad!"
    Case 7
        $msg= "Sorry to hear that..."
EndSwitch

msgbox(48,"test",$msg)
  Reveal hidden contents

 

Posted (edited)

(going to complicate things =D)

You can have a little fun with this...

Switch msgbox(4 + 32, "test", "Are you feeling ok today?")
    Case 6
        $msg = _Positive_Response()
    Case 7
        $msg = _Negative_Response()
EndSwitch

msgbox(0,"test",$msg)


Func _Positive_Response()
    Local $sPositive[5]
    $sPositive[0] = UBound($sPositive) - 1
    $sPositive[1] = "That's great!"
    $sPositive[2] = "Awesome!"
    $sPositive[3] = "Super!"
    $sPositive[4] = "What if I told you that I broke your computer?"

    Return $sPositive[Random(1, $sPositive[0], 1)]
EndFunc

Func _Negative_Response()
    Local $sNegative[5]
    $sNegative[0] = UBound($sNegative) - 1
    $sNegative[1] = "I'm sorry to hear that."
    $sNegative[2] = "I hope you feel better."
    $sNegative[3] = "That sucks..."
    $sNegative[4] = "Grow a pair and get over it!"

    Return $sNegative[Random(1, $sNegative[0], 1)]
EndFunc
Edited by mechaflash213
  Reveal hidden contents

 

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
  • Recently Browsing   0 members

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