p00pies Posted February 8, 2010 Share Posted February 8, 2010 Ok Im working on what would be considered a simple script but for the life of me I cannot figure out why I keep getting errors. I have tried everyway I can think of to resolve them and now I turn to you all for assistance. This is the errorI get from the 2 below ERROR: syntax error Global $Location[1.1] = ( This is what Im working on so far Global $Clientwidth = 1158 Global $Clientheight = 892 Global $pause = 0 Global $Mousespeed = 0 Global $Location[1.1] = 100, 378 Global $Location[1.2] = 100, 397 Global $Location[2.1] = 100, 416 Global $Location[2.2] = 100, 435 Global $Location[3.1] = 100, 455 Global $Location[3.2] = 100, 473 Global $Location[4.1] = 100, 493 Global $Location[4.2] = 100, 512 Global $Location[5.1] = 100, 531 Global $Location[5.2] = 100, 550 Global $Pixel = 0x050505 I have tried it like this and like below Global $Clientwidth = 1158 Global $Clientheight = 892 Global $pause = 0 Global $Mousespeed = 0 Global $Location[1.1] = (100, 378) Global $Location[1.2] = (100, 397) Global $Location[2.1] = (100, 416) Global $Location[2.2] = (100, 435) Global $Location[3.1] = (100, 455) Global $Location[3.2] = (100, 473) Global $Location[4.1] = (100, 493) Global $Location[4.2] = (100, 512) Global $Location[5.1] = (100, 531) Global $Location[5.2] = (100, 550) Global $Pixel = 0x050505 Also I have been working on a Pause / Terminate function that works just fine on one script that I wrote but will not work on another script even though I copied and pasted it. HotKeySet("{Pause}", "Pause") HotKeySet("{Esc}", "Terminate") I think Im doing it correctly but I keep getting an error ERROR: Terminate(): undefined function. HotKeySet("{Esc}", "Terminate") and ERROR: Pause(): undefined function. HotKeySet("{Pause}", "Pause") Func Pause() TrayTip("PAUSE", "The Script Has Been Paused", 3) If $pause = 1 Then $pause = 0 Else $pause = 1 EndIf EndFunc ;==>Pause Func Terminate() Exit 0 EndFunc ;==>Terminate Link to comment Share on other sites More sharing options...
Minikori Posted February 8, 2010 Share Posted February 8, 2010 You're not declaring arrays properly, read more about them in the help file. As far as the pause function goes, I'm not quite sure. For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com Link to comment Share on other sites More sharing options...
bogQ Posted February 8, 2010 Share Posted February 8, 2010 #include <Array.au3> Dim $Grid[5][2]=[ _ [100, 378], _ [100, 397], _ [100, 416], _ [100, 435], _ [100, 455] _ ] _ArrayDisplay($Grid) for pause and terminate pls post whall the script that have that error so that we can test it and see where is the problem TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.  Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted February 9, 2010 Share Posted February 9, 2010 @p00piesIs that supposed to be an array? What an abomination. You should really read the helpfile. Or in the case of arrays, the wiki. Array Tutorial. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
p00pies Posted February 9, 2010 Author Share Posted February 9, 2010 @p00piesIs that supposed to be an array? What an abomination. You should really read the helpfile. Or in the case of arrays, the wiki. Array Tutorial.Thank you for the constructive criticism but it is not an array. They are cords for a mouse to move along. If you have any children may god help them. Link to comment Share on other sites More sharing options...
JohnOne Posted February 9, 2010 Share Posted February 9, 2010 I think what AdmiralAlkex was saying (just before pointing you to a good tutorial) was, It looks like no standard autoit syntax, while resembling a terrible attempt at populating an undeclared array. AutoIt Absolute Beginners  Require a serial  Pause Script  Video Tutorials by Morthawt  ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted February 9, 2010 Share Posted February 9, 2010 Thank you for the constructive criticism but it is not an array. They are cords for a mouse to move along. If you have any children may god help them.If it's not an array and not a variable then what the hell are you doing? I feel sorry for your parents. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
p00pies Posted February 9, 2010 Author Share Posted February 9, 2010 If it's not an array and not a variable then what the hell are you doing? I feel sorry for your parents.Dude if you feel the need to be a pompus ass then fine please do so on others. Last I checked this was posted to the "general help and support" forum not the "pompus jack ass" forum. Please forgive me if I read that wrong. If this is the kind of treatment you give people then it's no wonder as to why people leave here after a short time, as far as help is concerned I will gladly find it else where thank you all for your time. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted February 9, 2010 Share Posted February 9, 2010 (edited) Dude if you feel the need to be a pompus ass then fine please do so on others. Last I checked this was posted to the "general help and support" forum not the "pompus jack ass" forum. Please forgive me if I read that wrong. If this is the kind of treatment you give people then it's no wonder as to why people leave here after a short time, as far as help is concerned I will gladly find it else where thank you all for your time.I asked if it is an array. How can that be a crime? I told you to read the tutorial if it is. What's wrong with that?If you understood arrays then you too would know that it's an abomination, so it's only the truth. You can't handle the truth?And if that's not enough, YOU started the personal attacks.You could have read the tutorial, learned arrays and walk on, but no, you ride around on your high horse and attacks everyone that gives you a friendly advice.You seriously need to learn how to handle a bit of criticism. Edited February 9, 2010 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
omikron48 Posted February 9, 2010 Share Posted February 9, 2010 You should always look up the language reference before you even think of coding something in another programming language. That's common sense. Link to comment Share on other sites More sharing options...
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