ofbefb34 Posted June 10, 2022 Share Posted June 10, 2022 $click= ("{alt}+{d}") If $click _ispressed Then func MouseClick ( "right" [, "", "" [, clicks = 22 [, speed = 10]]] ) Return EndIf This is the error. I am new to this so I don't know what to do. I tried extra endif's but it didn't work. Thanks in advence. Link to comment Share on other sites More sharing options...
OJBakker Posted June 10, 2022 Share Posted June 10, 2022 Wow, 5 lines and only the last line is correct syntax! May I suggest you check the helpfile for the correct syntax of using the functions '_ispressed' and 'mouseclick' and study / try the examples for these functions. #include <Misc.au3> ; $click= ("{alt}+{d}") Local $keyAlt = 12 Local $keyD = 44 If _ispressed($keyAlt) and _IsPressed($keyD) Then MouseClick ( "right" , Default, Default , 22 , 10 ) ; Return ; can only be used in a function EndIf Draygoes 1 Link to comment Share on other sites More sharing options...
ofbefb34 Posted June 17, 2022 Author Share Posted June 17, 2022 I put them together with lines from other examples on web. I must have looked up to the wrong place.😕 Thanks for the help. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 18, 2022 Moderators Share Posted June 18, 2022 23 hours ago, ofbefb34 said: I must have looked up to the wrong place. There is one right place to look for help: https://www.autoitscript.com/autoit3/docs/ "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
rudi Posted June 21, 2022 Share Posted June 21, 2022 Same information pool at your fingertips is to use Autoit SciTE editor and <F5> run your program: Using <F4> key you can walk through all error lines, then read the error description, there simply press <F1> key with the cursor positioned to the appropriate key word to jump to the integrated help file system topic Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
Developers Jos Posted June 21, 2022 Developers Share Posted June 21, 2022 44 minutes ago, rudi said: Same information pool at your fingertips is to use Autoit SciTE editor and <F5> run your program Yep, but only when the separate SciTE4AuoIt3 is installed or else only AutoIt3 will run showing its output in the SciTE output pane😉 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. Link to comment Share on other sites More sharing options...
rudi Posted June 21, 2022 Share Posted June 21, 2022 @Jos that's what I meant writing "... use Autoit SciTE editor ..." 😉 Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
Developers Jos Posted June 21, 2022 Developers Share Posted June 21, 2022 6 hours ago, rudi said: use Autoit SciTE editor Understood, but I just want to make it ultimately clear that the SciTE editor version that comes with the AutoIt3 installer, doesn't do all these extra's. 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. Link to comment Share on other sites More sharing options...
Nine Posted June 22, 2022 Share Posted June 22, 2022 @Jos Just curious why full Scite is not provided in the first place with AutoIt ? That would reduce misunderstanding and repeated questions about it, no ? “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Developers Jos Posted June 22, 2022 Developers Share Posted June 22, 2022 5 hours ago, Nine said: @Jos Just curious why full Scite is not provided in the first place with AutoIt ? That would reduce misunderstanding and repeated questions about it, no ? Yes it would, but it is the was it is because Jon wanted to keep the baseline installer small/simple with a single file based editor (better than notepad) , which I fully understand. ( @Jon correct me if i am wrong) Still think it best this way as not everybody is using SciTE and we should keep things flexible for people to move to any Editor of their liking without giving them the "bloat" of the SciTE4AutoIt3 package. Jos 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. Link to comment Share on other sites More sharing options...
rudi Posted June 22, 2022 Share Posted June 22, 2022 As mentioned years ago it might be worth to think about to provide *ONE* bundle package for Autoit including the SciTE4AutoIt3. Best would be a "doubleklick the EXE, --> preselection = Install-in-no-questions-asked-at-all-mode", optional user-defined-install-mode. For beginners it might be very helpful, if a tutorial website is autoopened just after the setup is completed. Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
Developers Jos Posted June 22, 2022 Developers Share Posted June 22, 2022 It is what it is as I have stated already many times: eg here: On 10/9/2018 at 11:13 AM, Jos said: As it is considered not as a core item and people should be able to choose their editor of choice. I solely maintain the SciTE4AutoIt installer and only the SciTE source is part of the shared SVN, all other sources of the compiled programs (tidy,au3stripper) aren't shared. Jos This also means that one day it likely stops unless somebody is willing to "burn" as much time on it as I do without really using it that much themselves anymore. 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. 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