Jump to content

Account Control V 1.01 (Bugfix version)


Ashww
 Share

Recommended Posts

Running it in EXE will post :

"Account Control - was already running "

Now I check the code on line If UBound(ProcessList(@ScriptName)) >= 2 Then is actually equal to 2.

The script is already running when the function ProcessList(@ScriptName) is callled. That is why this error pop up when running it in compiled script.

Because it detects itself.

Correct me if I'm wrong. :lmao:

Yes you are correct.

I have been informed of this bug, and I am currently trying to find a fix for it.

If you know how to fix this please let me know.

Also, if you can think of anyways to make this better please let me know :)

Cheers

Ashww

X)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Projects: Account Control Wii style gui Bingo Caller - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Want a website? Click here!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -I use my Blackberry Storm to browse the forum! Please be patient!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Link to comment
Share on other sites

G'day Ashww

I add

#include <Misc.au3>
_Singleton(@scriptname)

To the start of any code I write that should only run once. The script exits automattically if it's already running.

OR you can add (untested)

#include <Misc.au3>
if _Singleton(@scriptname,1) = 0 Then
    MsgBox(64, "* NOTE * ", "Account Control -  was already running  ", 5)
    Exit
EndIf

Instead of

If UBound(ProcessList(@ScriptName)) >= 2 Then
    MsgBox(64, "* NOTE * ", "Account Control -  was already running  ", 5)
    Exit
EndIf

Hope this helps

John Morrison

Running it in EXE will post :

"Account Control - was already running "

Now I check the code on line If UBound(ProcessList(@ScriptName)) >= 2 Then is actually equal to 2.

The script is already running when the function ProcessList(@ScriptName) is callled. That is why this error pop up when running it in compiled script.

Because it detects itself.

Correct me if I'm wrong. :)

Link to comment
Share on other sites

G'day Ashww

One thing I would change is the use of hot keys.

F1 especially is a bad choice as it stops ALL use of F1 for help. Is use it all the time in SciTE to bring up help on functions.

Remember if you are handing this onto average users there WILL BE a conflict. It's just Murphies Law! :-)

I'd suggest you use menus from the tray icon.

BTW your program is getting better with each update.

John Morrison

Link to comment
Share on other sites

I agree with storme. I haven't had any problems with the F8 hotkey, but lots of applications use F1.

The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.

Link to comment
Share on other sites

I agree with storme. I haven't had any problems with the F8 hotkey, but lots of applications use F1.

Okay, this will be fixed in the next version :)

Cheers

Ashww

X)

Edited by Ashww

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Projects: Account Control Wii style gui Bingo Caller - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Want a website? Click here!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -I use my Blackberry Storm to browse the forum! Please be patient!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Link to comment
Share on other sites

Updated

BugFix Version!

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Projects: Account Control Wii style gui Bingo Caller - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Want a website? Click here!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -I use my Blackberry Storm to browse the forum! Please be patient!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Link to comment
Share on other sites

600+ Views and only 25 replys :)

Anyone tryed this?

cheers

Ashww

X)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Projects: Account Control Wii style gui Bingo Caller - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Want a website? Click here!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -I use my Blackberry Storm to browse the forum! Please be patient!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Link to comment
Share on other sites

600+ Views and only 25 replys :)

Anyone tryed this?

cheers

Ashww

X)

Yeah looks good no problems/faults yet.

Just wondering why you re-read the database file everytime you do a check.

Would it be more efficent to declare a global array and store the database so that there is no rereading each time?

Well Done

John Morrison

Link to comment
Share on other sites

Yeah looks good no problems/faults yet.

Just wondering why you re-read the database file everytime you do a check.

Would it be more efficent to declare a global array and store the database so that there is no rereading each time?

Well Done

John Morrison

It would. but then if you edit an process in the databace and then save it, it wouldnt take effect untill next start up.

Also i would like to make the Editor Panel look better.

Is there anyway i could do this using listview?

Cheers

Ashww

X)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Projects: Account Control Wii style gui Bingo Caller - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Want a website? Click here!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -I use my Blackberry Storm to browse the forum! Please be patient!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Link to comment
Share on other sites

It would. but then if you edit an process in the databace and then save it, it wouldnt take effect untill next start up.

Also i would like to make the Editor Panel look better.

Is there anyway i could do this using listview?

Cheers

Ashww

X)

No real problem with editing, just reread the file to the array when the "save" button is pressed.

Or directly edit the working array (adlibdisable while doing it) and only read the file at startup.

Editing is only done once in a while "if ever" so the gain of not hitting the harddrive on every check would be worth it. IMHO

Also

Take a look at my post GUI Control Array Grid it's not complete (there is an example) just a concept but you could use it to put the name of the program and 3 buttons (trust, don't trust, delete). If you're interested and I get some time I could put something together for you.

John Morrison

Edited by storme
Link to comment
Share on other sites

No real problem with editing, just reread the file to the array when the "save" button is pressed.

Or directly edit the working array (adlibdisable while doing it) and only read the file at startup.

Editing is only done once in a while "if ever" so the gain of not hitting the harddrive on every check would be worth it. IMHO

Also

Take a look at my post GUI Control Array Grid it's not complete (there is an example) just a concept but you could use it to put the name of the program and 3 buttons (trust, don't trust, delete). If you're interested and I get some time I could put something together for you.

John Morrison

Thank you...

I will consider everything, that you have said.

But there is no need to use your GUI Control Array Grid as i use koda to make my GUI's and then tweak/porgram them in my Editor.

Cheers

Ashww

X)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Projects: Account Control Wii style gui Bingo Caller - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Want a website? Click here!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -I use my Blackberry Storm to browse the forum! Please be patient!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Link to comment
Share on other sites

But there is no need to use your GUI Control Array Grid as i use koda to make my GUI's and then tweak/porgram them in my Editor.

If you can get Koda to give you a "dynamic" scrollable list of programs like you need for your program, let me know how you did it. That is why I put the concept together, Koda is great (in it's place) but it only gives a static layout.

Good Luck

John Morrison

Link to comment
Share on other sites

If you can get Koda to give you a "dynamic" scrollable list of programs like you need for your program, let me know how you did it. That is why I put the concept together, Koda is great (in it's place) but it only gives a static layout.

Good Luck

John Morrison

okay now you have confused me

Cheers

Ashww

X)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Projects: Account Control Wii style gui Bingo Caller - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Want a website? Click here!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -I use my Blackberry Storm to browse the forum! Please be patient!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Link to comment
Share on other sites

okay now you have confused me

My little script was created to allow for any number of items to be displayed with a mix of controls associated with each control.

http://www.autoitscript.com/forum/index.ph...c=87870&hl=

Load up the example and try adding some more programs or more buttons. It's still primitive but no one appeared to be interested so It's on hold untill I need it in the main program.

For your program you have a variable number of processes in your trusted/untrusted list.

Koda can't create an interface with a variable number of controls.

With my script AND another UDF I'll have to find again :) you could show a scrolling list with buttons to change the state of each program.

Good Luck

John Morrison

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