Worfox Posted November 17, 2008 Posted November 17, 2008 (edited) mini game: Catch the window the rules: catch the window please post how you cought it expandcollapse popup#NoTrayIcon #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> HotKeySet("^{END}", "END") $gui = GUICreate("Catch me!", 72, 53, 193, 125, -1, $WS_EX_TOOLWINDOW) $up = GUICtrlCreateRadio("", 31, 2, 16, 17) $down = GUICtrlCreateRadio("", 31, 34, 16, 17) $left = GUICtrlCreateRadio("", 8, 18, 16, 17) $right = GUICtrlCreateRadio("", 52, 18, 16, 17) GUICtrlCreateRadio("", 31, 18, 16, 17) GUICtrlSetState(-1, $GUI_CHECKED) MouseMove(@DesktopWidth - 200, @DesktopHeight - 200) $Mposold = MouseGetPos() GUISetState() While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch $Mpos = MouseGetPos() If $Mpos[1] <> $Mposold[1] Or $Mpos[0] <> $Mposold[0] Then $winpos = WinGetPos($gui) if ($winpos[0] < $Mpos[0] And $winpos[1] < $Mpos[1]) and ($Mpos[0] < $winpos[0] + 78 And $Mpos[1] < $winpos[1] + 77) Then MsgBox(0, "", "YOU WIN :D") EndIf If $Mpos[0] > $Mposold[0] Then GUICtrlSetState($right, $GUI_CHECKED) WinMove($gui, "", $winpos[0] + ($Mpos[0] - $Mposold[0]), $winpos[1]) ElseIf $Mpos[0] < $Mposold[0] Then GUICtrlSetState($left, $GUI_CHECKED) WinMove($gui, "", $winpos[0] - ($Mposold[0] - $Mpos[0]), $winpos[1]) ElseIf $Mpos[1] < $Mposold[1] Then GUICtrlSetState($up, $GUI_CHECKED) WinMove($gui, "", $winpos[0], $winpos[1] - ($Mposold[1] - $Mpos[1])) ElseIf $Mpos[1] > $Mposold[1] Then GUICtrlSetState($down, $GUI_CHECKED) WinMove($gui, "", $winpos[0], $winpos[1] + ($Mpos[1] - $Mposold[1])) EndIf $Mposold = MouseGetPos() EndIf WEnd Func End() Exit EndFunc ;==>End Edited November 18, 2008 by Worfox
FireFox Posted November 17, 2008 Posted November 17, 2008 Funny, i tried to catch window for five minute with my mouse...never sucessfully catch !
youknowwho4eva Posted November 17, 2008 Posted November 17, 2008 I win $mouse = MouseGetPos() WinSetOnTop("Catch me!","",1) WinMove("Catch me!","",$mouse[0] - 70,$mouse[1] - 10) Giggity
UltraFine Posted November 17, 2008 Posted November 17, 2008 wow i am the winner, btw: your script is very good. Thanks
youknowwho4eva Posted November 17, 2008 Posted November 17, 2008 Only thing I would change, is that when there is no mouse movement, that the center radio be selected. Giggity
FireFox Posted November 17, 2008 Posted November 17, 2008 $mouse = MouseGetPos() WinSetOnTop("Catch me!","",1) WinMove("Catch me!","",$mouse[0] - 70,$mouse[1] - 10) Lol nice cheat
youknowwho4eva Posted November 17, 2008 Posted November 17, 2008 I saw nothing in the rules about not moving the window . It just says to catch it. So I wouldn't say "cheat", really I wouldn't even say "bent the rules". I just pulled a scorpion. *Flawless Victory* Giggity
spudw2k Posted November 17, 2008 Posted November 17, 2008 Yeah, I got it...without cheating. Sure at first I did the old Alt+f4 and got a YOU WIN , but I was actually able to "catch it" with my Dual Display setup and using my Crappy Lenovo's Trackpoint. Spoiler Things I've Made: Always On Top Tool ◊ AU History â—ŠÂ Deck of Cards â—Š HideIt â—Š ICU â—Š Icon Freezer â—Š Ipod Ejector â—Š Junos Configuration Explorer â—Š Link Downloader â—Š MD5 Folder Enumerator â—Š PassGen â—ŠÂ Ping Tool â—Š Quick NIC â—Š Read OCR â—Š RemoteIT â—Š SchTasksGui â—Š SpyCam â—Š System Scan Report Tool â—Š System UpTime â—Š Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example â—Š CheckHover ◊ Detect SafeMode â—Š DynEnumArray â—Š GetNetStatData ◊ HashArray â—Š IsBetweenDates â—Š Local Admins â—Š Make Choice â—Š Recursive File List â—Š Remove Sizebox Style â—Š Retrieve PNPDeviceID â—Š Retrieve SysListView32 Contents â—Š Set IE Homepage â—Š Tickle Expired Password â—Š Transpose Array Projects: Drive Space Usage GUI â—ŠÂ LEDkIT â—Š Plasma_kIt â—ŠÂ Scan Engine Builder â—Š SpeeDBurner â—Š SubnetCalc Cool Stuff: AutoItObject UDF â—Š Extract Icon From Proc â—Š GuiCtrlFontRotate â—Š Hex Edit Funcs â—Š Run binary â—Š Service_UDF Â
youknowwho4eva Posted November 17, 2008 Posted November 17, 2008 Just hitting escape works too. Giggity
FireFox Posted November 17, 2008 Posted November 17, 2008 Just hitting escape works too.I don't think that pressing keys is catching the window, anyway that's just stupid...
youknowwho4eva Posted November 17, 2008 Posted November 17, 2008 Well I did catch it . To get the msgbox that you won, though is easier then actually winning. Unless you run my script to win. Just cause I'm American doesn't mean I'm stupid, just like cause your french doesn't mean you don't know how to win. Giggity
FireFox Posted November 17, 2008 Posted November 17, 2008 Well I did catch it . To get the msgbox that you won, though is easier then actually winning. Unless you run my script to win. Just cause I'm American doesn't mean I'm stupid, just like cause your french doesn't mean you don't know how to win.yep that's right if the game is in autoit why shouldn't we use autoit for win or make tools...
DexterMorgan Posted November 17, 2008 Posted November 17, 2008 I WIN!! Took me 1 second! Click on the tray, Pause script code
youknowwho4eva Posted November 17, 2008 Posted November 17, 2008 Ha, that is a good one. But how do you resume it to claim your price? (The you win msgbox) *Marks another win for team USA* Giggity
DexterMorgan Posted November 17, 2008 Posted November 17, 2008 Ha, that is a good one. But how do you resume it to claim your price? (The you win msgbox) *Marks another win for team USA*ohh I didnt know there was a msgbox I didnt the msgbox, but still I got the window I didnt look at the code code
Worfox Posted November 18, 2008 Author Posted November 18, 2008 i just edited the msgbox and hid the tray icon
ludocus Posted November 20, 2008 Posted November 20, 2008 (edited) My tool still works, sweet.not really a tool.. Its a bit stupid to cheat at this game.. It shows that you suck at this game.. Edited November 20, 2008 by ludocus
youknowwho4eva Posted November 20, 2008 Posted November 20, 2008 (edited) Well lets take a look at the script. If you move your mouse up 1, the window moves up 1. You move your mouse left 1, the window moves 1. So he intended for us to never be able to catch the box. The only way to win is to cheat as you say. Which I saw nothing in the rules about making a script to move the window. I don't know what all this aggression is for but if there is someone from a country that has won a war other then it's own civil war that has an issue with how I beat the game I'd like to hear it. My bet is people from those countries know how to use the rules in their advantage. I don't like to be a dick, but come on. The first post says to catch the box and post how you did it. So I did. If he didn't like the way I did it, when he updated the script my script would no longer work. End of question. Edit: Catch it now #NoTrayIcon #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> HotKeySet("^{END}", "END") $gui = GUICreate("Catch me!", 72, 53, 193, 125, -1, $WS_EX_TOOLWINDOW) $up = GUICtrlCreateRadio("", 31, 2, 16, 17) $down = GUICtrlCreateRadio("", 31, 34, 16, 17) $left = GUICtrlCreateRadio("", 8, 18, 16, 17) $right = GUICtrlCreateRadio("", 52, 18, 16, 17) GUICtrlCreateRadio("", 31, 18, 16, 17) GUICtrlSetState(-1, $GUI_CHECKED) MouseMove(@DesktopWidth - 200, @DesktopHeight - 200) GUISetState() While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE MsgBox(0, "", "YOU WIN :D") Exit EndSwitch $Mpos = MouseGetPos() WinMove($gui, "", $mpos[0] - 100, $mpos[1] + 100) WEnd Func End() Exit EndFunc ;==>End Edited November 20, 2008 by youknowwho4eva Giggity
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now