Jump to content

Errors,


Bru
 Share

Recommended Posts

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 by Bru

[right][/right]

Link to comment
Share on other sites

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

  • Developers

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

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 by Bru

[right][/right]

Link to comment
Share on other sites

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,

Bru

Look it up in the help file, it is explained clearly.

Link to comment
Share on other sites

  • Developers

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 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

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 by Bru

[right][/right]

Link to comment
Share on other sites

  • Developers

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 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

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

  • Developers

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

You 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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...