Jump to content
Sign in to follow this  
TheOnlyOne

error opening the destination file

Recommended Posts

TheOnlyOne

okay

i have used autoit for kind a while now but now i got a problem

after i installed windows 7 it wont compile my scripts or if i try like 20-40 times then if im lucky it compile it

i tried to build and compile it but nether of them work.

?

my code

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Version=beta
#AutoIt3Wrapper_Compression=0
#AutoIt3Wrapper_UseUpx=n
#AutoIt3Wrapper_Res_Fileversion=0.0.0.14
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <GuiImageList.au3>
#include <GUIListBox.au3>
#include <GuiStatusBar.au3>
#include <GuiToolbar.au3>
#include <ImageListConstants.au3>
#include <StaticConstants.au3>
#include <ToolbarConstants.au3>
#include <WindowsConstants.au3>
#include <Constants.au3>
#include <array.au3>
#include <file.au3>
$file=@scriptdir&"\AutoClicker_Addon.au3"
$on=0
$item=1
global $readpos,$start=0,$end=1,$normalread,$newx,$newy,$msg,$process="AutoIt3.exe",$programs=0
AdlibRegister("mouse",75)
global $x1=0,$y1=0,$2
hotkeyset("{f1}","stop_all")
hotkeyset("{f2}","exit_")
local $read[500]
local $items[500]
Local Enum $idNew = 1000, $idOpen, $idSave, $idHelp
global $x1read,$y1read,$y2read,$x2read,$repeat,$repeatx
$10=0
$Debug_TB = False
#Region ### START Koda GUI section ##Button Pressed Return Value


$Form1 = GUICreate("Form1", 625, 443, 192, 124)
GUIStartGroup()
$Group1 = GUICtrlCreateGroup("Masive Auto Clicker", 8, 40, 209, 105)
$Masive = GUICtrlCreateInput("", 16, 88, 121, 21)
$Label1 = GUICtrlCreateLabel("How many Masive Clicks?", 16, 64, 128, 17)
$Label2 = GUICtrlCreateLabel("X:", 144, 64, 14, 17)
$Label3 = GUICtrlCreateLabel("Y:", 144, 88, 14, 17)
$X = GUICtrlCreateInput("", 160, 62, 41, 21)
$Y = GUICtrlCreateInput("", 160, 86, 41, 21)
$Button1 = GUICtrlCreateButton("Go1", 16, 112, 59, 17, $WS_GROUP)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group2 = GUICtrlCreateGroup("Normal Auto Clicker", 384, 40, 209, 105)
$Label4 = GUICtrlCreateLabel("How many Normal Clicks?", 392, 64, 127, 17)
$Normal = GUICtrlCreateInput("1", 392, 88, 121, 21)
$Input1 = GUICtrlCreateInput("", 544, 62, 41, 21)
$Label5 = GUICtrlCreateLabel("X:", 528, 64, 14, 17)
$Label6 = GUICtrlCreateLabel("Y:", 528, 88, 14, 17)
$Input2 = GUICtrlCreateInput("", 544, 86, 41, 21)
$Button2 = GUICtrlCreateButton("Go2", 392, 120, 59, 17, $WS_GROUP)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group3 = GUICtrlCreateGroup("Advanced Auto Clicker", 16, 176, 233, 217)
$Input3 = GUICtrlCreateInput("", 176, 246, 41, 21)
$Input4 = GUICtrlCreateInput("", 176, 222, 41, 21)
$Label7 = GUICtrlCreateLabel("X:", 160, 224, 14, 17)
$Label8 = GUICtrlCreateLabel("Y:", 160, 248, 14, 17)

