Sign in to follow this  
Followers 0
flatener123

need help!

9 posts in this topic

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

Share this post


Link to post
Share on other sites



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:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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)

Spoiler

“Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.”

 

Share this post


Link to post
Share on other sites

#9 ·  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

Spoiler

“Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.”

 

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  
Followers 0