sl23 Posted 8 hours ago Posted 8 hours ago I tried using DuckAI to add it to a script, but it's really just going along with what I say, instead of actually providing any help!! I searched the help files, looked through the two PDF's on AutoIT and searched the forum, but can't seem to find anything that provides what I am looking for, likely because it's really basic and everyone likely knows how to do this. So, I found the AutoIT3Wrapper app, opened it, and found the tab for au3Stripper. This gives some simple info on how to use. I click the check box to activate it and select the commands to use. But... When using commands, do I add a space between them? Or a comma, a colon, semi-colon, what? Can you use only one at a time? I was actually trying to use this from the Script itself, I asked DuckAI if it can be done and got the answer as: #AutoIt3Wrapper_UseAu3Stripper=Y But this doesn't work, so I assume it's incorrect or missing something, maybe the commands are supposed to be specified too? Can someone point out the correct way please? Thanks you. Sorry for the really basic questions!
Developers Jos Posted 7 hours ago Developers Posted 7 hours ago did you install the separate SciTE4AutoIt3 installer? If so, you have an extra helpfile available under Help in SciTE. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
sl23 Posted 7 hours ago Author Posted 7 hours ago Ah, yes I found the help file, I'll check that out. Thank you.
sl23 Posted 6 hours ago Author Posted 6 hours ago (edited) I assume I just put a space between commands? There's no mention of that. Also, is there a list of items starting with # sorry, I don't know the actual name of the 'key'. For example, these: Quote #RequireAdmin #NoTrayIcon #SingleInstance Force #include <MsgBoxConstants.au3> I get that there are likely many more, but I don't know the name of the bl**dy thing so I can't find it in the manual, assuming there is a list of these in there. Thanks EDIT: Are they called keywords? I found that but it doesn't have all of the ones I posted as examples. #SingleInstance isn't among them for example. EDIT: Ah, Preprocessor Directives seems to be the correct term. But I still cannot find the one that explains #SingleInstance. Edited 5 hours ago by sl23
argumentum Posted 5 hours ago Posted 5 hours ago 44 minutes ago, sl23 said: I found that but it doesn't have all of the ones I posted as examples. #SingleInstance isn't among them for example. Where did you get that from ?, Because if is an AI, it'll make stuff up and .... . It is a pain having people complain about AI generated dream-ware ?, vibe-code ?, ..., just mocked up nonsense, because a godly looking system promised that it would do it for you. Read the god given help file that comes with AutoIt, the one that comes with the SciTE for AutoIt full install and, start doing the katas. Take example by example, run them, copy them to a new file and edit it to your curiosity's content. In any case, I'll give you my "#SingleInstance Force" SingleInstanceForce() ; place as the 1st function you call Func SingleInstanceForce() Local $instance = "[TITLE:" & @ScriptFullPath & ";CLASS:AutoIt v3;]" If WinExists($instance) Then Exit 4 AutoItWinSetTitle(@ScriptFullPath) EndFunc ;==>SingleInstanceForce Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
sl23 Posted 4 hours ago Author Posted 4 hours ago (edited) Yeah, I've just realised it's a fake term! Sorry, I was searching the manual for it and found _Singleton But you aren't using that. I couldn't find any mention of "SingleInstance" in any help file, so I gotta ask, are you mocking me or is that code genuine? I wouldn't blame you if you were tbh! lol I was going to try this from the manual: If _Singleton("test", 1) = 0 Then MsgBox($MB_SYSTEMMODAL, "Warning", "An occurrence of test is already running") Exit EndIf MsgBox($MB_SYSTEMMODAL, "OK", "the first occurrence of test is running") But I'll test yours first, just in case you aren't taking the piddle! EDIT: It worked! Sorry for doubting you! 😨 Edited 4 hours ago by sl23 argumentum 1
argumentum Posted 4 hours ago Posted 4 hours ago I don't lie. If I do is an attempt at sarcasm hence, wasn't lying. The code should run, and I say should because I tried it and worked for me and should work for everyone. I don't like the SingleTon() one, I do use the one I gave you when I need one. Why you ask, ok, I'll tell you why !. I don't understand it, but do understand why mine works I as a distrusting person, don't like what I don't understand. I have no idea why I marry so many times if I never understood them 🤪 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
sl23 Posted 4 hours ago Author Posted 4 hours ago Ok, sorry, ya never know what people are like on forums, now I know!
Solution argumentum Posted 4 hours ago Solution Posted 4 hours ago if you mark this thread as solved, my "solutions" will jump from 77 to 78. And I need those because in the over 20 years in this forum, 77 ain't that impressive and am in a secret competition with someone who as 174 ( don't tell Jos ). Also, will help everyone know that there is no need for additional help because the OP was satisfied with the answer. Also... forgot. 12 minutes ago, sl23 said: Ok, sorry, ya never know what people are like on forums, now I know! ...in that context, we humans tend to have bias. I'd say that we are a walking, talking bias. Be aware of those, you yourself may be sinning due to biases you are unaware of ! - yes, as if I didn't know myself Listen !, you don't !, ..not yet. But you will !, ...it is your destiny. ( I have a guru side gig ) Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
sl23 Posted 4 hours ago Author Posted 4 hours ago (edited) I'm well aware of bias, even my own, hard to live without it, but there it is! Where's that "I'm not worthy" emoji? 😕 Ok I will do that, one last thing, I managed to get a message box to alert the user of a running instance, but would like to add a second line but it just gives errors with everything I try, yet I've adjusted other parts in a similar fashion, can't see what's wrong!!! Here's what I've done: SingleInstanceForce() ; place as the 1st function you call Func SingleInstanceForce() Local $instance = "[TITLE:" & @ScriptFullPath & ";CLASS:AutoIt v3;]" If WinExists($instance) Then MsgBox($MB_ICONERROR, "StartupMonitor64", "The application is already running" & @CRLF & @CRLF "Click OK to close...") Exit 4 EndIf AutoItWinSetTitle(@ScriptFullPath) EndFunc What am I missing? EDIT: I was missing the & before the second set of quotes! Works now... Edited 4 hours ago by sl23 argumentum 1
argumentum Posted 4 hours ago Posted 4 hours ago 3 minutes ago, sl23 said: would like to add a second line but it just gives errors with everything I try 3 minutes ago, sl23 said: What am I missing? You'd have to post the error for the error to be known to me. PS: thanks, I have now reached 78 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
sl23 Posted 4 hours ago Author Posted 4 hours ago Ah ok, I will remember to post the error in future! Thank you for your solution and taking time to help out, much appreciated argumentum 1
argumentum Posted 3 hours ago Posted 3 hours ago ...every time that I read "The application is already running", am like, where !. What I do is to WinActivate() my GUI instead. Much more useful. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
argumentum Posted 3 hours ago Posted 3 hours ago In any case, "it's running, dah" is not enough. If it was in the tray area then mentioning that is good too. I know that am complaining about other software but is it is something to keep in mind. I also add a timeout to a temporary MsgBox of some 120 sec., just in case ( I screw up a lot while coding so don't ask me in case of what 😅 ) MsgBox ( flag, "title", "text" [, timeout = 0 [, hwnd]] ) Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
argumentum Posted 2 hours ago Posted 2 hours ago and I was thinking that "au3Stripper - need help figuring out how to use it" was not the topic, "#SingleInstance Force" ended up been the topic. Changing the title can be done by clicking on it for the creator of the thread ( I think ), or editing the fist post. And it's importance is that the title should reflect the topic for those reading and/or searching the term. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
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