Jump to content

Recommended Posts

Posted (edited)

Not having much luck so far.

It may be clever code, but it is badly formatted and messy as hell, with many variables not declared.

Reminds me of why I've only done the minimal updating.

I discovered that filenames were in wrong case as well, though Windows/AutoIt seems to cope with that.

EDIT

I've given up (certainly for tonight), there is obviously something at play that I don't understand, and for some reason the icon library file (.icl) is not being parsed or read correctly. I've varied the numbers both positively and negatively, and nothing changes. I used variables instead of the magic number, though it should equate to the same thing. Tomorrow, I might extract the icons and have them applied individually and see what happens.

Edited by TheSaint

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

  Reveal hidden contents

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Posted

Can we open new topic for GuiBuilder.au3 ?

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)
  On 1/10/2015 at 6:07 PM, jaberwacky said:

When I run the .au3 and move my mouse then this line will fail with @error 1.

$cursorInfo = GuiGetCursorInfo()

 Not sure what @error 1 is supposed to mean here.

Yep, that caused me to go back to that earlier version of AutoIt to run the au3.

I have tried to detect the icon issue, and compiled it a dozen times at least with all sorts of variations, even fixing a little of the formatting and globalizing some variables, especially some undeclared ones. I even gave it some INI entries so I could adjust things on the fly without the need to recompile every time, as I'm going back and forth between my Win XP and Win 7 machines.

The script is such a mess though and a real mind-bender to a hobbyist like me.

It has an absurd mix of Dim, Global and Local declarations all over the place.

No doubt all Dims probably need to become Global, and all Globals placed at the start of the script.

AutoIt has changed a lot since the inception of GUIBuilder, so there is certain to be some function etc that does things differently.

It really needs to be tidied up and all variable declarations and external functions checked.

Oops, just noticed the content of your other reply.

  Quote

 

I fixed the undeclared and unused and general formatting but it still needs work:

Will check it out.

  Quote

 

Can we open new topic for GuiBuilder.au3 ?

Anyone has always been welcome to do that.

It has had other topics and off-shoot topics for it in the past, including mine (?), but they are all pretty old now.

EDIT

I had to add 20 to GUI width plus 10 for height, and add 10 to the left plus 5 to top for GuiCtrlCreateRadio to get the menus to line up correctly on my Win 7 (6.1 in reality) machine, and look a bit better.

$toolbar = GuiCreate("Choose Control Type", 170, 420, 10, @DesktopHeight/2-175, 0x00C00000, -1, $main)


$type[$i] = GUICtrlCreateRadio("foo", 10 + ($col * 50), 5 + ($row * 50), 50, 50, $BS_PUSHLIKE + $BS_ICON)

I noticed that $type was declared twice, once in a Global scope and then again in Local for a different purpose. In my latest version, not shown above, I changed all $type[$i] and similar to $contype[$i].

Edited by TheSaint

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

  Reveal hidden contents

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Posted (edited)

I've had some success and managed to fix some things so GuiBuilder au3 will now run in v3.3.0.0.

