Welcome, Guest
Please Login or Register.    Lost Password?

Working on D-Scan Method
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Working on D-Scan Method
#36461
Working on D-Scan Method 5 Years, 2 Months ago Karma: 33
Slav, I never thought I'd meet someone who checked their email less than I do...

My main question is how can I add it to the editor. (I see the AutoHotkey method but I could use a few pointers.) Otherwise just looking for pointers on things like Send/SendPlay and OCR efficacy. The AutoHotkey forums OCR module doesn't have a great track record with me so far.

My thoughts on placement:

  • Share the Bookmarks area (Local NOT expanded)

  • Be worked in before or after CheckLocal due to their similar functions



Working thus far:

  • Open the D-Scanner

  • Scan

  • Get scanned signature details

  • Check D-Scan data against list of friendlies

  • If Error, Returns 0

  • If Avoid not required, Returns 1

  • If Avoid required, Returns 2



To do (not expecting too much trouble here):

  • Scan Window Open/On-Top Detection (Figured out, but would probably belong in OpenWindow)

  • Check if Overview Preset box selected

  • Select Overview setting for scanning



I'm starting to wonder if I've wasted my time, but I couldn't get into contact and had some time to kill.
innominate
Gold Boarder
Posts: 632
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#36463
Re: Working on D-Scan Method 5 Years, 2 Months ago Karma: 703
Hi,

So you need a help with 3 functions?

1) Scan Window Open/On-Top Detection (Figured out, but would probably belong in OpenWindow)
2) Check if Overview Preset box selected
3) Select Overview setting for scanning


1) Built in function OpenWindow is not confirured to open D-scanner window. Need to implement some detection method. LIke bot is checkig for a window before it opened, and if not found opening and checking again. If window found more likely it is on the top. If window initially opened, better to close it and reopen to make sure it is on the top.

2) When you detected position of a window use relative coordinates to a checkbox. Find a pixel which switch its state when you tick checkbox. Make sure relative coordinated do not change when you resize window or you will need to detect window size (left, top, right or bottom) and recalculate coordinate of a checkbox from these values.

3) Do you mean selecting correct overview preset? Pause bot during first run and edit some of presets to show what you need in this preset then unpause bot. Your preset settings will be saved and bot will load them every login. Use CheckPreset function to switch to this preset.
Slav2
Admin
Posts: 14894
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Send logs to my mail - with subject 'log files' to pass spam filter.
How to record logs in knowledge base
 
#36467
Re: Working on D-Scan Method 5 Years, 2 Months ago Karma: 33
Awesome, how do I add a new .AHK script to the Algorithm Editor?
innominate
Gold Boarder
Posts: 632
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#36470
Re: Working on D-Scan Method 5 Years, 2 Months ago Karma: 33
Sorry to be a pain, but I think I've found a lot of what I'm looking for...

Okay, so I can use the AutoHotkey method
Can you please give an example for how to use Param5 and Results 2-4?



To use TextReader method (Is this single or multi-line?)
create Ini file
Within Ini file
What do you mean by "Reads information from user defined ini file, section [TextReader]"? Example?
X=[XCoordinate]
Y=[YCoordinate]
W=[Width in pixels?]
Text= (Leave this blank and the TextReader method will write the results back to here?)

(AHK is so weird! Is it possible to do this in C#? Wait, maybe... I remember reading that AHK can run methods from DLLs and such... Hmmm.)
innominate
Gold Boarder
Posts: 632
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2015/04/23 14:33 By innominate.
The administrator has disabled public write access.
 
#36473
Re: Working on D-Scan Method 5 Years, 2 Months ago Karma: 703
Param5 is a path to a key in ini file (e.g. myahkvariables.ini|variables|exitcode) where you store your return value from ahk script. This return value must be set by ahk script at the end of a work.

If you set param5, all results codes will be taken from ini file. Otherwise, result 2 means script exited without errors. results 3-4 not used if you dont set param5.

Text reader reads only one font (like in local chat window). You point out coordinate (base line of a text) and width of scan area. Quite old method, now bot can search text in full screen or in some area, but I did not wrap this to a function in algorithm editor.

First version of the bot (SimpleMiner) was written in autohotkey. So it is not very wierd language if you have hands
Slav2
Admin
Posts: 14894
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Send logs to my mail - with subject 'log files' to pass spam filter.
How to record logs in knowledge base
 
#36476
Re: Working on D-Scan Method 5 Years, 2 Months ago Karma: 33
I'm not a developer by trade, moderately close to it though and do it occasionally. I do appreciate the clarification.

TextReader X-Y coordinate is top or bottom left of text?

I'm trying to understand how to structure the ini file. I'm guessing [edit] like this.
innominate
Gold Boarder
Posts: 632
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2015/04/24 14:50 By innominate.
The administrator has disabled public write access.
 
Go to topPage: 12
Moderators: Slav2
© Macro Laboratory 2020
All rights reserved!
Design by Ivan Kozyrin