Script problem

Recommended Posts

Bert 1,269

Bert 1,269

I'm starting a new thread on this one..my b..b..b..brain is hurting somewhat bad here...

I have a application I have written (With help! - gafrost rocks!) and I need help with 2 issues.

1. When the script is ran, the Remove function doesn't work. I do not know how to make this work. I have made it so it simulates what I want it to do, but I do not know how to make it work.

2. When going from the sub window back to the main window, if you click cancel, it works fine. If you click on the X in the corner, the sub window remains open. Clicking on the X again will stop the script.

Share this post

Link to post

Share on other sites

Greenseed 1

Greenseed 1

hi! i make work your last probleme! but i think the structure of this script is weird!

anyway! the function delete is ok! it delete it inside the file! but with dangerous mode! maybe you can makeit a backup before deleting entry! just to be sure! because when i do Fileopen i do it with 2 Overwrite!

after i rewrite the file! but if you lose power in the operation everything will be destrioy! anyway i hoep it help!

Share this post

Link to post

Share on other sites

Bert 1,269

Bert 1,269

My bad...its working, but I discovered a bug. If you click add, and then click ok, it will put the item in. If you then remove the item, then try to add a new item, the drop down on the main GUI is blank. When I look at the INI, the items are on the second line. It has to be on the first line. For some reason, it is adding a carriage return when there is only one item in the list, and you remove the item.

Share this post

Link to post

Share on other sites

GaryFrost 13

GaryFrost 13

My bad...its working, but I discovered a bug. If you click add, and then click ok, it will put the item in. If you then remove the item, then try to add a new item, the drop down on the main GUI is blank. When I look at the INI, the items are on the second line. It has to be on the first line. For some reason, it is adding a carriage return when there is only one item in the list, and you remove the item.

Share this post

Link to post

Share on other sites

Bert 1,269

Bert 1,269

1. Starting off with the quicktext.ini file missing. When you run the script, it will make the ini file.

2. Add one entry called "test1". It will show up as "test1|" in the ini file

3. Use the remove function to remove test1

4. Add a new entry as "test2". When you check the dropdown, it is blank.

5. When I check the ini, I find a cariage return so it looks like this

"

test2|".

I'm using greenseed's code, for it has the remove function working correctly. I have also noticed it will do the carriage return if you remove the last item in the list. If you remove any item before the last one, it works fine.