Ashww Posted January 26, 2009 Author Share Posted January 26, 2009 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. 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 CheersAshwwX) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 More sharing options...
storme Posted January 26, 2009 Share Posted January 26, 2009 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. Some of my small contributions to AutoIt Browse for Folder Dialog - Automation SysTreeView32 | FileHippo Download and/or retrieve program information | Get installedpath from uninstall key in registry | RoboCopy function John Morrison aka Storm-E Link to comment Share on other sites More sharing options...
storme Posted January 26, 2009 Share Posted January 26, 2009 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 Some of my small contributions to AutoIt Browse for Folder Dialog - Automation SysTreeView32 | FileHippo Download and/or retrieve program information | Get installedpath from uninstall key in registry | RoboCopy function John Morrison aka Storm-E Link to comment Share on other sites More sharing options...
Hawkwing Posted January 26, 2009 Share Posted January 26, 2009 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 More sharing options...
Ashww Posted January 26, 2009 Author Share Posted January 26, 2009 (edited) 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 CheersAshwwX) Edited January 27, 2009 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 More sharing options...
Ashww Posted January 27, 2009 Author Share Posted January 27, 2009 UpdatedBugFix 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 More sharing options...
Ashww Posted January 28, 2009 Author Share Posted January 28, 2009 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 More sharing options...
storme Posted January 28, 2009 Share Posted January 28, 2009 600+ Views and only 25 replys Anyone tryed this?cheersAshwwX)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 DoneJohn Morrison Some of my small contributions to AutoIt Browse for Folder Dialog - Automation SysTreeView32 | FileHippo Download and/or retrieve program information | Get installedpath from uninstall key in registry | RoboCopy function John Morrison aka Storm-E Link to comment Share on other sites More sharing options...
Ashww Posted January 28, 2009 Author Share Posted January 28, 2009 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 DoneJohn MorrisonIt 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?CheersAshwwX) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 More sharing options...
storme Posted January 29, 2009 Share Posted January 29, 2009 (edited) 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?CheersAshwwX)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. IMHOAlsoTake 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 January 29, 2009 by storme Some of my small contributions to AutoIt Browse for Folder Dialog - Automation SysTreeView32 | FileHippo Download and/or retrieve program information | Get installedpath from uninstall key in registry | RoboCopy function John Morrison aka Storm-E Link to comment Share on other sites More sharing options...
Ashww Posted January 29, 2009 Author Share Posted January 29, 2009 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. IMHOAlsoTake 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 MorrisonThank 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.CheersAshwwX) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 More sharing options...
storme Posted January 29, 2009 Share Posted January 29, 2009 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 LuckJohn Morrison Some of my small contributions to AutoIt Browse for Folder Dialog - Automation SysTreeView32 | FileHippo Download and/or retrieve program information | Get installedpath from uninstall key in registry | RoboCopy function John Morrison aka Storm-E Link to comment Share on other sites More sharing options...
Ashww Posted January 30, 2009 Author Share Posted January 30, 2009 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 LuckJohn Morrisonokay now you have confused meCheersAshwwX) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 More sharing options...
storme Posted January 30, 2009 Share Posted January 30, 2009 okay now you have confused meMy 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 LuckJohn Morrison Some of my small contributions to AutoIt Browse for Folder Dialog - Automation SysTreeView32 | FileHippo Download and/or retrieve program information | Get installedpath from uninstall key in registry | RoboCopy function John Morrison aka Storm-E Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now