#148572 - 2005-09-29 12:35 AM
Re: Which scripting language is best for my task?
|
OLELukoE
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
|
|
|
|
#148575 - 2005-09-29 09:50 AM
Re: Which scripting language is best for my task?
|
Richard H.
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
|
|
|
|
#148578 - 2005-09-30 12:16 PM
Re: Which scripting language is best for my task?
|
OLELukoE
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
|
|
|
|
#148580 - 2005-09-30 09:58 PM
Re: Which scripting language is best for my task?
|
OLELukoE
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
|
|
|
|
#148582 - 2005-10-01 03:46 AM
Re: Which scripting language is best for my task?
|
OLELukoE
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
|
|
|
|
#148584 - 2005-10-01 10:22 AM
Re: Which scripting language is best for my task?
|
OLELukoE
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
|
|
|
|
#148587 - 2005-10-01 10:04 PM
Re: Which scripting language is best for my task?
|
OLELukoE
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
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 248 anonymous users online.
|
|
|