Jump to content

wIck3d

Active Members
  • Posts

    21
  • Joined

  • Last visited

wIck3d's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I got it working but i have two questions. 1: After installing, do i need anything other than the app folder? 2: Is there a way to set SciTE's user include file dir without admin privileges?
  2. Very impressive. This will save me a HUGE amount of time. Keep it up
  3. Thanks!
  4. Hi all, Is there a way to get a label control's width? For example, if we have a label like this: $Label_1 = GUICtrlCreateLabel("Hello", 0, 0) The control's width would be set to default which autofit the control for "Hello" Is there a way to know the width in such a case?
  5. Hi all, Is there a way to know if the blinking caret (keyboard cursor) exist? In other words, is possible to know if your in typing mode? P.S. i've tried WinGetCaretPos() but it's not accurate.
  6. Sorry if this was asked before. Where can i find the latest release of MozLab and do i need to run it once installed ? Is it really called MozLab? i tried googling it but didn't come up with any results.
  7. try adding a sleep after the MouseMove.
  8. Nice work. Didn't work at first though, I had to add a sleep to it. HotKeySet("{ESC}", "_Exit") Run("winmine.exe") WinWaitActive("Minesweeper") Sleep(1000) WinMove("Minesweeper", "", 326, 248) Sleep(1000) Send("xyzzy") Send("{SHIFTDOWN}{ENTER}{SHIFTUP}") For $i = 350 To 820 Step 16 For $ii = 360 To 600 Step 16 MouseMove($i, $ii, 0) sleep(1) $var = PixelGetColor(0, 0) If $var = 0xFFFFFF Then MouseClick("LEFT", $i, $ii, 1, 0) ElseIF $var = 0x000000 Then MouseClick("RIGHT", $i, $ii, 1, 0) EndIf Next Next MsgBox(64, "* Won *", "You Won!") Func _Exit() Exit EndFunc Score: 15 sec
  9. Thanks for replying. I ran some experiments and i could see now how much different they are. I can't understand why though. I mean the line directly below it ($pos = $pos2) should be causing extensive cpu usage as well, shouldn't it ? Also why did you use sleep() if it was only caused by the arrays? I compared While...Wend and Do...Until and couldn't see a difference. I think it's just a matter of how someone reads or understands the code. Correct me if there is something to it other than that. I just looked at both Select...EndSelect and Switch...EndSwitch.. and I could see why you would call it a novice job. I used Select..EndSelect just because one of the examples on the help file was using it . Fixing... w!ck3d
  10. Really Great work, thanks.
  11. Thanks for pointing out these issues and fixing them. About the cpu usage, i didn't know what was exactly causing it and i was wondering how to fix it, But i never thought of using sleep() since the help file says never to use a sleep inside a gui loop. Also, One of the fixes you made is putting ($pos[0] <> $pos2[0] Or $pos[1] <> $pos2[1]) instead of ($pos <> $pos2). Isn't both doing the same exact thing ? I mean even with memory usage ? One more thing, why did you use a while instead of a do loop ?
  12. Very useful, Thanks.
  13. Thanks If you think that it's not useful/nice, could you state why ?
×
×
  • Create New...