forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Built In Console Support
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Tue Jul 15, 2003 7:52 am    Post subject: Reply with quote

Here's the line:

%A = @lib(kernel32,WriteConsoleA,INT:,%%hConsoleOut,@addr("%B"),@sum(@len(%B),1),NIL:,NIL:)

I did eventually save the file, but the error still occurs.

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Tue Jul 15, 2003 10:31 am    Post subject: Reply with quote

In win 9x this occurs and removing A doesnt help . I dont think its related to ANSI/Unicode may related to window title /something else. I newer went into depth though Neutral
_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Tue Jul 15, 2003 1:56 pm    Post subject: Reply with quote

Garrett wrote:
Here's the line:

%A = @lib(kernel32,WriteConsoleA,INT:,%%hConsoleOut,@addr("%B"),@sum(@len(%B),1),NIL:,NIL:)

I did eventually save the file, but the error still occurs.

-Garrett


Ok I think it is your antique OS Wink

Acutally let me do some research on this... It could be that WriteConsoleA has requirements for Win9x that are not being met with this script.

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Tue Jul 15, 2003 2:11 pm    Post subject: Reply with quote

Garrett wrote:
Here's the line:

%A = @lib(kernel32,WriteConsoleA,INT:,%%hConsoleOut,@addr("%B"),@sum(@len(%B),1),NIL:,NIL:)

I did eventually save the file, but the error still occurs.

-Garrett


Ok We may need to pass the address of a variable for the 4th parameter of this function for it to work with Win9x. I was lazy and tried to get away with as few variables as possible. I will update my code in my previous post. Garrett can you please try it when you log on and let me know if it fixes the problem. This should not cause a problem with other versions of Windows. Also it may be that WriteConsole is spelled differently in your version of kernel32.dll Like _WriteConsoleA or __WriteConsoleA or with the function's ordinal number. I am just not sure Question

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Tue Jul 15, 2003 2:17 pm    Post subject: Reply with quote

Also I am having trouble using the SetConsoleCursorPosition function. If I can get more info about these other Console functions and make them all work I will build a VDS Unit...
_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Tue Jul 15, 2003 3:24 pm    Post subject: Reply with quote

OK minpower it now works on Win 9x too Smile
BTW it look funny that one starts a 32 bit GUI which brings up a antique 16 bit command window asking to enter name ! Laughing

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Tue Jul 15, 2003 3:31 pm    Post subject: Reply with quote

CodeScript wrote:
OK minpower it now works on Win 9x too Smile
BTW it look funny that one starts a 32 bit GUI which brings up a antique 16 bit command window asking to enter name ! Laughing


Hey this is not my Idea...Ask FreezingFire about that Wink hehehehehe
BTW I figured out what was wrong with moving the cursor around in the console screen. I have fixed it and will be finishing my VDS unit to make console apps possible with VDS 5 very soon. Also I will be adding the ability to load files into the console app as well using ReadFile and WriteFile functions. Also I believe it is possible to spawn batch files into the console window too using VDS'es shell command. Because the console window is a shared window for the process the batch file should show in the already allocated console window.

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Wish List All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group