Need a list of missing Keywords for FBIDE 0.4.6

General discussion for topics related to the FreeBASIC project or its community.
Post Reply
mrminecrafttnt
Posts: 131
Joined: Feb 11, 2013 12:23

Need a list of missing Keywords for FBIDE 0.4.6

Post by mrminecrafttnt »

I need an update of the Keywords in FBIde 0.4.6 for fbc 1.09.0
Can any one make this for us? Or how can i do it self?

Greeting! :)
dodicat
Posts: 7983
Joined: Jan 10, 2006 20:30
Location: Scotland

Re: Need a list of missing Keywords for FBIDE 0.4.6

Post by dodicat »

Run this to get the latest list.
Just click OK, I have inserted the site as default.
Two text files appear, pick the one you need.

Code: Select all


dim as string g
g += "Const TriStateTrue = -1 ' forUnicode support"+chr(10)''-1
g += "URL = InputBox(""Enter (or paste) the URL to extract the Code ""&vbcr&vbcr&_"+chr(10)
g += """Exemple """"https://www.freebasic.net/wiki/CatPgFullIndex """""",""Extraction of Source text and html  "",""https://www.freebasic.net/wiki/CatPgFullIndex"")"+chr(10)
g += "If URL = """" Then WScript.Quit"+chr(10)
g += "Titre = ""Extraction du Code Source de "" & URL"+chr(10)
g += "Set ie = CreateObject(""InternetExplorer.Application"")"+chr(10)
g += "Set objFSO = CreateObject(""Scripting.FileSystemObject"")"+chr(10)
g += "ie.Navigate(URL)"+chr(10)
g += "ie.Visible=false"+chr(10)
g += "DO WHILE ie.busy"+chr(10)
g += "LOOP"+chr(10)
g += "DataHTML = ie.document.documentElement.innerHTML"+chr(10)
g += "DataTxt = ie.document.documentElement.innerText"+chr(10)
g += "strFileHTML = ""CodeSourceHTML.txt"""+chr(10)
g += "strFileTxt = ""CodeSourceTxt.txt"""+chr(10)
g += "Set objHTMLFile = objFSO.OpenTextFile(strFileHTML,2,True, TriStateTrue)"+chr(10)
g += "objHTMLFile.WriteLine(DataHTML)"+chr(10)
g += "objHTMLFile.Close"+chr(10)
g += "Set objTxtFile = objFSO.OpenTextFile(strFileTxt,2,True, TriStateTrue)"+chr(10)
g += "objTxtFile.WriteLine(DataTxt)"+chr(10)
g += "objTxtFile.Close"+chr(10)
g += "ie.Quit"+chr(10)
g += "Set ie=Nothing"+chr(10)
g += " Ouvrir(strFileHTML)"+chr(10)
g += " Ouvrir(strFileTxt)"+chr(10)
g += "wscript.Quit"+chr(10)
g += "Function Ouvrir(File)"+chr(10)
g += "    Set ws=CreateObject(""wscript.shell"")"+chr(10)
g += "    ws.run ""Notepad.exe ""& File,1,False"+chr(10)
g += "end Function"+chr(10)


