'Screen Clipping' has indeed the #LButton defined in it. But when I removed it from the 'Screen clipping' file and just keep it in my own file, it still gives the same error.I assume if "Screen Clipping w options 5.ahk" works fine alone then it has #Lbutton define in it. When you #inclue and then state again, you are ending up with a duplicate hotkey definition.
@Cerberus
The 'Tesseract' file doesn't use the function that is used in the 'Screen Clipping' file. The 'Screen Clipping' file does however also includes the 'Tesseract' file so I removed that line there too but still... same error message.Or perhaps the files Tesseract.ahk and Screen Clipping w options 5.ahk both contain a function with the exact same name. The error speaks of a function definition. So those two files are incompatible with each other.
@Joe Glines
What an honor that you react to my question I've watched a lot of your vids since I started with AHK at the beginning of this year. Please keep on making them since I learned a lot from them.
Now on to the question:
The file you are using has like 1000 more lines. This isn't a problem really but the reason I used the other one is that I want as few lines as possible. After I included the file I want to remove all the functions the #Lbutton::SCW_ScreenClip2Win(clip:=0,email:=0) hotkey isn't using and when I'm using your file that would be a lot more work and will get way too complicated for me I think. Next to this, and more importantly, with the script you are using I am only able to close the screen clip by pressing esc while in the one I'm using I can close the screen clip by clicking on the top right.
I tried changing this in your script but unfortunately, I do not have the knowledge to do this.
But for now, I will use the script that is on your website, thanks for that!
Thanks for your replies!
***EDIT***
OK, that won't work either. 'TheAutomatorScript' is the script from the website Joe Glines mentioned.
Code: Select all
#Include S:\...\TheAutomatorScript.ahk
#Lbutton::SCW_ScreenClip2Win(clip:=1,email:=0,IMUGR:=0)