Sign in to follow this  
Followers 0
Bru

Errors,

17 posts in this topic

#1 ·  Posted (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 by Bru

[right] [/right]

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

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


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by Bru

[right] [/right]

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Okay, and what is the command to write to a input?

GUICtrl ... something =S


[right] [/right]

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

No. Need. To. Get. Cocky.


[right] [/right]

Share this post


Link to post
Share on other sites

#10 ·  Posted (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 by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#11 ·  Posted (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 by Bru

[right] [/right]

Share this post


Link to post
Share on other sites

#12 ·  Posted (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 by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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]

Share this post


Link to post
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

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.


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

#17 ·  Posted (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 by Bru

[right] [/right]

Share this post


Link to post
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
Sign in to follow this  
Followers 0