Bru Posted August 4, 2008 Share Posted August 4, 2008 (edited) Well, right now, every program i make i have a bloody error. Guess what, it always has something to do with BitOR($ blah blah. For example, this line. $Pic1 = GUICtrlCreatePic("D:\Pictures\lottery.jpg", 8, 8, 137, 97, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) I get this error, $Pic1 = GUICtrlCreatePic("D:\Pictures\lottery.jpg", 8, 8, 137, 97, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) $Pic1 = GUICtrlCreatePic("D:\Pictures\lottery.jpg", 8, 8, 137, 97, BitOR(^ ERROR >Exit code: 1 Time: 0.463 Should i have an include to use images in my script GUI? Thanks, Bru #EDIT: Also, how would i edit one of my Input boxes with a button. So when it's clicked it writes something in the box. And how do you make a random number, because when using Random() it makes it a float point. Thanks. Edited August 4, 2008 by Bru [right][/right] Link to comment Share on other sites More sharing options...
rasim Posted August 4, 2008 Share Posted August 4, 2008 Well, right now, every program i make i have a bloody error. Guess what, it always has something to do with BitOR($ blah blah. For example, this line. $Pic1 = GUICtrlCreatePic("D:\Pictures\lottery.jpg", 8, 8, 137, 97, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) I get this error, Should i have an include to use images in my script GUI? Thanks, Bru #EDIT: Also, how would i edit one of my Input boxes with a button. So when it's clicked it writes something in the box. And how do you make a random number, because when using Random() it makes it a float point. Thanks. Maybe you forget include: WindowsConstants.au3 and StaticConstants.au3? Link to comment Share on other sites More sharing options...
Developers Jos Posted August 4, 2008 Developers Share Posted August 4, 2008 Install SciTE4AutoIt3 which will automatically run au3check giving you some more error checking. in this case I assume you do not have the appropriate #include files in your script: #include <StaticConstants.au3> #include <WindowsConstants.au3> $Pic1 = GUICtrlCreatePic("D:\Pictures\lottery.jpg", 8, 8, 137, 97, BitOR($SS_NOTIFY, $WS_GROUP, $WS_CLIPSIBLINGS)) Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
TerarinKerowyn Posted August 4, 2008 Share Posted August 4, 2008 Do you have its include in your script #include <StaticConstants.au3> #include <WindowsConstants.au3> or you could self define them Contact via MSN: [email=terarink_msn@hotmail.com]terarink_msn@hotmail.com[/email], yahoo: terarink_yah Link to comment Share on other sites More sharing options...
Bru Posted August 4, 2008 Author Share Posted August 4, 2008 (edited) Thank you for those, Now... How can i make Random() create hole numbers such as 1, 4,6,9,22, etc. Instead of float-type, 1.4354, 5.673, 6.634 etc. Thank you, Bru Edited August 4, 2008 by Bru [right][/right] Link to comment Share on other sites More sharing options...
weaponx Posted August 4, 2008 Share Posted August 4, 2008 Thank you for those,Now for the other part in my edit.How can i make Random() create hole numbers such as 1, 4,6,9,22, etc. Instead of float-type, 1.4354, 5.673, 6.634 etc.Thank you,BruLook it up in the help file, it is explained clearly. Link to comment Share on other sites More sharing options...
Bru Posted August 4, 2008 Author Share Posted August 4, 2008 Okay, and what is the command to write to a input? GUICtrl ... something =S [right][/right] Link to comment Share on other sites More sharing options...
therks Posted August 4, 2008 Share Posted August 4, 2008 Look. It. Up. In. The. Help. File. The forums are here to help people with more complicated issues, not to hold your hand as you skip merrily through your code without a care in the world. My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
Bru Posted August 4, 2008 Author Share Posted August 4, 2008 No. Need. To. Get. Cocky. [right][/right] Link to comment Share on other sites More sharing options...
Developers Jos Posted August 4, 2008 Developers Share Posted August 4, 2008 (edited) No. Need. To. Get. Cocky.He isn't. You are coming across as somebody that's impatient and just dumps every question in this thread.The idea is that you try and lookup/search in the available resources and only then ask questions here.I am sure you will receive support when the requests are reasonable.Jos Edited August 4, 2008 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Bru Posted August 4, 2008 Author Share Posted August 4, 2008 (edited) Okay, now i have looked for something to do with writing to a GUICtrl. But can't seem to find it. Please can someone help me. Edited August 4, 2008 by Bru [right][/right] Link to comment Share on other sites More sharing options...
Developers Jos Posted August 4, 2008 Developers Share Posted August 4, 2008 (edited) Okay, now i have looked for something to do with writing to a GUICtrl.But can't seem to find it.Please can someone help me.You will have to be more clear than this and I seriuosly doubt if you can have seached and looked at much in this short a time... but show what you have tried and are having problems with.Jos Edited August 4, 2008 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Bru Posted August 4, 2008 Author Share Posted August 4, 2008 Okay, I have 6 input boxes, that are disabled, they have text in them. I have one reset button. What i need to do is, when the reset button is pressed, it sets the text inside the input boxes back to "..." without the "" of course. Thank you, bru [right][/right] Link to comment Share on other sites More sharing options...
Developers Jos Posted August 4, 2008 Developers Share Posted August 4, 2008 Okay,I have 6 input boxes, that are disabled, they have text in them.I have one reset button.What i need to do is, when the reset button is pressed, it sets the text inside the input boxes back to "..." without the "" of course.Thank you, bruYou forgot to post what you already have or did you expect me/us to type it all ourselves?You have to understand that I am a lazy bastard when it comes to coding .. I prefer Cut&Paste. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Bru Posted August 4, 2008 Author Share Posted August 4, 2008 Okay ill post it, but it's just the GUI. All i need it the command to write to a input? Like, GUICtrlWrite ? Eventhough it isnt that. [right][/right] Link to comment Share on other sites More sharing options...
Developers Jos Posted August 4, 2008 Developers Share Posted August 4, 2008 GuiCtrlSetData() I guess .... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Bru Posted August 4, 2008 Author Share Posted August 4, 2008 (edited) Hmm i tired that b4 didn't understand it, ill try again. Thanks. Bru AH, Yes Jos, Thank you for all your time. Bru Edited August 4, 2008 by Bru [right][/right] 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