$Button3 = GUICtrlCreateButton("Add Point", 152, 200, 75, 17, $WS_GROUP)
$List1 = GUICtrlCreateListView("Points", 24, 200, 105, 123)
$Checkbox1 = GUICtrlCreateCheckbox("Repeat", 152, 272, 97, 17)
$Checkbox2 = GUICtrlCreateCheckbox("Repeat X Times", 152, 296, 97, 17)
$Input5 = GUICtrlCreateInput("", 152, 320, 65, 21)
$Button4 = GUICtrlCreateButton("Go", 160, 368, 75, 17, $WS_GROUP)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$mouse=guictrlcreatelabel("currenct pos:"&@crlf&"X:"&$x1&" Y:"&$y1,10,415,100,25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
loop()
func loop()

While 1
    $readpos=mousegetpos()

    $repeat=guictrlread($Checkbox1)
    $repeatx=guictrlread($checkbox2)
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $button1


_massiveclick()
case $button2
    $x1read=guictrlread($input1)
    $y1read=guictrlread($input2)
    $normalread=guictrlread($normal)
    normal_click()
case $Button3
add_point()
case $Button4
    adv_click()
EndSwitch
WEnd

EndFunc
func _massiveclick()
    $masive_clicks=guictrlread($Masive)
    filewrite($file,"")
$xread=guictrlread($x)
$yread=guictrlread($y)
$file_Read=fileread($file)
if $masive_clicks="" then
$masive_clicks=0
EndIf

if $file_Read="" or $msg=7 then
$space=DriveSpaceFree("C:")
    $msg=msgbox(4,"Space requriements","After this you will have "&round($space-4.096,0)&"kb back"&@crlf&"You are sure you want to continue ?")
EndIf

    if $msg=6 then

if $xread="" then $xread=0
if $yread="" then $yread=0

    _FileWriteToLine($file,1,"while 1",1)
    _FileWriteToLine($file,2,'mouseclick("left",'&$xread&','&$yread&',1,10)',1)
    _FileWriteToLine($file,3,"wend",1)


EndIf
if $msg=6 Then
    Do
        run("AutoIt3.exe "&$file)
        $programs=$programs+1
        until $programs=$masive_clicks
    EndIf

EndFunc

func normal_click()
            if $normalread>0 then
        $end=$normalread
    else
        $end=-1
    EndIf
    if $x1read="" and $y1read="" then
        if $on=0 then
        $on=1
        $2=mousegetpos()

        Do
            mouseclick("left",$2[0],$2[1],1,10)
            $start=$start+1

        until $start>=$end
        $start=0
    EndIf
EndIf

    if $on=0 then
        $on=1


    Do
        $start=$start+1
        mouseclick("left",$x1read,$y1read,1,10)
    until $start=$end
    $start=0
    EndIf
    $start=0
$on=0
EndFunc

func adv_click()
    if $on=0 Then
        $on=1
    $max=_ArrayMaxIndex($items,0,0,0)

    while $repeat=$GUI_CHECKED
for $i=1 to $max
$read[$i]=guictrlread($items[$i])
$20=StringTrimright($read[$i],1)
$split=stringsplit($20,",")

mouseclick("left",$split[1],$split[2],1,10)
next

WEnd
if $repeatx=$GUI_CHECKED then
    $x_times=guictrlread($input5)
    Do
    for $i=1 to $max
$read[$i]=guictrlread($items[$i])
$20=StringTrimright($read[$i],1)
$split=stringsplit($20,",")

mouseclick("left",$split[1],$split[2],1,10)
next
$10=$10+1
until $10=$x_times
$10=0
Else
    for $i=1 to $max
$read[$i]=guictrlread($items[$i])
$1=StringTrimright($read[$i],1)
$split=stringsplit($1,",")

mouseclick("left",$split[1],$split[2],1,10)
next
EndIf

EndIf
$on=0
EndFunc

func add_point()
$y2read=guictrlread($input3)
$x2read=guictrlread($input4)
if $y2read="" then $y2read=0
if $x2read="" then $x2read=0
$items[$item]=GUICtrlCreateListViewItem($x2read&","&$y2read,$list1)
$item=$item+1

EndFunc

func stop_all()
    $on=0
    while ProcessExists($process)=True
        ProcessClose($process)
    WEnd


loop()

EndFunc

func exit_()
    Exit
EndFunc


func mouse()
    $x1=$readpos[0]
    $y1=$readpos[1]
guictrlsetdata($mouse,"currenct pos:"&@crlf&"X:"&$x1&" Y:"&$y1)
EndFunc

also the debug/build message

>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper_Gui.exe" /in "C:\Users\Sumsar1812\Desktop\AC.au3"
+>20:19:55 Starting AutoIt3Wrapper GUI v.2.0.0.0
-> No changes made..
+>20:19:56 Starting AutoIt3Wrapper v.2.0.0.3    Environment(Language:0409  Keyboard:00000406  OS:WIN_VISTA/  CPU:X64 OS:X86)
>Running AU3Check (1.54.19.0)  from:C:\Program Files\AutoIt3
+>20:19:57 AU3Check ended.rc:0
+> Updated RT_VERSION information.
>20:19:58 Resource updating finished.
>Running:(3.3.2.0):C:\Program Files\AutoIt3\aut2exe\aut2exe.exe  /in "C:\Users\Sumsar1812\Desktop\AC.au3" /out "C:\Users\Sumsar1812\Desktop\AC.exe" /comp 0 /nopack /Bin C:\Users\SUMSAR~1\AppData\Local\Temp\AutoItSC.bin
!>20:21:00 Aut2exe.exe ended errors because the target exe wasn't created, abandon build.rc:9999
+>20:21:00 AutoIt3Wrapper Finished
>Exit code: 0    Time: 64.818

edit:

this worked when i had windows xp

Edited by TheOnlyOne

Share this post


Link to post
Share on other sites
TheOnlyOne

i hate avg ....

thanks :D

voted post up :huggles:

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.