Sign in to follow this  
Followers 0
theguy0000

script doesnt work...

7 posts in this topic

#include <Date.au3>
$h_Plugin=PluginOpen(@ScriptDir & "\captplugin.dll")
$opened=IniRead(@ScriptDir & "\screen.ini", "settings", "firstRun", "first")
If $opened="first" Then first()
$dir=IniRead(@ScriptDir & "\screen.ini", "settings", "dir", @MyDocumentsDir & "\screenshots")
FileChangeDir($dir)
HotKeySet("!s", "screenshot")
Func ScreenShot()
    CaptureScreen(StringReplace(_Now(), " ", "_"), 85)
EndFunc
Func first()
    IniWrite("screen.ini", "settings", "firstRun", "0")
    IniWrite("screen.ini", "settings", "dir", FileSelectFolder("Save screenshots in...", "", 1))
    Return 1
EndFunc
PluginClose($h_Plugin)

I'm using lazycat's captplugin which can be found at http://www.autoitscript.com/fileman/users/Lazycat/


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites



#include <Date.au3>
$h_Plugin=PluginOpen(@ScriptDir & "\captplugin.dll")
$opened=IniRead(@ScriptDir & "\screen.ini", "settings", "firstRun", "first")
If $opened="first" Then first()
$dir=IniRead(@ScriptDir & "\screen.ini", "settings", "dir", @MyDocumentsDir & "\screenshots")
FileChangeDir($dir)
HotKeySet("!s", "screenshot")
Func ScreenShot()
    CaptureScreen(StringReplace(_Now(), " ", "_"), 85)
EndFunc
Func first()
    IniWrite("screen.ini", "settings", "firstRun", "0")
    IniWrite("screen.ini", "settings", "dir", FileSelectFolder("Save screenshots in...", "", 1))
    Return 1
EndFunc
PluginClose($h_Plugin)

I'm using lazycat's captplugin which can be found at http://www.autoitscript.com/fileman/users/Lazycat/

doesn't work eh? does it give you an error? does it make your computer smell like smoke? does it do anything?

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

it says these three functions are undefined: PuginOpen, ScreenCapture, and PluginClose.

But, I have the latest beta.


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

it says these three functions are undefined: PuginOpen, ScreenCapture, and PluginClose.

But, I have the latest beta.

are you sure you're USING the latest beta? sorry i know that sounds like a dumb question, but PluginOpen and PluginClose are both part of the beta standard library, not needing anything to be included etc, so that error indicates that perhaps you're accidentally running with the stable... make sure you're using Alt-F5 in SciTE, or comment out those lines and use @AutoItVersion to verify that you are infact using the beta...

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

I'm positive. I use the file in /beta/extras in the autoit install directory and it says "using beta version of autoit"


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

If you place this line at the top of your script:

MsgBox(0x40, "AutoIt Version", @AutoItVersion)

Does it report a number greater than or equal to 3.1.1.72? (I'm asking this because a lot of people don't realise that running a script with the beta requires Alt+F5 through SciTE and not a double-click on an AU3 file.)

Edit: What says 'using beta version of AutoIt'? ;)

Edited by LxP

Share this post


Link to post
Share on other sites

I'm asking this because a lot of people don't realise that running a script with the beta requires Alt+F5 through SciTE and not a double-click on an AU3 file

;) Thanks, Earlier I used to run Beta scripts using "Toggle AU3 beta" and double clicking on the file. But now I know how to run them through SciTE.

Share this post


Link to post
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
Sign in to follow this  
Followers 0