function savefile(filename As String,p As String) as string
    Dim As long n=freefile
    If Open (filename For Binary Access Write As #n)=0 Then
        Put #n,,p
        Close
    Else
        Print "Unable to save " + filename:sleep:end
    End If
    return filename
End function

Sub runscript(filename As String) 
  Shell "cscript.exe /Nologo "+ filename 
End Sub


savefile("script.vbs",g)
runscript("script.vbs")
kill "script.vbs"
sleep
 
fxm
Moderator
Posts: 12107
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Need a list of missing Keywords for FBIDE 0.4.6

Post by fxm »

FBIde is from 2006, so recognized keywords stop at that date.
You can also complete them using the 'View/Settings/Keywords' menu, or directly editing the '.....\IDE\fbfull.lng' file.
dodicat
Posts: 7983
Joined: Jan 10, 2006 20:30
Location: Scotland

Re: Need a list of missing Keywords for FBIDE 0.4.6

Post by dodicat »

Copying the text file created from my above vscript code and pasting it into fbide will show quickly what you need to add.
For instance the first few are new.
__DATE_ISO__
__FB_64BIT__
__FB_ARG_COUNT__
__FB_ARG_EXTRACT__
__FB_ARG_LEFTOF__
__FB_ARG_RIGHTOF__
I have always used fbide but have never updated the View/Settings/Keywords.
I would say at least a half hours work is needed for this update task, maybe more. I cannot think of an easy way to automate it.
But it would be fun trying to code a method.
SARG
Posts: 1763
Joined: May 27, 2005 7:15
Location: FRANCE

Re: Need a list of missing Keywords for FBIDE 0.4.6

Post by SARG »

Use iup_fb_editor : viewtopic.php?p=237990#p237990

it's simple but powerfull and always maintened.
hhr
Posts: 208
Joined: Nov 29, 2019 10:41

Re: Need a list of missing Keywords for FBIDE 0.4.6

Post by hhr »

I like FBIde. It is fast, easy to use and has everything I need.
In particular, I appreciate View/Format/Auto indent.

I would like to try this, but don't know how to do it: https://github.com/albeva/fbide
hhr
Posts: 208
Joined: Nov 29, 2019 10:41

Re: Need a list of missing Keywords for FBIDE 0.4.6

Post by hhr »

I have looked at IUP_FB_Editor32.
The editor needs msvcr100.dll and msvcp100.dll from 'Microsoft Visual C++ 2010 x86 Redistributable'.
The editor has my favorite feature AutoIndent. I will try it out further.
srvaldez
Posts: 3379
Joined: Sep 25, 2005 21:54

Re: Need a list of missing Keywords for FBIDE 0.4.6

Post by srvaldez »

hhr wrote: Mar 18, 2023 20:28 I would like to try this, but don't know how to do it: https://github.com/albeva/fbide
click on releases and then click on assets you will then see your download options
I did a virustotal check on fbide.exe and here's the result

Code: Select all

Security vendor 	Result 	Update
VBA32 	malicious 	20230317
SymantecMobileInsight 	type-unsupported 	20230119
Trustlook 	type-unsupported 	20230319
Avast-Mobile 	type-unsupported 	20230319
BitDefenderFalx 	type-unsupported 	20230203
Ikarus 	type-unsupported 	20230319
Bkav 	undetected 	20230319
Lionic 	undetected 	20230319
Elastic 	undetected 	20230302
MicroWorld-eScan 	undetected 	20230319
CMC 	undetected 	20230312
CAT-QuickHeal 	undetected 	20230319
McAfee 	undetected 	20230319
Cylance 	undetected 	20230316
Zillya 	undetected 	20230317
Sangfor 	undetected 	20230317
K7AntiVirus 	undetected 	20230319
Alibaba 	undetected 	20190527
K7GW 	undetected 	20230319
CrowdStrike 	undetected 	20220812
BitDefenderTheta 	undetected 	20230313
VirIT 	undetected 	20230317
Cyren 	undetected 	20230319
Symantec 	undetected 	20230318
tehtris 	undetected 	20230319
ESET-NOD32 	undetected 	20230319
APEX 	undetected 	20230319
Avast 	undetected 	20230319
ClamAV 	undetected 	20230319
Kaspersky 	undetected 	20230319
BitDefender 	undetected 	20230319
NANO-Antivirus 	undetected 	20230319
ViRobot 	undetected 	20230319
Rising 	undetected 	20230319
TACHYON 	undetected 	20230319
Emsisoft 	undetected 	20230319
Baidu 	undetected 	20190318
F-Secure 	undetected 	20230319
DrWeb 	undetected 	20230319
VIPRE 	undetected 	20230319
TrendMicro 	undetected 	20230319
McAfee-GW-Edition 	undetected 	20230319
Trapmine 	undetected 	20230103
FireEye 	undetected 	20230319
Sophos 	undetected 	20230319
Paloalto 	undetected 	20230319
Jiangmin 	undetected 	20230318
Webroot 	undetected 	20230319
Google 	undetected 	20230319
Avira 	undetected 	20230319
Antiy-AVL 	undetected 	20230319
Microsoft 	undetected 	20230319
Gridinsoft 	undetected 	20230319
Xcitium 	undetected 	20230319
Arcabit 	undetected 	20230319
SUPERAntiSpyware 	undetected 	20230319
ZoneAlarm 	undetected 	20230319
GData 	undetected 	20230319
Cynet 	undetected 	20230319
AhnLab-V3 	undetected 	20230319
Acronis 	undetected 	20230219
ALYac 	undetected 	20230319
MAX 	undetected 	20230319
Malwarebytes 	undetected 	20230319
Zoner 	undetected 	20230318
TrendMicro-HouseCall 	undetected 	20230319
Tencent 	undetected 	20230319
Yandex 	undetected 	20230318
SentinelOne 	undetected 	20230216
MaxSecure 	undetected 	20230315
Fortinet 	undetected 	20230319
AVG 	undetected 	20230319
Panda 	undetected 	20230319
the only malicious report is by vba32 but it simply states malicious without elaborating
hhr
Posts: 208
Joined: Nov 29, 2019 10:41

Re: Need a list of missing Keywords for FBIDE 0.4.6

Post by hhr »

For testing I compiled IUP_FB_Editor32 myself. You need source.zip and iup_fb_editor32.zip for this.
I copied all five dll files from the root directory of iup_fb_editor32.zip into the folder source and started build.bat.
In build.bat I replaced -exx with -g in the first line. That eliminated the objection in VirusTotal.
None of the other files are objected, so it can probably just be a random problem.

You can get 'Microsoft Visual C++ 2010 x86 Redistributable' from the following site:
https://learn.microsoft.com/en-us/cpp/w ... w=msvc-170
One selects vcredist_x86.exe or vcredist_x64.exe from 'Visual Studio 2010 (VC++ 10.0) SP1'.

Translated with www.DeepL.com/Translator (free version)
Post Reply