Forum Replies Created
- 
		AuthorPosts
 - 
		
			
				
Windows Defender delete the complete folder or only the exe?
It’s the same with me from time to time that Defender delete a compiled exe. My solution was, to exclude the folders in Defender.
To release a Application, you need maybe a digital signature?!latest graphicard driver installed?!
I had the same problem, but after updating it worked. HP notebook 7 years old.
Monkey2 only support single windows at the moment.
But i use a modded Ted2go version do undock the views(Output,Debug etc)
So it works for me(unofficially more than one window works). Also you can use Monkey2 with more than one screen.Tested in Windows 10 x64, Window 7 x64, x32 and Ubuntu 18.04 LTs X64
nice
Very good work
I love the editor, but one feature i still miss. Local vars not parse. See Gif.
And is it possible to make a fullsreen mode, like Sublime TextAttachments:
Maybe this?!
Monkey123456789101112Function CurrentDate:String()Local t:Time=Time.Now()Local ts:String=t.ToString()Return ts.Slice(4,15)EndFunction CurrentTime:String()Local t:Time=Time.Now()Local ts:String=t.ToString()Return ts.Slice(16)EndOn my machine(Windows 10, monkey2 1.1.07) no error…
Little late, but here a little Chat Server/Client App for 1.1.07
Server.monkey2
Monkey123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153Namespace serverChatSample#import "<std>"#import "<mojo>"Using std..Using mojo..Const HOST:="localhost" 'Note: Use "" for 'public' host?Const PORT:=40122Class ServerDemoMethod New()New Fiber( Server )EndMethod Server()Local server:=Socket.Listen( HOST,PORT )If Not server Print "Server: Failed to create server" ; ReturnPrint "Server @"+server.Address+" listening"server.SetOption( "SO_REUSEADDR",1 )server.SetOption( "TCP_NODELAY",1 )RepeatLocal socket:=server.Accept()If Not socket ExitPrint "Server accepted client @"+socket.PeerAddressLocal stream:=New SocketStream( socket )New Fiber( Lambda()RepeatLocal line:=stream.ReadSizedString()Local command:StringLocal _var1:StringIf Not line ExitPrint line+" from client @"+socket.PeerAddressIf(line.Contains("/_join_ "))ThenNew Client(line.Replace("/_join_ ",""),socket,stream)line=""Endifif(line.Contains("/"))ThenLocal c:string[]=line.Split(" ")Print c.LengthIf(c.Length>1)command=c[0]_var1=c[1]Endifline=""EndifIf(command)line=""Select commandCase "/nick"line="***"+Client.ReturnUserName(socket)+" is now known as "+_var1Client.ChangeUserName(socket, _var1)Defaultline="WRONG COMMAND"End SelectEndifIf(line)if(command)command=""_var1=""Elseline=Client.ReturnUserName(socket)+": "+lineEndif'Sending to allFor Local c:Client=Eachin Client.clientListc.clientSocketStream.WriteSizedString(line)NextEndifForeverstream.Close();Print "Stream Closed"End )ForeverPrint "Server:Bye"server.Close()EndEnd'Client ClassClass ClientField clientSocket :SocketField clientName :StringField clientSocketStream :SocketStreamGlobal clientList :List<Client> = New List<Client>Method New(name:String, socket:Socket, stream:SocketStream)Self.clientSocket=socketSelf.clientName=nameSelf.clientSocketStream=streamclientList.AddLast(Self)EndFunction ReturnUserName:String(socket:Socket)For Local c:Client=Eachin Client.clientListif(c.clientSocket.PeerAddress=socket.PeerAddress)Then Return c.clientNameNextReturn "Anonymous"EndFunction ChangeUserName(socket:Socket, newName:String)For Local c:Client=Eachin Client.clientListif(c.clientSocket.PeerAddress=socket.PeerAddress)Then c.clientName=newNameNextEndEnd'--MainFunction Main()New AppInstanceNew ServerDemoApp.Run()EndClient.monkey2
Monkey123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142Namespace clientChatSample#Import "<std>"#Import "<mojo>"#Import "<mojox>"Using std..Using mojo..Using mojox..Const HOST:="localhost" 'Note: Use "" for 'public' host?Const PORT:=40122Class ClientDemo Extends WindowGlobal sendLine :StringGlobal firstrun :BoolGlobal mainView :DockingViewGlobal chatView :TextViewGlobal inputField :TextFieldGlobal sendButton :ButtonGlobal stream :SocketStreamGlobal client :SocketMethod New()Super.New( "Client Chat Sample", 800, 600, WindowFlags.Resizable )'----chatView=New TextViewchatView.ReadOnly=TruechatView.Text="Commands without quotes:~n'/exit' Terminate the Chat Client~n'/nick newUserName' Change the UserName~n"inputField=New TextFieldinputField.Text="user"+Millisecs()'Randome User NamesendButton=New Button("Send")'----mainView=New DockingViewmainView.AddView(chatView,"top","90%")mainView.AddView(inputField,"left","90%")mainView.AddView(sendButton,"right","10%")Local sendLineLambda:=Lambda()sendLine=inputField.TextinputField.Text=""'chatline CommandsSelect sendLineCase "/exit" 'Terminate AppApp.Terminate()End SelectIf Not(firstrun)New Fiber( Client )EndifEnd'----sendButton.Clicked=Lambda()sendLineLambda()End'----inputField.Entered=Lambda()sendLineLambda()EndContentView=mainViewEndMethod Client()Local receiveLength:IntchatView.AppendText("Client: Try to connect to Server("+HOST+":"+PORT+")~n")Fiber.Sleep( .5 )client=Socket.Connect( HOST,PORT )If Not client'Print "Client: Couldn't connect to server"chatView.AppendText("Client: Couldn't connect to server~n")ReturnEndif'Print "Client @"+client.Address+" connected to server @"+client.PeerAddresschatView.AppendText("Connected to server @"+client.PeerAddress+"~n")client.SetOption( "TCP_NODELAY",1 )stream=New SocketStream( client )Repeatif(sendLine)If not(firstrun)stream.WriteSizedString("/_join_ "+sendLine)firstrun=TrueElsestream.WriteSizedString(sendLine)EndifsendLine=""Endifif(receiveLength<client.CanReceive)chatView.AppendText(stream.ReadSizedString()+"~n")receiveLength=client.CanReceiveEndifFiber.Sleep(.01)ForeverPrint "Client:Bye"stream.Close()EndEnd'--MainFunction Main()New AppInstanceNew ClientDemoApp.Run()EndI miss Autocomplete for local…is this a design choice?
Nice IDE btw
 - 
		AuthorPosts
 
