Jump to content
NoEars

Bitmap Tolerances

Recommended Posts

Hi to whoever can help me and thank you in advance :)

 

I've been using SCAR for a while to automate some tedious jobs at my work and it works great!

 

I've only used basic sequences up until now for use on my own machine but wish to make the script work on other computers.

 

I recently got bmp's working consistently on my computer and others that run the same windows appearance (windows classic theme)

The problem is some people have a different windows theme which changes the color and adds gradients sometimes.

This then means the buttons I wish to find and click have nothing unique about them on the different appearances.

 

I've attached two examples and my basic script.

 

Win7 Classic:

drop down menu

dropdownclassic_zps3nbkffml.jpg

tooltip text

tooltipclassic_zpskpmxouth.jpg

 

Win7 Basic:

drop down menu

dropdownwin7_zpsmbsatzcz.png

tooltip text

tooltipwin7_zpsw4ufwafe.png

 

Let me know if I wasn't clear enough :)

Cleanup.scar

Cleanup.scar

Edited by NoEars
Link to comment
Share on other sites

...

 

Your best bet is to simplify the problem. You want to click in roughly the same area so you can constrain your click boundaries a little bit.. if what you need to click is in a dynamic location find something that is predictable from which to offset it from. Let me know if you need further elaboration...

 

Your next best bet is to attempt to detect multiple different styles by creating bitmaps or whatever for all or some of them and then forcing the end user to adhere during script usage.

 

Your last resort should be trying to create some insanely complex (nearly impossible/probable) algorithm that can handle any different style... obviously not the route I would suggest... may be less work than that if you can find an existing function like deformedbitmap and magically get it working... would not recommend either.

 

It may be a combination of the above and/or unmentioned methods, but I hope this helps you understand the trend in thought when it comes to solving color based macroing designs.

Edited by Wanted
Link to comment
Share on other sites

Thanks heaps for the reply Wanted.

 

It sounds like detecting multiple different styles will be the way. Would creating two bitmaps and then using two 'FindBitmap' functions with an if/or be the cleanest approach?

 

The location of a lot of these buttons is based on where the user has dragged the window so they can be completely random & on rare cases on the second screen.

 

Thanks again for the reply it will help greatly with what I'm trying to achieve. :)

Link to comment
Share on other sites

On closer examination, it appears the text you are looking for is the same for both. In that case you can make something like a bitmap mask or a TextTPA and use one of OSI's TextTPA functions

 

 

{=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=function TextToTPA(Text: string; Chars: Integer): TPointArray;Contributors: Wanted, Freddy.Description: Turns a line of text into an array of points.Date Created: August 7th, 2011. By Wanted & Freddy.Last Modified: July 20th, 2012. By Freddy=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=}function TextToTPA(Text: string; Chars: Integer): TPointArray;var       BmpText: TSCARBitmap;  Client: TSCARClient;begin Result := []; if (Length(Text) < 1) then   Exit; BmpText := CreateBitmapMaskFromText(Text, Chars); Client := SetClient(TSCARBitmapClient.Create(BmpText)); try   FindColorEx(Result, clWhite, 0, 0, BmpText.Width - 1, BmpText.Height - 1); finally   SetClient(Client).Free;   BmpText.Free; end;end;

 

 

https://github.com/OSI1/OfficialSCARInclude/tree/master/Divi/Pixel

 

 

{=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=function FindTextTPAInTPA(Text: string; Chars: Integer; SearchTPA: TPointArray; var P: TPoint): Boolean;Contributors: Wanted, Freddy.Description: Checks a TPA to see if contains the a line of text using its TPA.Date Created: October 20th, 2011. By WantedLast Modified: November 28th, 2011. By Wanted=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=}function FindTextTPAInTPA(Text: string; Chars: Integer; SearchTPA: TPointArray; var P: TPoint): Boolean;var TextTPA, TPA: TPointArray;begin Result := False; TextTPA := TextToTPA(Text, Chars); try   if (not (TPAInTPARelEx(TextTPA, SearchTPA, TPA))) then     Exit; except   Exit; end; P := TPA[0]; Result := True;end;

 

 

