AustrianOak Posted May 19, 2008 Posted May 19, 2008 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?
zackrspv Posted May 19, 2008 Posted May 19, 2008 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ë ë§§ëñ§ë øƒ !ïƒë.
AustrianOak Posted May 20, 2008 Author Posted May 20, 2008 yeah i was calling it twice, thanks. how can i hyperlink a label in a window?
sandin Posted May 20, 2008 Posted May 20, 2008 #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 Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll
zackrspv Posted May 20, 2008 Posted May 20, 2008 #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ë ë§§ëñ§ë øƒ !ïƒë.
sandin Posted May 21, 2008 Posted May 21, 2008 What's the reasoning behind calling comspec?For me, it works pefectly with ShellExecute("URL")I'm a dos commands fan ^^ Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll
zackrspv Posted May 21, 2008 Posted May 21, 2008 I'm a dos commands fan ^^lol -_-------__--_-_-____---_-_--_-__-__-_ ^^€ñ†®øÞÿ ë×阮§ wï†høµ† ƒë@®, wï†høµ† †ïmë, @ñd wï†høµ† @ †ïmïdï†ÿ ƒø® !ïƒë. €×阮 ñø†, bµ† ïñ§†ë@d wï†hïñ, ñ@ÿ, †h®øµghøµ† †hë ë§§ëñ§ë øƒ !ïƒë.
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