Jump to content

APPLEEATER

Active Members
  • Posts

    51
  • Joined

  • Last visited

Profile Information

  • Location
    Canada

APPLEEATER's Achievements

Wayfarer

Wayfarer (2/7)

0

Reputation

  1. Hi I want to make a script that does the following: There are two images one has an item in it the other doesn't they are both from the same camera at exactly the same spot what i want to do is compare the two images and have the script delete the background from the image that has the item in it. What is the best way to do this?
  2. Wow i really didn't know that... i wonder why all the other scripts that used _ArrayMaxIndex() worked... anyway thanks
  3. Now my problem is different :S This code: $temp = StringSplit(GUICtrlRead($CitemsE), ",") $tmax = _ArrayMaxIndex($temp) + 1 _GUICtrlListBox_ResetContent($Cindex[$Cindx]) For $i = 1 To $tmax _GUICtrlListBox_AddString($Cindex[$Cindx], $temp[$i]) Next Does not always work?? My example string is 1,2,3,4,5,6,7 And the listbox only has 1 item in it "1" The other one is 1,2 and that is the same then i tried 7,3 and that worked just fine! what is wrong with this? Edit: Tried something new and it works: $temp = StringSplit(GUICtrlRead($CitemsE), ",") _GUICtrlListBox_ResetContent($Cindex[$Cindx]) For $i = 1 To $temp[0] _GUICtrlListBox_AddString($Cindex[$Cindx], $temp[$i]) Next I'd still like to know what the difference is for the future?
  4. Hello I've got this problem i need to get the items from an listbox and a combo box the controls are both in my gui (if that matters) i need them sent to an array it it works if it is sent to a string separated by a character too I have tried GUICtrlRead() and ControlGetText() But these only return the selected one Thanks alot for any help
  5. YEAHYA!! another awesome creation from MrCreatoR
  6. Is it really that easy? wow... i should have looked through the Styles Thanks Martin! Edit: Any way to have that work on labels and all other types of controls? i have tested it on input button and label and label doesn't work Thanks
  7. Hi, i've been scripting a lot with GUIs lately and i am wondering if there is a way to make controls dragable/resizable I'm looking to build onto this example: #include <GuiConstants.au3> #include <misc.au3> $gui = GUICreate("drag input") $ip = GUICtrlCreateInput("drag me", 20, 20, 120, 22) GUISetState() While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit Case $GUI_EVENT_PRIMARYDOWN $nc = GUIGetCursorInfo() If $nc[4] = $ip Then $mp = MouseGetPos() $cp = ControlGetPos("drag input", "", $ip) $max = WinGetClientSize($gui) While _IsPressed(1) $nm = MouseGetPos() $x = $cp[0] - $mp[0] + $nm[0] $y = $cp[1] - $mp[1] + $nm[1] Select Case $y < 0 $y = 0 Case $y > $max[1]-$cp[3] $y = $max[1]-$cp[3] EndSelect Select Case $x < 0 $x = 0 Case $x > $max[0]-$cp[2] $x = $max[0]-$cp[2] EndSelect ControlMove("drag input", "", $ip, $x,$y) Sleep(10) WEnd EndIf EndSwitch WEnd(From http://www.autoitscript.com/forum/index.php?showtopic=74986) I want to be able to have the input box resizable just like windows are (from the corner) If anyone has any ideas that would be much appreciated
  8. I still can't get it to work... NOBODY CAN FIND A PROBLEM?!?
  9. I think the community on patrol is a bot... because ive seen them post the same thing on at least 3 different threads.
  10. Hello again... Is there anyone out there that has a good dll example? I've got a dll file and i want to implement it's functions I would like a link to a post, or an example autoit script Thanks
  11. So does this work for you? Hotkeyset("{ASC 126}", "cwrite") While 1 Sleep(100) WEnd Func cwrite() ConsoleWrite('Bingo' & @CRLF) EndFunc I'm not really shure what key you want to use tho, ` or ~ use "{ASC 096}" for ` and "{ASC 126}" for ~ I didn't have time to test it :S
  12. WOW nice, just what i was looking for! SOOO many functions!
  13. Well, this seems not to be something that Autoit is able to do, so, time for a .bat file
  14. This is like 50 times better than windows media player this should be open source, so everyone can add their ideas! CRAZY!
  15. If you have seen my C Pong game in Example Scripts, i am looking to use it for that, If i add it I might use a UDF to disable the mouse click until the game is ended. The main thing is, i want the mouse movable, but not seen, I could make a mouse trap the height of the screen with params -5, 0, 1, @DesktopHeight That i think will be the best solution
×
×
  • Create New...