Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottomPage: 1234
TOPIC: ORCA Team
#11437
ORCA Team 14 Years, 8 Months ago Karma: 2
I have been working on an ORCA script for AHK, and is going well currently. It would be great though if I had access to some of the variables in EvePilot and could pass values to the AHK script.

Is it possible to get access to the result of CalcBeltToWarp? I would like to add the option of warping the fleet to this belt via AHK

Is it possible to pass values to AHK such as the result of previous return values from other functions? The algorithm editor has places to return values but it is not clear if there are spots to pass parameters.

Cheers and keep up the work on this great app.
jb69
Fresh Boarder
Posts: 20
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#11445
Re: ORCA Team 14 Years, 8 Months ago Karma: 846
jb69 wrote:
Is it possible to get access to the result of CalcBeltToWarp? I would like to add the option of warping the fleet to this belt via AHK I would never use this. Better to warp to fleet commander instead. I can add corresponding option to store current belt index to ini file.

Is it possible to pass values to AHK such as the result of previous return values from other functions? The algorithm editor has places to return values but it is not clear if there are spots to pass parametersFunction's return value is a label of the next line you define in algorithm. Integer is a temporary variable. You cannot use function and dont forward execution to the next existing label. It is possible to pass return value if you add IniWrite as a next function, then go to the function which will read ini file content. I use another method, just make different functions do different staff on different return values.
Slav2
Admin
Posts: 17109
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Send logs to my mail slav2@list.ru with subject 'log files' to pass spam filter.
How to record logs in knowledge base
Contact me in telegram
 
#11447
Re: ORCA Team 14 Years, 8 Months ago Karma: 2
Yeah I had considered that too, I will probably follow your advice and warp to fleet commander for now.

I understand how the result codes are working, I am trying to avoid having multiple instance of the same function to deal with taking a different path several steps after the function the decision was made. I will probably do as you have in your algorithms and use multiple instances of the functions.

I noticed in an earlier post someone asked about writing custom C# modules as functions. Is this possible? if not this could be implemented by listing classes that meet the required interface description to be listed in a config file. You application can then load these at runtime and extract descriptors etc to include in the algorithm builder.

Cheers for your help
jb69
Fresh Boarder
Posts: 20
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#11452
Re: ORCA Team 14 Years, 8 Months ago Karma: 846
To connect any function written in c# to eve pilot I need source of a function which accept "object" as parameter and return Int32 as result. If you supply me with interface (with the same IName as function) with all variables used by function, I can pass this interface as object and you may use function with preinitialized variables (dont need to write vars to ini file every call). Variables should be named as NameOfTheInterface_NameOfVariable.
Slav2
Admin
Posts: 17109
graph
User Offline Click here to see the profile of this user
Last Edit: 2011/07/07 02:09 By Slav2.
The administrator has disabled public write access.
Send logs to my mail slav2@list.ru with subject 'log files' to pass spam filter.
How to record logs in knowledge base
Contact me in telegram
 
#11639
Re: ORCA Team 14 Years, 8 Months ago Karma: 2
When calling Autohotkey from the algorithm builder there are 5 parameters that can be set. The last parameter looks like it used to describe an entry in an ini file the script can set to return a value to use in the branching logic (0-5). When I set this value to my.ini|section|key I get an error when adding the step "Parameter must be an integer 0-4"

Is my understanding of these parameter wrong? or is this an unexpected behavior

Cheers
jb69
Fresh Boarder
Posts: 20
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#11640
Re: ORCA Team 14 Years, 8 Months ago Karma: 846
This is a bug. Parameter itself should be string of cause - path to value stored in ini file, which can be modified by ahk script. Will fix in new version.
Slav2
Admin
Posts: 17109
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Send logs to my mail slav2@list.ru with subject 'log files' to pass spam filter.
How to record logs in knowledge base
Contact me in telegram
 
Go to topPage: 1234
Moderators: Slav2
© Macro Laboratory 2026
All rights reserved!
Design by Ivan Kozyrin