
FrashMX
Active Members-
Posts
30 -
Joined
-
Last visited
Everything posted by FrashMX
-
Holy cow, this is simply amazing. Very awesome Larry! For those who are interested, I added a few bars: bar_blue - A bar with blue gradient (Windows XP alike) bar_gray - A bar with a gray gradient (Windows Server alike) bar_gold - A bar with a golden gradient bar_maroon - A bar with a maroon gradient bar_blue.bmp bar_gold.bmp bar_maroon.bmp bar_gray.bmp
-
Thanks for them replies, ima check it out. That somehow sounds really annoying.. hope it'll go over soon (w/e it is) Edit 1: Btw I tried both scripts and I still experience (minor) flickering. I might be too perfectionistic in this case heh Edit 2: I noticed the flickering only occurs at certain spots.. it's not like the entire image is flickering
-
Hello there, I tried to reproduce the animated bar of the "classic style logon screen" Windows XP uses. It works, although I have excessive flickering. Any ideas? #include <GuiConstants.au3> GUICreate("Animated bar",680,300,-1,-1) $bar=GUICtrlCreatePic("./barbg.gif",0,0,680,15) $bar2=GUICtrlCreatePic("./barbg.gif",-680,0,680,15) GUISetState () $count = 0 While 1 While $count <= 680 $count = $count + 10 GUICtrlSetPos ($bar, $count,0) GUICtrlSetPos ($bar2, -680+$count,0) $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then Exit sleep(50) Wend $count = 0 Wend You can find barbg.gif in the attachment. Thanks in advance!
-
Woohoo! Binary support works great now. Now I can finaly start with my query server class.
-
The dirty workaround would be sending "ESC" to close it.
-
Hm Larry have you been able to read my PM about this yet btw?
-
Doesn't seem to work somehow. Thanks alot for trying though.
-
Well I dropped Larry a PM asking if he could add a switch to UDPRecv/TCPRecv to receive the data in hex. In that case the problem wouldn't be there Any idea how I would assign a second variable to the stuff after the NULL char?
-
You're right. The script is for querying a gameserver. I set up a random one in the script. #include <string.au3> #include <array.au3> UDPStartup() $socket = UDPOpen("82.133.85.17", 27025) If @error <> 0 Then Exit $infostring = "\xFF\xFF\xFF\xFF\x54\x53\x6F\x75\x72\x63\x65\x20\x45\x6E\x67\x69\x6E\x65\x20\x51\x75\x65\x72\x79\x00" UDPSend($socket, _HexToString($infostring)) sleep(200) $data = UDPRecv($socket, 200) If $data <> "" Then MsgBox(0, "Query results", $data) EndIf Sleep(100) Func OnAutoItExit() UDPCloseSocket($socket) UDPShutdown() EndFunc The output AutoIt gives: ÿÿÿÿIjolt.co.uk - (14) CSS - cs_assault Only Here the sniffer data, which shows there is more than just the part before the NULL char. FF FF FF FF 49 07 6A 6F 6C 74 2E 63 6F 2E 75 6B ....I.jolt.co.uk 20 2D 20 28 31 34 29 20 43 53 53 20 2D 20 63 73 - (14) CSS - cs 5F 61 73 73 61 75 6C 74 20 4F 6E 6C 79 00 63 73 _assault Only.cs 5F 61 73 73 61 75 6C 74 00 63 73 74 72 69 6B 65 _assault.cstrike 00 43 6F 75 6E 74 65 72 2D 53 74 72 69 6B 65 3A .Counter-Strike: 20 53 6F 75 72 63 65 00 F0 00 0F 10 00 64 6C 00 Source......dl. 01 31 2E 30 2E 30 2E 32 32 00 .1.0.0.22.
-
Alright I got an update on the situation. It seems to be related to the handling of the NULL character in AutoIt. (Thanks dev) Anyone has experience with this character?
-
IThankYou :]
-
Im having a problem with the UDPRecv function. I send a query to a server and the server replies only the part before the first space (hex character 20) of the packet. For some reason it does not parse the part after it. The packet sniffer does show the entire packet, so it's clearly something that goes wrong with UDPRecv here. Is anyone experiencing something similar? Regards, - FMX
-
ive written a new script without anybody's help
FrashMX replied to bosko's topic in AutoIt GUI Help and Support
This looks amazing. 2 questions. 1) Is it possible to "catch" a click? (Someone clicks a link, the AutoIt app will display a textbox for instance) 2) How can I remove the border from the IE Object? -
Very cool, the added socket functions. Thanks alot!
-
Very nice! Is it somehow possible to determine the top co-ords of the start menu? I like to stretch the taskbar when I use alot programs so it would be cool if the popup would not overrule the start menu/taskbar.
-
is there a way of stopping decompile
FrashMX replied to BasicOs's topic in AutoIt Technical Discussion
Sockets (w/o external stuff) + lightweight final .exe binary would make AutoIt unbeatable (And Linux support w/ GTK but thats a bit too much to ask) -
It does seem to have a problem with the $GUI_EVENT_PRIMARYDOWN; my button stops working and I think it doesnt react because the PRIMARYDOWN action overrules the button also. Is there a way to prevent this? -Edit- Code added. #include <Constants.au3> #include "GUIConstants.au3" #include <Array.au3> ;Global stuff FileChangeDir(@Scriptdir) #NoTrayIcon ;Vars $HTCAPTION = 2 $WM_NCLBUTTONDOWN = 0xA1 ;The script $pic=GUICreate("", 472, 297, 1024/2-472/2, 768/2-297/2,$WS_POPUP) GUISetState(@SW_SHOW) $gui=GUICtrlCreatePic ("window.gif", 0, 0, 472, 297) GUISetState(@SW_SHOW) GUICtrlSetState($gui, $GUI_DISABLE) $btnx=GUICtrlCreateButton('Hello World',40,40,100,20) GUISetState(@SW_SHOW) func captureit() dllcall("user32.dll","int","ReleaseCapture") dllcall("user32.dll","int","SendMessage","hWnd", $pic,"int",$WM_NCLBUTTONDOWN,"int", $HTCAPTION,"int", 0) EndFunc Do $msg = GUIGetMsg(1) Select Case $msg[0]= $GUI_EVENT_PRIMARYDOWN captureit() Case $msg[0]= $btnx MsgBox(0,"Button click", "Clicked on btnx") Case $msg[0]= $GUI_EVENT_CLOSE MsgBox(0,"Close", "Closing window.") Exit EndSelect Until $msg = $GUI_EVENT_CLOSE
-
Did the trick, ta!
-
Srry I have a small offtopic question but I dont want to filth the forum with another thread; My GUI is partially transparent and has an image overlay. You can compare it to Winamp, an image based GUI. The problem is, when I place a button ON the image it does not; 1) Get the "pushed" look when clicked 2) Perform its task. Is there a reason why a button on a transparent image behaves weird?
-
Maybe Astalavista is interesting for you
-
Awesome, thanks! I think my intuition is right, this community rocks
-
I was thinking maybe a simulation would fit for the purpose. You click a button or an image in this case and: 1) The cursor changes to the one with 4 arrows 2) The cursor will track moves and update the window position w/ the new co-ords asap 3) When the mouse button is released, the cursor reverts and it will stop tracking movements.
-
Will do, thanks for the input!
-
Nobody a clue yet? (Srry for the bumping)
-
Hola, Is it possible to make a part of a window w/o titlebar (or at least an alternative titlebar by using images) draggable, so you can drag it over the screen by clicking the "virtual" titlebar? Thanks in advance!