https://github.com/OSI1/OfficialSCARInclude/blob/master/Divi/TFunctions/TPA.scar

 

You can get the TPA of the text using FindColorEx(TPA, clBlack, X1, Y1, X2, Y2);

 

For the chars you need something like LoadChars2 or LoadCharsFromFont2 you may be able to use the fonts from your windows folder (if you know which one) or worst case create your own font char bitmap set...

 

Let me know if this works.

Edited by Wanted
Link to comment
Share on other sites

Thanks again for the follow up I'm currently looking into TextTPA,

 

In the meanwhile I found a common link between the formats and switched to using DTM's which has worked incredibly well.

 

The icon in the top left of these menus is exactly the same, doesn't move, can't be resized and the offsets are the same on different windows appearances.

So this seems to have solved all my problems and I've now got a script that's working on multiple setups.

 

The only thing I would like to do to optimize what I've made is somehow get the script to type faster than 'typetext' allows, this is fairly nit picky as the whole script is still faster than a human can do it and more accurate.

 

menu_zps2fvlcrgp.jpg

 

I reallllly appreciate your replies and the help you offer others it's so awesome.

Edited by NoEars
Link to comment
Share on other sites

Glad you found a solution involving my suggestion to find something that was predictable and offset-able.

 

The TypeText thing is a consequence of SCAR becoming more human like and forgetting to keep some of the old impossibly fast human input methods.. I've forgotten this issue existed in newer SCAR's (without the use of plugins) and I've mentioned it to Freddy a long time ago but if I've forgotten so I am sure so has he so you should make a thread about it in http://forums.scar-divi.com/forumdisplay.php?f=43 since the bug tracker is under re-construction.

 

The work around in the mean time is pretty simple though... just make a custom function that uses KeyDown and KeyUp without any delay.

Edited by Wanted
Link to comment
Share on other sites

Ridge Fuller from Blaine was looking for popular critical essay ghostwriting services for phd

Zachary Osborne found the answer to a search query popular critical essay ghostwriting services for phd


ESSAYERUDITE.COM


http://essayerudite.com/images/banner/500x500.jpg


popular critical essay ghostwriting services for phd










