Jump to content
Sign in to follow this  
AustrianOak

help with msgbox

Recommended Posts

AustrianOak

Func ExportDecision()
    $exportmsg = MsgBox(32 + 3 , "Export Buddies", "Export to .txt (Yes) or to .csv (No)?")
    If $exportmsg = 6 Then; pressed yes
        ExportBuddies()
    ElseIf $exportmsg = 7 Then; pressed no
        ExportBuddiesCSV()
    Else
    EndIf
EndFunc

when the msgbox comes up for me to click yes, no, or cancel, when i click no, it comes up with another one and i have to click no again. so basically whats happening is i have to click whatever button i want TWICE for it to do anything. i have to click no twice to export it as a csv and i have to click cancel twice to close the msgbox.

help?

Share this post


Link to post
Share on other sites
zackrspv

Func ExportDecision()
    $exportmsg = MsgBox(32 + 3 , "Export Buddies", "Export to .txt (Yes) or to .csv (No)?")
    If $exportmsg = 6 Then; pressed yes
        ExportBuddies()
    ElseIf $exportmsg = 7 Then; pressed no
        ExportBuddiesCSV()
    Else
    EndIf
EndFunc

when the msgbox comes up for me to click yes, no, or cancel, when i click no, it comes up with another one and i have to click no again. so basically whats happening is i have to click whatever button i want TWICE for it to do anything. i have to click no twice to export it as a csv and i have to click cancel twice to close the msgbox.

help?

This code here:

$exportmsg = MsgBox(32 + 3 , "Export Buddies", "Export to .txt (Yes) or to .csv (No)?")
    If $exportmsg = 6 Then; pressed yes
         ExportBuddies()
    ElseIf $exportmsg = 7 Then; pressed no
         ExportBuddiesCSV()
    Else
    EndIf

Only pops up once for me.

Perhaps you are calling it more than one time, as it's in a function. Show us the rest of the code, or at least the part of the code that calls the function for your message box :)


-_-------__--_-_-____---_-_--_-__-__-_ ^^€ñ†®øÞÿ ë×阮§ wï†høµ† ƒë@®, wï†høµ† †ïmë, @ñd wï†høµ† @ †ïmïdï†ÿ ƒø® !ïƒë. €×阮 ñø†, bµ† ïñ§†ë@d wï†hïñ, ñ@ÿ, †h®øµghøµ† †hë 맧ëñ§ë øƒ !ïƒë.

Share this post


Link to post
Share on other sites
AustrianOak

yeah i was calling it twice, thanks.

how can i hyperlink a label in a window?

Share this post


Link to post
Share on other sites
sandin
zackrspv

#include <GUIConstants.au3>
$Form1 = GUICreate("AForm1", 625, 445, 193, 115)
$Label1 = GUICtrlCreateLabel("www.google.com", 48, 250, 150, 17)
GUICtrlSetCursor (-1, 0)
GUICtrlSetColor(-1, 0x0000cd)
GUISetState(@SW_SHOW)
While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Label1
            Run(@ComSpec & " /c " & "start www.google.com", "", @SW_HIDE)
    EndSwitch
WEnd
What's the reasoning behind calling comspec?

For me, it works pefectly with ShellExecute("URL")


-_-------__--_-_-____---_-_--_-__-__-_ ^^€ñ†®øÞÿ ë×阮§ wï†høµ† ƒë@®, wï†høµ† †ïmë, @ñd wï†høµ† @ †ïmïdï†ÿ ƒø® !ïƒë. €×阮 ñø†, bµ† ïñ§†ë@d wï†hïñ, ñ@ÿ, †h®øµghøµ† †hë 맧ëñ§ë øƒ !ïƒë.

Share this post


Link to post
Share on other sites
sandin
zackrspv

I'm a dos commands fan ^^

lol

-_-------__--_-_-____---_-_--_-__-__-_ ^^€ñ†®øÞÿ ë×阮§ wï†høµ† ƒë@®, wï†høµ† †ïmë, @ñd wï†høµ† @ †ïmïdï†ÿ ƒø® !ïƒë. €×阮 ñø†, bµ† ïñ§†ë@d wï†hïñ, ñ@ÿ, †h®øµghøµ† †hë 맧ëñ§ë øƒ !ïƒë.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.