Jump to content

Katie_Deely

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by Katie_Deely

  1. Hey I have a GUI with an edit-field and a button. First I write some text into the edit-field and select a part of it. After that I press the button, and the selection is edited. How would I do that, though? When the text is selected and I press the button, it's unselected before the button actually raises an event.
  2. Hey there I'm thinking about making a program that will calculate with huge numbers. Well above 1*10^18 probably. Can autoit deal with that? If not, how can I make it work? Thanks!
  3. Can I actually re-arrange that list? Those numbers are there for a reason, so I don't really like the function screwing around with the order... It should be 1, 2, 3,... not 1, 10, 100, 101, [...], 2, 20, 200,...
  4. Hi there. Sorry to bother again. I don't get the tutorials and examples... Let's say I want to display an image "E:\img\123.jpg" in a GUI. Usually I'd do that by using GUICtrlCreatePic($path, $x, $y, $width, $height). Unfortunately, the width and height are changing with every picture and they are unknown as well... First of all, how I can get the width and height of a given picture? And is there any way that doesn't require me to constantly delete and create that window from scratch? Thanks!
  5. Great idea. Would also make things easier in the loop. Wouldn't that screw with my memory, though? Sometimes we're talking about several hundred strings with each up to 200 symbols. I don't have a clue, if it's that good to save like 100.000 symbols in one single variable.
  6. Hi Let's say I get a path called "E:\pics\". It has pictures inside which are numbered starting at 0. Then we get something like "E:\pics\0" or "E:\pics\1" or "E:\pics\2"... The amount of numbers, thus the path of the last picture, are known to me already. For example, there are 100 pictures, which means that the files start at 0 and end at 99 However, for some things that isn't enough, because they need the file extension. They can be pretty "random", though. Sometimes it's a JPG, sometimes it's a PNG, sometimes it's a GIF. So, I know need some kind of function that gets me the file extension, or the complete path, from an incomplete path. The input would be "E:\pics\1" and I expect and output of "E:\pics\1.jpg" for example. Also, there is just one file extension per number. For example, it there is "E:\pics\1.jpg", there won't be a "E:\pics\1.png" anymore. And this will be looped as well. First I get number 0, then number 1, then number 2, and so on. So I need something that is able to be repeated in a for-loop without causing problems with the parameters. Thanks a lot!
  7. Oh, thanks It works now
  8. Also, all MouseMove() that follow after WinMove() aren't executed.
  9. That doesn't change anything
  10. My program should open a window and move it to the top-left corner of the desktop. ShellExecute("C:\Windows\System32\mmc.exe", "compmgmt.msc", "System Tools") ; opens "Computer Management" Local $array = WinGetPos("Computer Management") ; gets X-position, Y-position, height and width as an array WinMove("Computer Management", "", 0, 0, $array[2], $array[3], 5) ; should move the window to (0, 0) but doesn't Exit Well, it doesn't get moved. The window stays where it was opened. What am I doing wrong? Thanks!
×
×
  • Create New...