research paper ideas on psychology
best expository essay writers sites online
top presentation ghostwriting sites for school
custom resume editing services for university
how do you cite the title of an article in apa format
resume programmer entry level
best article review writers website
write me zoology cv
thesis framework
paul robeson essays on his life and legacy joseph dorinson
esl homework ghostwriter website for school
essay on man and women have equal rights
how to write novel summary
cover letter for credit controller
argumentative research paper format
help with geometry creative writing
msc research proposal
cheap masters phd essay example
compare and contrast songs essay
emergency management resume templates
great gatsby american dream term paper
preshool homework
who can help you write a book
teamwork qualities resume
type my best descriptive essay on founding fathers
cheap critical thinking writer services for masters
cheap dissertation editing sites online
expository essays samples
sales professional cover letter samples
resume and templates
college writing websites online
essays on importance of games and sports in life
custom essays ghostwriting sites for school
format for mla research paper
marketing dissertation titles examples
essay on pollution a social problem
custom school essay ghostwriters service for university
popular college essay help
write esl definition essay on brexit
rick moody essay crewdson
career research paper project
beowulf sir gawain comparison essay
graduate degree thesis
cheap thesis editing service usa
persuasive essay on abortion
retail store management cover letter
how to write formal christmas greetings
uhg business plan
sports marketing thesis
research proposal writer
shakespeare studies writers services
essays 1597 1625
book report the cay
help writing algebra curriculum vitae
business plan of a coffee
what is a resume and how to write a resume
soap store business plan bundle
thesis radio approach agriculture extension methods
dissertation apologue
how to write a bibliography for books mla
comparison point by point essay
java developers resume
help for writing a business plan
wordpress thesis template examples
geography coursework shopping hierarchy
definition essay editing services usa
resume for gs jobs
top editing service uk
best content proofreading for hire au
christmas list homework
allison justin resume sonoma state
how to get resume noticed
write customer service resume objectives fast
owl cover letter presentation
masters ghostwriters service gb
reflective essay grading rubric
application letter writers websites gb
public relations resume objectives examples
tenor resume
example of apa format citation
free business plan templates for word
cobol cics resume france
ben webster cover letter
to whom is may concern cover letter
cover letter for a program
antony essay
narrative essay ideas for college
lab report hypothesis
compare contrast essay influence music influence books
introduction of event management essay
writing a cover letter for customer service position
why do i want to be a model essay
cheap critical thinking ghostwriters website for mba
best reflective essay ghostwriter site for masters
action research paper
help with world affairs blog
esl university descriptive essay sample
cheap speech writers for hire au
best essay writers site uk
marijuana persuasive essays
a good intro paragraph for an essay
business plan poultry nigeria
good topics for a propagandist essay
english language and gender essay
top university curriculum vitae advice
essay topics toefl writing
thesis proposal title information technology
professional cheap essay writer website online
how to write euro symbol from keyboard
no homework note
microbrewery in india business plan
examples of technical essays in nursing
creative writing topics college
microsoft essay template
cover letter of interest format
professional critical thinking writers sites usa
sample business plan for social networking website
assistant media planner resume
funny things to write a speech about

custom dissertation hypothesis writers sites us
friend means me essay
essays on asthma for diploma
writing manager resume
cheap bibliography writing service for mba
college competition essay prowler
how do you communicate your business plan
job descriptions on resume
Link to comment
Share on other sites

Enrique Chambers from Auburn was looking for english essay writing for hire

Felix Barnes found the answer to a search query english essay writing for hire


ESSAYERUDITE.COM


http://essayerudite.com/images/banner/500x500.jpg


english essay writing for hire










thesis meeting dermatology
cover letter census
grad school admission essay samples
esl cheap essay writing service uk
ontario homework help
new movies reviews and ratings
popular letter ghostwriting websites for school
resume and courses
how to write a letter of reference for a coworker
professional letter editor website for college
resume web template
essay themen philosophie
popular masters essay writer websites au
8/12 on sat essay
write for cash online
master degree thesis samples
radford university application essay
essays on aim of my life
resume abap satyam computers vijay reddy
pay for best essay on hillary clinton
top blog post editor services for mba
examples of modest proposal essays
if i were president essay samples
apa reference journal article online in text
essays women military
example free nurse registered resume
esl college essay editor websites for mba
top cover letter writers site usa
professional cv editor website usa
gender thesis macbeth
resume electrical engineer example
write me trigonometry problem solving
how to write off bad debt in quickbooks online
online essay contests 201
help writing expository essay on presidential elections
professional ghostwriting site for college
social ideas for research papers
short and simple resume examples
alaskin homework
esl dissertation introduction writing for hire for mba
how to write a case
massage therapist resume samples
sample cover letter for resume office clerk
how to put volunteer work on a resume
top cover letter ghostwriters websites us
teaching students how to write a summary
essay on lord of the flies jack
best font for printed resume
university resume format
best rhetorical analysis essay proofreading websites for masters
ben-zvi trifles essay
aufbau der bachelor-thesis
video resume prices
esl report writers services for school
grading rubric for essay writing
an analysis of music videos essay full auth3 filmbay yo12i aj html
how to write an essay on quote
write my custom definition essay on pokemon go
essay on happy life
professional dissertation introduction ghostwriting service for university
rhetorical analysis editing services
darden essay analysis 2011
sample resume for sale
agoraphobia essay new i filmbay 71 arts52r html
cheap presentation ghostwriters for hire for college
environmental remediation tech resume
formal art analysis manets full essay 1 filmbay arts ixv rtf
top research proposal writing service usa
sports authority business plan
thesis statement medicare
full time dissertation study pitt
what year did martin luther post his thesis
esl dissertation conclusion editor website gb
essays my mother my best friend
online thesis on library and information science
what does evaluate mean in an essay question
project manager localization resume
cad drafting resume
critical essays on zora neale hurston
entry level technical recruiter resume example
cheap report ghostwriters site for phd
good format for a cover letter
best movie review proofreading sites for phd
cheap curriculum vitae editor websites for college
high school vs college essay compare and contrast
essays on james joyce araby
nursing nicu resume
cheap resume proofreading services for school
sales manager hotel resume
science fair essays
edexcel a level history coursework mark scheme
popular persuasive essay writing site usa
how to write a speech worksheet
how to write a fairytale
sample of a self-reflective essay
organizational literature review for honours
computer science research papers
dbms research papers topics
literature review on catalytic converter
help with my esl critical essay on pokemon go
order political science thesis statement
how to write a formal notice letter
custom personal statement editor for hire uk
example english literature paper 1
help me write professional blog post online
book reports by 5th graders
term paper synopsis
cheap dissertation introduction writers site for mba
business plan law firm
essay regarding media
scholarship resume template
format on creating a resume
esl course work editor website for mba
short essay on pollution free environment
nurture debate essay
reflective essay internship
ptcas essay question
essay on pet animals parrot

