peethebee Posted September 5, 2005 Posted September 5, 2005 Hi! I think that the plugins featrue is gonna be GREAT. Thank you Jon. That's why I started to download somt C++ tuts in order to learn it. I would like to code my simpel OCR program in C++ cause I think that would be much faster, woudn't it? If it could be faster, I have just 2 short questions: 1. How do I initialize a two-dim array? 2. How can I get the color of a pixel anywhere on the screen? Thank you in advance, peethebee vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
Nutster Posted September 6, 2005 Posted September 6, 2005 If it could be faster, I have just 2 short questions:1. How do I initialize a two-dim array?2. How can I get the color of a pixel anywhere on the screen?Thank you in advance, peethebee<{POST_SNAPBACK}>This probably should have been in the Support forum, but anyway.1)Dim $a2dim[2][3] = [ [ 3, 1, 4 ] , [ "Testing", 3.1415925, exp(1) ] ]2) Look at the help for the PixelGetColor function. David NuttallNuttall Computer Consulting An Aquarius born during the Age of Aquarius AutoIt allows me to re-invent the wheel so much faster. I'm off to write a wizard, a wonderful wizard of odd...
Sokko Posted September 6, 2005 Posted September 6, 2005 I thought he was asking how to do those things in C++. Hence the post in the Development forum, the mentioning that he was coding the OCR program in C++, and the asking of two questions that would have obvious help-file answers if they related to AutoIt. That was just my impression, though.
Insolence Posted September 6, 2005 Posted September 6, 2005 Yes, he is asking for the C++ code. Getting pixels is VERY slow. I don't know the C++ code for it... but my C# program (I assume you still have) has a FastBitmap class that is 30x faster, or so. I suggest writing this in C# using the code I already have. "I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.
peethebee Posted September 7, 2005 Author Posted September 7, 2005 Hi! I would take you solution, Insolence, but I would like the program to be a plugin so that you could use it easily in your program... Perhaps you can call not only C and C++ but C+ programs too, if they are exporting a DLL... (we could make a UDF which calls it via DLLCall) peethebee vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
Insolence Posted September 7, 2005 Posted September 7, 2005 Hi!I would take you solution, Insolence, but I would like the program to be a plugin so that you could use it easily in your program...Perhaps you can call not only C and C++ but C+ programs too, if they are exporting a DLL... (we could make a UDF which calls it via DLLCall)peethebee<{POST_SNAPBACK}>Yes, you can make DLL's with C# that will work with AutoIT, I assume. "I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.
Lazycat Posted September 7, 2005 Posted September 7, 2005 Yes, you can make DLL's with C# that will work with AutoIT, I assume.<{POST_SNAPBACK}>And this will require 24 mb .NET framework, right? Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s])
Insolence Posted September 7, 2005 Posted September 7, 2005 And this will require 24 mb .NET framework, right? <{POST_SNAPBACK}>Yep "I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.
peethebee Posted September 7, 2005 Author Posted September 7, 2005 Not that good if it requires .net, although most Windows PCs have it installed already I think because of other programs requiring it. peethebee vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
tuape Posted September 7, 2005 Posted September 7, 2005 Not that good if it requires .net, although most Windows PCs have it installed already I think because of other programs requiring it.peethebee<{POST_SNAPBACK}>I'm quite certain it will be faster with C/C++ than with C#
peethebee Posted September 7, 2005 Author Posted September 7, 2005 Hi!This thread is quite intersting about performance of plugins:http://www.autoitscript.com/forum/index.php?showtopic=15535peethebee vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
Nutster Posted September 7, 2005 Posted September 7, 2005 (edited) Hi!1. How do I initialize a two-dim array?2. How can I get the color of a pixel anywhere on the screen?Thank you in advance, peethebee<{POST_SNAPBACK}>Ok, time for the C/C++ answers. :"> 1)int a2dim[3][2] = { { 3, 1, 4}, {1, 5, 9} };Now where do you think I got the syntax for array initialization in AutoIt? 2) No clue. Sorry. Check the help file of your C++ compiler to see what API functions can give you that information.There have been several requests that should have been in the support forum that were posted in developers instead. I thought this might be another one of those. That is why I answered it that way. I did like the praise for plug-in, though. Edited September 7, 2005 by Nutster David NuttallNuttall Computer Consulting An Aquarius born during the Age of Aquarius AutoIt allows me to re-invent the wheel so much faster. I'm off to write a wizard, a wonderful wizard of odd...
ryeguy Posted September 9, 2005 Posted September 9, 2005 C# is slower then C++. If you rewrite it in c++ it will be even faster.
Insolence Posted September 10, 2005 Posted September 10, 2005 C# is slower then C++. If you rewrite it in c++ it will be even faster.<{POST_SNAPBACK}>How much slower? Would you like to rewrite my program in C++? "I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.
peethebee Posted September 10, 2005 Author Posted September 10, 2005 I would really enjoy you helping me, ryeguy! peethebee vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
Darth_Sulfur Posted September 14, 2005 Posted September 14, 2005 Let's all go to Microsoft to demand the discontinuation of the .NET Framework!
Insolence Posted September 16, 2005 Posted September 16, 2005 Let's all go to Microsoft to demand the discontinuation of the .NET Framework! <{POST_SNAPBACK}>Why? =\ "I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.
Insolence Posted September 16, 2005 Posted September 16, 2005 It will eventually go the way of VB... Nothing beats a quality C/C++ coder.Lar.<{POST_SNAPBACK}>What about an army of ill-educated C#'ers? "I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.
guinness Posted May 10, 2013 Posted May 10, 2013 arronlee, Please stop posting in old and outdated threads please. UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018
James Posted May 10, 2013 Posted May 10, 2013 How do these guys even find these old threads? Especially when they're here to say "yes, you're right." WHY!?!?! Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now