randomboy Posted August 2, 2006 Posted August 2, 2006 (edited) I have this problem, I have this small GUI with a button in the middle. The button has to close the GUI. The code below is what I have at the moment. #include <GUIConstants.au3> Global $IniFile Global $GUIWidth Global $GUIHeight $GUIWidth = 240 $GUIHeight = 240 $Randomboy = GUICreate("Randomboy", $GUIWidth, $GUIHeight) $Randomboy_Pos = WinGetPos($Randomboy, "") GUISetState(@SW_SHOW) $button_1 = GUICtrlCreateButton ( "", 105, 90, 30, 30) GUICtrlCreateLabel("DO NOT PRESS", 80, 130) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $button_1 GUIDelete EndSelect Wend While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend GUIDelete() The GUIDelete function doesn't work(line 18) This is the error message I get. Line 18 (C:\.......) GUIDelete ^ERROR Error: Error parsing function call. Can anyone help me resolve this. Thanks in advance. Edited August 2, 2006 by randomboy I got inside my house, leant back on my bed and began to think...where the hell was my roof?!?!24 hours in a day....24 beers in a case....Coincidence??
/dev/null Posted August 2, 2006 Posted August 2, 2006 The GUIDelete function doesn't work(line 18)well, look at line 18 and you will see what's wrong. __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *
randomboy Posted August 2, 2006 Author Posted August 2, 2006 OHHHHH Right the brackets. I missed that thanks!! I got inside my house, leant back on my bed and began to think...where the hell was my roof?!?!24 hours in a day....24 beers in a case....Coincidence??
BPBNA Posted August 2, 2006 Posted August 2, 2006 (edited) I'm surprised people haven't started refusing to help this guy... That probably isnt the real code and is probably just part of his malware program. Edit: BTW, you have an unused variable in there... $IniFile, didn't know you needed INIs to close a GUI. Edited August 2, 2006 by BPBNA
randomboy Posted August 2, 2006 Author Posted August 2, 2006 ARE YOU ACCUSING ME OF WRITING MALWARE??? I got inside my house, leant back on my bed and began to think...where the hell was my roof?!?!24 hours in a day....24 beers in a case....Coincidence??
/dev/null Posted August 2, 2006 Posted August 2, 2006 (edited) ARE YOU ACCUSING ME OF WRITING MALWARE???Accusing? No. We are SURE you do!Kurt Edited August 2, 2006 by /dev/null __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *
/dev/null Posted August 2, 2006 Posted August 2, 2006 (edited) I wouldn't know where to startwell, I would say these topics are a pretty good start, right?Key log_IspressedAutomatically executing programDisable CTRL+ALT+DELEDIT: He deleted his post, while I was answering.Kurt Edited August 2, 2006 by /dev/null __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *
randomboy Posted August 2, 2006 Author Posted August 2, 2006 I got inside my house, leant back on my bed and began to think...where the hell was my roof?!?!24 hours in a day....24 beers in a case....Coincidence??
nitekram Posted August 2, 2006 Posted August 2, 2006 If you were to look at all his post - I think everyone will agree - the user is up to no good.http://www.autoitscript.com/forum/index.ph...mp;highlite=%2B 2¢ All by me:"Sometimes you have to go back to where you started, to get to where you want to go." "Everybody catches up with everyone, eventually" "As you teach others, you are really teaching yourself." From my dad "Do not worry about yesterday, as the only thing that you can control is tomorrow." WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2 AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit Docs SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language Programming Tips Excel Changes ControlHover.UDF GDI_Plus Draw_On_Screen GDI Basics GDI_More_Basics GDI Rotate GDI Graph GDI CheckExistingItems GDI Trajectory Replace $ghGDIPDll with $__g_hGDIPDll DLL 101? Array via Object GDI Swimlane GDI Plus French 101 Site GDI Examples UEZ GDI Basic Clock GDI Detection Ternary operator
Xenobiologist Posted August 2, 2006 Posted August 2, 2006 Hi, I don't understand why so many scriptKids try to make really bad scripts. Scripting something for playing a joke to a friend - okay. Creating bots for cheating in games - okay. But this stuff is no good for anybody. So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times
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