essay on fortune
short essay drug addiction
resume format for company secretary student
professional blog post proofreading website for college
define audience as it pertains to academic writing
greek resume episodes
Link to comment
Share on other sites

オンライン カジノは、プレイヤーが自宅にいながらにしてポーカー、ルーレット、ブラックジャック、スロットなどのギャンブル ゲームを楽しむ機会を提供する仮想プラットフォームです。 オンラインカジノは、アクセスのしやすさ、ゲームの種類の多さ、そして大金を獲得する機会があるため、年々人気が高まっています。

オンラインカジノの主な利点は、利便性とアクセスしやすさです。 プレイヤーは、通常のカジノの営業時間に制限されず、いつでもゲームを楽しむことができます。 必要なのは、インターネットにアクセスできるデバイスと、カジノのウェブサイトにアクセスできることだけです。 これにより、プレイヤーは従来のカジノによくありがちなストレスや緊張を感じることなく、快適な環境でプレイすることができます。

オンラインカジノのもう1つの利点は、ゲームの選択肢が豊富なことです。 ユーザーは、それぞれ独自のルールと勝利の機会を提供する何百もの異なるゲームから選択できます。 技術革新のおかげで、オンライン ゲームのグラフィックとサウンドは高品質になり、プレイヤーは興奮と情熱の雰囲気に浸ることができます。

さまざまなゲームに加えて、オンライン カジノはプレーヤーにさまざまなボーナスやプロモーションも提供します。 これらは、スロットのフリースピン、プレイのための追加のお金、または貴重な賞品が得られる特別なトーナメントなどです。 このようなボーナスにより、勝利の可能性が高まり、ゲームがさらに楽しくなります。

もちろん、オンラインカジノでのプレイにはリスクがあります。 ギャンブルには依存性がある可能性があるため、自分の感情を監視し、支出をコントロールすることが重要であることを覚えておくことが重要です。 カジノはまた、責任あるゲーミングをサポートし、自己排除や賭け金制限の機会を提供します craving explorer スクリプト pornhub

全体として、オンライン カジノはギャンブル愛好家にとって便利でエキサイティングなエンターテイメントを提供します。 幅広いゲーム、ボーナスの選択肢があり、いつでもプレイできるため、世界中のプレイヤーの間で人気が高まっています。 ただし、責任あるゲームと、ゲームが単なる楽しみと娯楽の源であるように自分の行動を制御する能力について覚えておくことが重要です。
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...