Is there any CodeWright forum??? i really need help
-
Hi Yaron, At first glance, strange to see something about CodeWright here on this site. But this proves still a lot of people ar using this powerful and extremely adaptable editor. In the past, I've asked the guys at StarBase (formerly known as Premia Corporation), if there was somewhere a CodeWright forum. But unfortunately, so far, it doesn't seems to exist, at least not under their 'wings'. I could have used such a forum myself also very well in the past, but I always had to find the solution myself (which is highly interesting, but sometimes also heavily time consuming... ;-) ). Anyhow, can you more specific tell us what you're looking for? Perhaps other people, who are heavily using CodeWright, can help you. Regards, Geert
-
Hi Yaron, At first glance, strange to see something about CodeWright here on this site. But this proves still a lot of people ar using this powerful and extremely adaptable editor. In the past, I've asked the guys at StarBase (formerly known as Premia Corporation), if there was somewhere a CodeWright forum. But unfortunately, so far, it doesn't seems to exist, at least not under their 'wings'. I could have used such a forum myself also very well in the past, but I always had to find the solution myself (which is highly interesting, but sometimes also heavily time consuming... ;-) ). Anyhow, can you more specific tell us what you're looking for? Perhaps other people, who are heavily using CodeWright, can help you. Regards, Geert
Hi Geert, tnx a lot for your reply, happy that an other person is looking for codewright help/forums...... let me specify my problem : I've wrote a console application using win32 API, I want to add it to codewright. I've added an icon in the tool-bar, now what I want is , when pressing the icon , a text box will be opened, and the user will be able to type in several arguments.then I want to run my console application in output->shell window using these arguments. I don't know how to do the above, I've tried to look in help with no success. can you help??? tnx again, Yaron
-
Hi Geert, tnx a lot for your reply, happy that an other person is looking for codewright help/forums...... let me specify my problem : I've wrote a console application using win32 API, I want to add it to codewright. I've added an icon in the tool-bar, now what I want is , when pressing the icon , a text box will be opened, and the user will be able to type in several arguments.then I want to run my console application in output->shell window using these arguments. I don't know how to do the above, I've tried to look in help with no success. can you help??? tnx again, Yaron
Yaron, Here is an AppBasic Macro that will do what you want. Create a file in Codewright, paste in the code below and then save it with filename of yourfile.cwb. To use it goto app basic tab and open the file. To use it press the run button. Then goto the API command dialog and type 'ExecMyUtil' (no quotes) and hit enter. It will then prompt you for an address to ping and it will then ping that address in the shell window. Once you see it works you can modify the code to ask for the parameters you would like and then Execute the command. To use the macro from a toolbar just use the function name directly. To load the cwb file so you do not need to every time you start codewright, goto the to Tools - Appbasic Macros - Load Macros menu item and in the lower section of the dialog that appears click add and then find the cwb file you created and then just click OK, now the macro will be loaded (but will no show in the AppBasic window) and be available for your toolbar. Chris **start of code** Attribute VB_Name = "ExecMyUtil" Private Sub ExecMyUtil() Dim FunctionToExec As String Dim Param1 As String Param1 = InputBox("Please enter address to ping") If Len(Param1) = 0 Then Exit Sub End If LibPreLoad "cwdosbox" 'Make sure Shell window is in place If LibFunctionExists("DosBoxExec") Then FunctionToExec = "DosBoxExec 'ping " & Param1 & "'" LibFunctionExec "DosBoxCurrent" ' Make Shell tab Current LibFunctionExec FunctionToExec Else MsgBox "Error Loading Shell Window" End If End Sub '{{CWBASIC_LOADERINFO ' cwbAddHandler 'Private Sub ExecMyUtil()', '%F' '}}CWBASIC_LOADERINFO **end of code**