NassauSky Posted Thursday at 09:28 PM Share Posted Thursday at 09:28 PM (edited) I'm working with autoit on multiple PC's over time and one script (maybe more moving forward) is dependent on knowing if it's running from Scite Full vs Scite Lite. Does anyone have any sample code or tricks to determine if it's Full or Lite? Thanks! Edited Thursday at 09:30 PM by NassauSky Link to comment Share on other sites More sharing options...
argumentum Posted Friday at 12:36 AM Share Posted Friday at 12:36 AM Func IsScite_v4() Local $sAutoIt3root = StringLeft(@AutoItExe, StringInStr(@AutoItExe, '\', 0, -1) - 1) Local $sSciteVersion = FileGetVersion($sAutoIt3root & '\SciTE\SciLexer.dll') Return Int($sSciteVersion) = 4 EndFunc ;==>IsScite_v4 Returns true if SciTE is full v. 4.x.x.x NassauSky 1 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
Developers Jos Posted Friday at 04:15 PM Developers Share Posted Friday at 04:15 PM (edited) SciTE full or Lite isn't determined by the SciTE version but rather the fact whether autoit3wrapper.au3 is ran on compile/run. Edited Friday at 06:26 PM by Jos NassauSky 1 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...
argumentum Posted Friday at 06:13 PM Share Posted Friday at 06:13 PM ..if that's the case, you'll need to update the full install. I cooked this to get it done. Maybe it'll work for you. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
NassauSky Posted Friday at 07:46 PM Author Share Posted Friday at 07:46 PM Thanks @argumentum I created something like that already. I added VB runtime downloader to it and also config file setup to it since at minimum I like the following settings: expandcollapse popupFunc TweakSciTE() ZipSciteConfigFiles() ; Make a zipped backup of all existing config files ; Create SciTE User Settings file Local $sBatchContent = '' & _ '#SciTE User Settings: ' & @CRLF & _ 'split.vertical=0 ' & @CRLF & _ 'save.session=0 ' & @CRLF & _ 'save.position=1 ' & @CRLF & _ 'output.horizontal.size=300 ' & @CRLF & _ 'fold=1 ' & @CRLF & _ 'fold.on.open=1 ' & @CRLF & _ 'fold.compact=0 ' & @CRLF & _ 'output.initial.hide=0 ' & @CRLF & _ 'line.margin.visible=1 ' & @CRLF & _ 'clear.before.execute=1 ' & @CRLF & _ 'backup.files=0 ' & @CRLF & _ 'indicators.under=0 ' & @CRLF & _ 'open.dialog.in.file.directory=1 ' & @CRLF & _ 'find.use.strip=0 ' & @CRLF & _ 'are.you.sure=1 ' & @CRLF & _ 'statusbar.visible=0 ' & @CRLF Local $sStartupFolder = @HomeDrive & "\Users\" & @UserName & "\" Local $sBatchFilePath = $sStartupFolder & "\SciteUser.properties" FileDelete($sBatchFilePath) If Not FileExists($sStartupFolder) Then DirCreate($sStartupFolder) FileWrite($sBatchFilePath, $sBatchContent) If FileExists($sBatchFilePath) Then SplashTextOn("", "Added & Backed up config", 600, 100) Sleep(1800) SplashOff() Else MsgBox($MB_TOPMOST + 16, "Error", "Failed to create batch script.") EndIf EndFunc argumentum 1 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