(the version linked to in Post #163 above, did not work for me, still had cursor error, now fixed, etc)

Need to do a little more, then I will test on WIN 7.

Just had to reboot the XP PC so a little holdup, which is why I'm typing this.

The cursor issue was fixed by making the following line relevant to the correct GUI, instead of not having it assigned to either.

$cursorInfo = GuiGetCursorInfo($main)

There was a magic number, that also made a control ID way into the negatives, so caused a crash when a control was clicked. So I changed the magic number to 13, and they all now work.

$CurrentType = $tip[$ref-4101]  ;the magic number!
; is now
 $CurrentType = $tip[$ref-13]  ;the magic number!

I may have fixed the Icon issue, but not yet tested on WIN 7, by using the following

GUICtrlSetImage(-1, @ScriptDir & "\iconSet.icl", -($i + 1))

I also had an issue with setting properties (control text), but I had nearly finished checking my fix for that when the PC needed to be rebooted. Seems there was just an error that I'm at a loss to explain how it worked for most controls as it was ... probably AutoIt was just more forgiving in earlier versions.

EDIT

Had no luck with icons again, and to top that off, no controls are saved in template or GUI au3 files.

No more time to play right now, until probably tomorrow, so here's what I've got to so far, which others can work on if they wish.

GuiBuilder.au3

P.S. I'm thinking the icons may be wrong resolution for WIN 7? They need to be extracted and tested, etc.

Edited by TheSaint

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

  Reveal hidden contents

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Posted

As mLipok said, I think we should start a new topic for GuiBuilder.

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

  Reveal hidden contents

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Posted

So maybe Melba23 can split this topic ?

Of course if @jaberwacky confirm my sugestion .

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • 1 month later...
Posted

I tried your program today and it is very good. I got a theme that is very easy on my old eyes but when I activated SciTEJump in SciTE Editor it says file doesn't exist.

Never had that happen before. I tried SciTEHopper and it said can not open file. What happened?

REB

MEASURE TWICE - CUT ONCE

Posted (edited)

I hate to say this but I have no clue how these scripts are related.  The only thing SCG does to SciTE is write properties to the SciTEUser.properties file.  It overwrites tidy.ini.  Try erasing everything that SCG writes to SciTEUSer.properties.  Restart SciTE.  Then try SciTEJump again.  If the problem goes away then I'll start studying possible causes.

Edit: Being a numbskull it took a minute to realize that I could do the same.  I did.  SciTEJump works now.  So I'll look into it.  Thanks!

Edit2: Issue seems to be related to property title.full.path.  If title.full.path=1 then SciTEJump works.  If title.full.path=0 however SciTEJump seems to change the setting to 1, but it seems as though a refresh isn't being done to SciTE. Becuase if I go back to the properties file and press ctrl+s then rerun SciTEJump,  it works.  I think this might be an issue with SciTEJump.

Edited by jaberwacky
Posted (edited)

When I use any of the themes that are included SciTeJump works fine. :)  When I load a theme that I renamed and saved SciteJump does not work. :

I changed some colors and typed in a name and clicked the save button. Did I do something wrong with my modified Theme?

REB

edit

changing title.full.path=1 did not work for me.

Edited by reb

MEASURE TWICE - CUT ONCE

Posted

That's weird because I can change title.full.path to 0 then start SciTEJump and it won't work.  Then close out of SciTEJump, change title.full.path to 1 then restart SciTEJump, and it works.  I did what you said, changed a few colors, changed the name, none of that had an effect.

Posted
  Quote

 

Edit2: Issue seems to be related to property title.full.path.  If title.full.path=1 then SciTEJump works.  If title.full.path=0 however SciTEJump seems to change the setting to 1, but it seems as though a refresh isn't being done to SciTE. Becuase if I go back to the properties file and press ctrl+s then rerun SciTEJump,  it works.  I think this might be an issue with SciTEJump.

  Quote

 

edit

changing title.full.path=1 did not work for me.

 

I changed title.full.path=0 and it did work for me. You had me going for a while but you did point me in the right direction.

thank you very much.

REB

MEASURE TWICE - CUT ONCE

  • 4 months later...
Posted

SciTE4AutoIt3 tab -> AutoIt3 Directory Settings:

when I click the "Select" button for "User Includes" and press cancel it clears the list. Further on restart the combo box is empty.

In the previous SciTE version it was possible for autocomplete function to show the all used variables when adding a function parameter.

E.g.when I type GUICtrlCreatePic( it shows me the parameters for that function but when I start typing the 1st parameter starting with $ I don't get the variable list displayed. I've to press the ESC key to remove the function description and get the variables listed.

 

Thanks.

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Posted (edited)
  On 7/8/2015 at 5:27 PM, datguydev said:

Just wanted to say thanks for sharing - jaberwacky

My pleasure.  Thanks for using SCG!

  On 7/8/2015 at 5:58 PM, UEZ said:

SciTE4AutoIt3 tab -> AutoIt3 Directory Settings:

when I click the "Select" button for "User Includes" and press cancel it clears the list. Further on restart the combo box is empty.

In the previous SciTE version it was possible for autocomplete function to show the all used variables when adding a function parameter.

E.g.when I type GUICtrlCreatePic( it shows me the parameters for that function but when I start typing the 1st parameter starting with $ I don't get the variable list displayed. I've to press the ESC key to remove the function description and get the variables listed.

 

Thanks.

I will look into the user includes issue.  The SciTE thing though, did SCG cause that?  If not then that's outside of my realm.  Thanks for the report and for using SCG!

 

Edit, I think I see the issue.  The tooltip stays in place and doesn't disappear to allow the variable list to display.  I've noticed that, but I'm not sure if it's something with SciTE, SciTE4AutoIt3, or with the way SCG sets some SciTE property.

Edited by jaberwacky
Posted (edited)

Sorry jaberwacky but I didn't want to say that your script caused the issues - rather a help request.

If you cannot help because out of your scope - no problem for me.

Thanks.

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

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
×
×
  • Create New...