-
Posts
22 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
eKolin's Achievements

Seeker (1/7)
0
Reputation
-
I'm not quite sure what is algorithm, but i think that i need sudoku algorithm written in au3. I will provide unsolved sudoku data and i need to get solved sudoku data.
-
;Hello everyone! I have been working on a huge project (atleast seems huge to me), almost all pieces polished, but i'm missing a sudoku solver. I'm already burnt out, getting sick by only looking at code. Was searching for some solvers on the internet written in au3, but i didin't find a single one that i could modify to be like this: P.s. don't hate me pls, i've wrote this thread through my phone $square1=5 $square2=0 $square3=0 ;And i would type like this whole 81 squares, well not me, the script would find the values (btw the counting is horizontaly, by rows). ;And then i need output $SSquare=5 $SSquare=9 $SSquare=4 ;Something like that, c'mon guys i know u're awesome, i know that some of you have some free time. I'm really burnt out and I want to finish it ASAP. Basicly i want to leach some1 sudoku script. I will add one more question: Would this work? And if not how to fix it? I would need to do this for 81 squares so i want to save some time. I have a chance to figure out how to do this one myself, but not that first question. ;There are images instead of numbers, pretty unusuall ha? Func LookSquare($x,$y,$x1,$y1) $Value0 = _ImageSearchArea("0.bmp",1,$x,$y,$x1,$y1,10,0) If $Value0 = true Then ;I have no ideas for this part, i need that it would say $square1=0. If i just declare $square1=0 then every time i do LookSquare() it will provide info for $square1. EndIf $Value1 =.. ;You get the point, everything repeats till number 9 Endfunc So I need to get 81 squares data, only way allowed is through image search.
-
eKolin reacted to a post in a topic: WinActivate question
-
Thanks. Seems strange that i didin't need "&" for like a month. Well, I've started doing it every time before I post. This time i've failed to find it, because i didin't know what to search for exactly.
-
eKolin reacted to a post in a topic: WinActivate question
-
Hello. I want to include a variable in WinActivate() form. I'm getting an error badly formatted variable or macro. I've tried to: $a="John" $b="User's"$a"control panel" WinActivate($b) and $a="John" WinActivate("User's"$a"control panel") Any tips? It's pretty clear that i have no clue how to insert a variable in a string =/
-
eKolin reacted to a post in a topic: Current task, GOTO?
-
eKolin reacted to a post in a topic: Current task, GOTO?
-
Hello. I was wondering is there an easy way to view current task/line that the script is performing? Also, Au3 doesn't support GO TO line function, right? Are there any alternatives to it?
-
Hello people. Is there a way to detect "no script action"? By saying that i mean this: Etc. There's a loop While...Wend, it is supposed to do something over and over, but at one point it has "crashed" (does nothing, stays paused) because function (what he is supposed to do) doesn't meet all conditions to be executed (doesnt find icon etc.), and wont ever meet again unless i restart the loop. I need somehow to restart the loop if it stays paused for 1 minute. I was searching the "Help" thing and didin't find ANYTHING to hook up on, so link me to right direction or just write that code. Idk.
-
@waterDelete. I will try Trong suggestion in a minute. Jeez i've messed up in original code. Tried to be sneaky but didin't change $gold and $trips. Don't be rude at me for game automation, it's just that i want to have a goal where i could say that i'm good enough in AutoIt to go advanced. Btw i've edited main post "While" and "Wend" stuff. EDIT: @Trong Modified your first script and got what i've wanted
-
@waterI'm trying to change 2 $variables values and then when pressed "start" the GUI would dissapear and following functions would be executed depending on values I've found that While ($variable>0) Wend Works good when i want to do exact amount of loops, unless you've a better suggestion. Btw i've replaced like 200 lines of unneeded code to functions()
-
$value1=0 $value2=0 Global $hGUI = GUICreate("V1", 573, 120, -1, -1) GUICtrlCreateLabel("Value1", 16, 16, 188, 17) Global $iVariable = GUICtrlCreateInput("0", 208, 16, 105, 21) Global $Label2 = GUICtrlCreateLabel("OR", 320, 16, 116, 17) GUICtrlCreateLabel("Value2", 17, 85, 188, 50) Global $iVariable2 = GUICtrlCreateInput("0", 209, 82, 105, 21) Global $Label4 = GUICtrlCreateLabel("k", 318, 85, 105, 50) Global $bChange = GUICtrlCreateButton("Start", 440, 16, 113, 57) GUISetState(@SW_SHOW) While 1 Switch GUIGetMsg() Case -3 Exit Case $bChange $value1 = GUICtrlRead($iVariable) $value2 = GUICtrlRead($iVariable2) WinClose("V1") EndSwitch Sleep(10) WEnd $x = WinActivate("Screen") While ($value1>245160) functions() $value1-=245160 WEnd While ($value2>0) functions() $value2-=1 WEnd I was expecting, that after i will press the "start" button the window will close and perform functions(). What's wrong with this? (After i've typed "2" in $value2 field)
-
@JLogan3o13 Well, sorry then. Sometimes it seems pointless to me when i spend like 2-8 hours to do a basic function when i need A TON of them, already spent like 50 hours learning AU3 past 2 weeks + school, so don't think that i'm asking for everything done for me. I'm asking only for stuff that imo don't have clear enough tutorials for 0 skill people or just i'm getting tilted because i can't make one function work, instead i ask for another function to save some time doing my project. I find copy/paste helping me to learn aswell.
-
Hello! I want to create a simple GUI that would be something like this (created with paint, good enough lol): Basicly I should be able to edit the black text to whatever i want in the code, the little blue boxes are to put in already existing (that have values of 0) $variable and $variable2 values, if blank then 0. This GUI Would have to pop up only on script start, OK to change the $variable $variable2 and "start" the script. Would like that some1 would write this little script and i could learn out of it
-
Doubleposting since i didin't find a way to edit my post. What i need is to find a certain "word" that's always random. John has won GUI45n with a score of 5! "John has won" and "with a score of 5!" Will always be the same, while GUI45n can be anything that's made of 6 letters. I need to respond it with send(/GUI45n), yes i additionaly need the slash. Hope that you guys will understand me despite how bad my grammar nd stuff is. I would be really greatful if someone would write this code for me
-
@JLogan3o13 Ok. The font size and colour would be exact as shown in the image. It would search for that text in certain coordinates, let's pretend it's (100,200,200,300). Like i said in my upper post, it's case sensitive, can contain numbers, letters, signs ":" and "/". It would have to check the area every 10ms, if true then "send(Found)" AND repeat the loop after 1 minute (after sending the "found") It sounds a bit more complex than i thought xD Thanks in advance
-
@mikell @xcaliber13 Thanks for the replies, gonna try to understand everything that u've wrote there with #Help option in editor (The text would be in an image, would it affect the code?)
-
eKolin reacted to a post in a topic: Detect GUI (simple question)
-
@JLogan3o13 My bad, i wasn't familiar with this function, basicly what i wanted was: Opt(MouseCoordMode,0) I don't really understand the difference between parameters 0 and 2 (probbably because i lack english skills) Can you explain please? 0 = relative coords to the active window 1 = (default) absolute screen coordinates 2 = relative coords to the client area of the active window