Page 2 of 2 <12
Topic Options
#148572 - 2005-09-29 12:35 AM Re: Which scripting language is best for my task?
OLELukoE Offline
Fresh Scripter

Registered: 2005-09-27
Posts: 13
I had another thought: if Autoit has a library AutoitX3.dll, can I use the functions from this library not just in Kix, but say in C++? I'm sure it's a silly question, I just haven't done any programming under Windows yet. If I can use AutoIt functions in C++, that would be ideal, because then I could essentially write the whole program (Decider+Script) in C++.
Top
#148573 - 2005-09-29 01:50 AM Re: Which scripting language is best for my task?
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Yes you can, but it aint pretty. You say you never programmed in C++ under Windows ?
Top
#148574 - 2005-09-29 01:51 AM Re: Which scripting language is best for my task?
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
I'm telling ya Assembler is the way to go. You'll have full control of anything you want.

http://nasm.sourceforge.net

http://eji.com/a86/

http://info.borland.com/borlandcpp/cppcomp/tasmfact.html

http://www.masm32.com/
http://www.masm32.com/masmmyth.htm

Microsoft Assembler 6.14 patch
http://support.microsoft.com/kb/228454/
NOTE:
MASM 6.11 is no longer available as a retail product. MASM 6.11 is included with some levels of the Microsoft Developer Network (MSDN). You can order MSDN by contacting Microsoft Sales and Service at 1-800-426-9400.

Top
#148575 - 2005-09-29 09:50 AM Re: Which scripting language is best for my task?
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Quote:

I'm telling ya Assembler is the way to go. You'll have full control of anything you want




I started to think about handling objects in assembler and the distress caused me to pass out.

It's bad enough in C, but assembler? Nurse!

Top
#148576 - 2005-09-29 11:30 AM Re: Which scripting language is best for my task?
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Not sure if Ruud still does any portions of KiXtart with Assembler any more, but he used to.
Top
#148577 - 2005-09-29 12:14 PM Re: Which scripting language is best for my task?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
maybe not.
all we know that part of kixtart code is/was done with assembler.
who did it or which part is in question, we can't know.
_________________________
!

download KiXnet

Top
#148578 - 2005-09-30 12:16 PM Re: Which scripting language is best for my task?
OLELukoE Offline
Fresh Scripter

Registered: 2005-09-27
Posts: 13
Quote:

I had another thought: if Autoit has a library AutoitX3.dll, can I use the functions from this library not just in Kix, but say in C++? I'm sure it's a silly question, I just haven't done any programming under Windows yet. If I can use AutoIt functions in C++, that would be ideal, because then I could essentially write the whole program (Decider+Script) in C++.




So what would you say is easier: use AutoIt (or Kixstart) functions in C++ or write my own functions for getting the color of pixels, moving the mouse, etc. in C++? Or maybe there's some other way to integrate an AutoIt/Kixstart script and a C++ program (which I called Decider earlier) that I'm overlooking?

Top
#148579 - 2005-09-30 02:15 PM Re: Which scripting language is best for my task?
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
How much effort do you want to put into this?

KiXtart + AutoIT is easy to get into and start scripting. You could have something up and running inside a few hours.

C++ has a very high learning curve. If you don't already know C++ or another object oriented language it is going to be days before you have even the basics of your project working, and debugging / enhancing it will take longer.

On the other hand, KiXtart cannot perform all the tasks that C++ can. It simply doesn't have the ability to handle certain data types or call the same APIs that C++ can.

To select the right language you must start by determining your final goal.

If your project is as simple as reading a graphical object, detecting a mouse click then clicking on a button then KiXtart + AutoIT will be fine.

Top
#148580 - 2005-09-30 09:58 PM Re: Which scripting language is best for my task?
OLELukoE Offline
Fresh Scripter

Registered: 2005-09-27
Posts: 13
Let's assume that I have to use C++ in any case - for writing the algorithm that decides which button to click. The only question now is which option is easier:
1. Somehow figure out how to call the AutoIT functions (for getting pixels and moving the mouse) from the C++ program
2. Somehow figure out how to call the C++ program from the AutoIT/Kixtart script.
3. Write everything in C++

Top
#148581 - 2005-09-30 10:56 PM Re: Which scripting language is best for my task?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
2) you can call your c++ program from kixtart by just:
shell "myprogram"

there is nothing really to figure.
_________________________
!

download KiXnet

Top
#148582 - 2005-10-01 03:46 AM Re: Which scripting language is best for my task?
OLELukoE Offline
Fresh Scripter

Registered: 2005-09-27
Posts: 13
I should have been more clear in my description of option 2: Because the process is cyclic (determine picture -> decide which button (using algorithm written in C++)-> click the button -> determine picture -> etc.), I don't want to keep calling the program from hard disk. Script and Decider should both be running and somehow communicating, that's what option 2 entails. So back to the question: which option is better?
Top
#148583 - 2005-10-01 07:55 AM Re: Which scripting language is best for my task?
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Well if you can do this other part in C++ then I see no need to use KiXtart Scripting. When the selection is made you can easily have C++ do whatever else it is you're wanting to do.
Top
#148584 - 2005-10-01 10:22 AM Re: Which scripting language is best for my task?
OLELukoE Offline
Fresh Scripter

Registered: 2005-09-27
Posts: 13
Do you mean I can easily have C++ figure out the colors of the pixels and move the mouse?
Top
#148585 - 2005-10-01 10:57 AM Re: Which scripting language is best for my task?
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Not saying it would be easy, I'm saying that IF you can program the other part in C++ then doing anything else should be easy to do as well.

However, if you have no experience with programming then writing what you want on your own will NOT be easy. Using a mixture of Autoit and KiXtart as explained will probably be your only real chance at this point in time until some point in time when you learn how to do it in C++

VB or C# might be able to do it as well and I think they would have a less steep learning curve as compared to C++

Top
#148586 - 2005-10-01 04:39 PM Re: Which scripting language is best for my task?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
I'm really curious what the underlying purpose it to write this script/task? It's sounds like trying to automate a task that was more or less deliberately set up to require manual intervention?
_________________________
There are two types of vessels, submarines and targets.

Top
#148587 - 2005-10-01 10:04 PM Re: Which scripting language is best for my task?
OLELukoE Offline
Fresh Scripter

Registered: 2005-09-27
Posts: 13
This is actually a business idea, that's why I've been somewhat secretive about the exact purpose of the program. But if it works out, I'll let you guys know
Top
#148588 - 2005-10-02 02:47 AM Re: Which scripting language is best for my task?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Well then KiX might not be your best route unless you work out a licensing deal with Ruud.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 2 of 2 <12


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 248 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.074 seconds in which 0.03 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org