Hey, Love the script. But I'm trying to use it and its throwing all kinds of errors. the compiled works great but the script is giving me recreating const errors and it doesnt know $StatusBar = _GUICtrlStatusBarCreate($GUI, -1, $aText)
Hey, Love the script. But I'm trying to use it and its throwing all kinds of errors. the compiled works great but the script is giving me recreating const errors and it doesnt know $StatusBar = _GUICtrlStatusBarCreate($GUI, -1, $aText)
Unknown function name???
Could you make it bare-bones?
Can you please update it?
THanks
Until RazerM updates it, I try to keep the copy in my debugger up to date for the latest version of AutoIt so you coud use that. I also try to apply any fixes which appear in this thread. See my signature. The debugger doesn't need to be used; there is just one extra button shown on the editor to turn on the debugging features.
I can also supply it compiled so that the AutoIt version doesn't matter.
Minor problem with editor when you choose to close a file. If you select cancel the editor closes.
Fix is to this area of code, remove the line "ExitLoop" as commented.
Case $FileClose, $IconClose
Local $fCancel = False
$iTab = GUICtrlRead($tab) + 1
If $aTabs[0][0] > 1 Then
If SendMessage($Sci, $SCI_GETMODIFY, 0, 0) <> 0 Then
$iRet = MsgBox(3, "Save", "Save changes to " & $aTabs[$iTab][2] & ".au3?")
Switch $iRet
Case 6;yes
If $aTabs[$iTab][3] <> -1 Then
FileDelete($aTabs[$iTab][3])
_CheckExt($aTabs[$iTab][3], ".au3")
FileWrite($aTabs[$iTab][3], SCI_GETTEXT($Sci))
$sTempFile = $aTabs[$iTab][3]
Else
$sTempFile = FileSaveDialog("Save", @MyDocumentsDir, "AutoIt Scripts(*.au3)", 16, "Untitled.au3")
If Not @error Then
_CheckExt($sTempFile, ".au3")
FileDelete($sTempFile)
FileWrite($sTempFile, SCI_GETTEXT($Sci))
$aTabs[$iTab][3] = $sTempFile
EndIf
EndIf
Case 2
$fCancel = True
;ExitLoop ;<----this line should be removed
EndSwitch
EndIf
If Not $fCancel Then _RemoveDoc(GUICtrlRead($tab) + 1)
EndIf
Thanks yours seems to be the same, but it works. I can't seem to find how to create the scite object. Could you let me know what I need to create just the editor in a gui.
Thanks yours seems to be the same, but it works. I can't seem to find how to create the scite object. Could you let me know what I need to create just the editor in a gui.
THanks
The editor window is created with the CreateEditor, which creates the editor as a child of $GUI, and InitEditor functions.
Recommended Posts
ConsultingJoe
Hey, Love the script. But I'm trying to use it and its throwing all kinds of errors. the compiled works great but the script is giving me recreating const errors and it doesnt know $StatusBar = _GUICtrlStatusBarCreate($GUI, -1, $aText)
Unknown function name???
Could you make it bare-bones?
Can you please update it?
THanks
Edited by CyberZeroCoolmartin
I can also supply it compiled so that the AutoIt version doesn't matter.
Edited by martinmartin
Minor problem with editor when you choose to close a file. If you select cancel the editor closes.
Fix is to this area of code, remove the line "ExitLoop" as commented.
ConsultingJoe
Thanks yours seems to be the same, but it works. I can't seem to find how to create the scite object. Could you let me know what I need to create just the editor in a gui.
THanks
martin
The editor window is created with the CreateEditor, which creates the editor as a child of $GUI, and InitEditor functions.