
playjacob
Active Members-
Posts
27 -
Joined
-
Last visited
About playjacob
- Birthday 08/13/1999
Profile Information
-
Location
Denmark
playjacob's Achievements

Seeker (1/7)
0
Reputation
-
Thanks that seams to work as i wont it to. Thanks to all that helped!
-
Thanks! That's just what i wanted. EDIT: I'm now having another problem the listview make several row horizontally and i only want it to be a one vertical line of icons in a listview. I've messed around with the _GUICtrlListView_SetIconSpacing but that didn't seam to do the trick. Any way to do that?
-
That might be what i want but i can't seem to get images to work when you use "_GUICtrlListView_SetView($hListView, 4)" to set the listview to tile mode.
-
I think that editing some styles would be the way to go, but witch? Is there any where that you can see all the style that you can use on a listview?
-
Hello i hope someone can help me with my problem. What i'm trying to do is having a listview with both icons and text but this is what i get: Where i would really like to get this: (Image edited with gimp) I'm sure it's just a style i have to apply to get it working but i couldn't find it. Here's my code for the first picture: #include <GUIConstantsEx.au3> #include <GuiListView.au3> #include <GuiImageList.au3> _Main() Func _Main() Local $hImage, $aSize, $listview GUICreate("ImageList Set Icon Size", 400, 300) $listview = GUICtrlCreateListView("", 2, 2, 394, 296, BitOR($LVS_SHOWSELALWAYS, $LVS_NOSORTHEADER, $LVS_REPORT, $LVS_NOCOLUMNHEADER)) GUISetState() $hImage = _GUIImageList_Create(64, 64, 5, 4, 3) _GUIImageList_AddIcon($hImage, @SystemDir & "shell32.dll", 110, True) _GUIImageList_AddIcon($hImage, @SystemDir & "shell32.dll", 131, True) _GUIImageList_AddIcon($hImage, @SystemDir & "shell32.dll", 165, True) _GUICtrlListView_SetImageList($listview, $hImage, 1) ; Add columns _GUICtrlListView_AddColumn($listview, "", 120) ; Add items _GUICtrlListView_AddItem($listview, "Icon 1", 0) _GUICtrlListView_AddItem($listview, "Icon 2", 1) _GUICtrlListView_AddItem($listview, "Icon 3", 2) ; Loop until user exits Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>_MainHalf of the code is from the helpfile. Sorry for any bad English there may be I'm from Denmark and only 13 years old. :-) EDIT: Fixed Pictures
-
UPDATED: Now with gui! Option to solve the maze or not. Progress bar. Seeds, uses a random if none are given. Minor spelling fixes. Edit: Anyone knows how to rename a topic?
-
How would you do that? I have no idea on how to add extra dificulty to a maze witch was made useing the recursive backtracker algorithm. I really like your _SaveToPng function. And i do wanna add a gui. But i don't really like your code. [No ofensive] I'll try to update the code today with a gui
-
Where? I don't see it anywhere.
-
Update: Added MvGulik's cleaned code. Added MvGulik's RND_SeedTimed function. Progress will now be written to the console. Maze filename will now include both seed and size. Minor tweeks and spelling corrections. Code's in the first post! Again thanks to MvGulik for cleaning the code and for the RND_SeedTimed function.
-
I really like it But there seam to be a problem with the RND_SeedTimed function. I get the error: F:\dokumenter\Autoit3\Maze-Generator-Done.au3(442,67) : ERROR: Int() [built-in] called with wrong number of args. $iSeed = Int(Mod(Int(TimerInit()), $INT32u) - ($INT31u), 1) Also what's the difence of FlipDirection and FlipDirection_br? When the RND_SeedRandom function is working i'll use this code in the first post. What credits do i have to give to you? Can i remove the header? I will properly remove the PBAR sections when i add it. Next step will be to make it into a command line tool and then use au3Irrlicht2 to make a 3d maze game. Thank you for cleaning up my scirpt, it's awesome!!!
-
Do i understand it corrently that the function will set a random seed and output it so that i can generate the same mazes if i got the seed and the size. If so the i'll defendly add it to the script. Also: [missing text, ...] ???????
-
You want me to add that code? Where? I don't totally know what it's for. So what's it doing?
-
You're right as far as the entry and the exit goes, but in this example there's actualy two paths. Not totaly sure how or why it made two but it did.
-
What do you mean? It's not harder to get to the middle. There's not but it makes it cooler if there's more but i'll have to get the solveing to find all the paths There's is only ONE start and ONE end point to the maze the other ones are just dead ends.
-
UPDATE: It can now solve the maze. Not the best solveing speed but its okey. Code's in the first post! Now it can