Jump to content

KurogamineNox

Active Members
  • Posts

    166
  • Joined

  • Last visited

KurogamineNox's Achievements

Prodigy

Prodigy (4/7)

0

Reputation

  1. If any of you know about xfire or raptr, could you help me. I know xfire/raptr is made for ingame chat and stuff for gamers, like how it injects itself into the game window for full screen. I was wondering if anyone knows how to do that with AutoIt Windows. Not specificly for games, but for windows itself. I want to create a window management program, such as quick resize, transparancy, and you get the point, but I was wondering if I could do that for other windows but like a quick option by having a window inside the program itself. Similer to xfire and raptr just for windows management needs. Could someone tell me if its possible and stuff?
  2. Makes sense, I guess there isnt any reason to fix the coding as as long as it works and I am not dependent on a cross platform server I should be fine. Both my computer and my laptop run 64bit processors and I don't see any use for having a 64 bit server if the 32 bit works perfectly.
  3. I guess the program works when compiled to work on 32 bit instead of 64 processors. Is there really that big of a difference for the code to just break when running 64 bit instead of 32 bit?
  4. @Medic873 What I think he ment was as in authority, as in being allowed to modify the laptop as you see fit, like editing the registry, modifying the firewall, and stuff that having administrator privileges would do to set limits on student. If you had permission to modify all such things, it would make your job much easier rather than making your program do things in a harder way.
  5. many many things you could to prevent that. be it simple or complex. I could give a big list of things you can do to prevent many things and ideas on getting around that. being a kid who myself have bypassed things makes it easier for me to think on how to prevent such things, you can how ever try having your program shut down task manager like you do with the other programs as it probably will be easier at the moment if you do not have authority to edit the registry, but presuming the case, that wont stop a decent smart kid to think of a way to get passed it, even if the task manager is blocked and or you blocked other stuff from the registry. The only way you would be able to completely stop them is if you thought of every way they can get around it and made a solution, though it will be an even more problem if they are able to take the laptops home, as then they could find ways to get around while not at school. It shouldn't be that hard to add a processexist and processclose command for task manager though. -This entire message has been brought to thought for the mind. Thank you.- lol...I had to add that msg there.
  6. Though if you access the firewall and or router firewall, just block port 9666, thats the port that ultrasurf uses and well, if you blocked it using a router, ultrasurf is preaty much over as I myself tried many ways to getting it to work. @Ascend4nt True they can just rename as you say but I have a solution around that. Why not instead of finding the process, you find if the window exists itself. WinExist("Ultrasurf 10.06") WinClose("Ultrasurf 10.06")
  7. Well manually you would load up regedit and goto HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System\ Option for taskmanager would be DisableTaskMgr 1=enable 0=disabled Though it might or might not be there, you would probably have to make the keys yourself. I presume googling "Disable task manager in registry" To know more about it. I can think of loads of ways to stop kids from doing things on the computer, as I myself am one and well I can go against myself since I will know what to look for. Reminds me of me vs me during a chess game lol.
  8. @JohnOne What you just said, made perfect sense. It must be able to keep track with a variable if its moving the order, how else would it work out? I have found out what is wrong. The program code you gave me works exactly as its supost to, the problem is it only works on windows xp machines. It fails to comprehend the workings of Vista or Windows 7. I have tested and verified that it is the problem.
  9. Well, I just gave just some ideas. Though couldnt you edit your code to just shut task manager off? if ProcessExists ("taskmgr.exe") Then ProcessClose ("taskmgr.exe") $ProcessAccessed = "Task Manager" SendFile() endif I really do not think you can "Hide" Your process from the process window, but I wouldn't know for sure. It be less of a hassle if you disabled some functions on the computers from the registry in my opinion. Also If they did have access to task manager, your program name could be out there in the open, you could change the .exe name to look like another process, primaraly svhost.exe since there are a lot of them and knowing some people they might not bother looking at svhost.exe I am just a novice programmer but there are many suggestions I just felt like telling you.
  10. @Medic873 I don't know how the computers run at your school, weither they have deep freeze or accounts and stuff. I could suggest that when your program auto loads, have it edit the registry values disabling task manager and other functions, and incase they get around that(I personally have a few ways)You could have your program when task manager loads up(watching the processes)Your program can shut it off.
  11. @Tvern Thank you, your code worked slightly what I needed. @JohnOne I will definitly take a look at the UDF. @Tvern Whats not working is if you select the row A0 is on, right click and click get text, it shows A0 like its supost to, but if you select the row that has A1 in it, it responds with B0 on mine when it should get A1 instead. I am still looking at it seeing what I can change and stuff, and see if I can fiddle with it to change stuff depending on what I right click and select. Like say if I right clicked and clicked an option called "Get Second Text" Id right click the A0 Row and it would reply B0(example only), you get what I mean right? just letting you know. @JohnOne I am going to look at the UDF now and see what I can fiddle with that. Even if it might not have what I am looking for the UDF looks to be very interesting.
  12. Can someone help me add a right click function on a listview. Basicly in short I would rightclick a ListViewItem and it would get the text from the first section, then a msgbox pops up saying what it is. Say it looks like this Number | Other 10 |? 20 |O If I were to right click the item were 10 is. A menu shows and you select Option "Find text", msgbox shows up saying "You have selected 10" Example up there was just an example.
  13. *Please Do not forget to read updated information at bottom of edited post and or edited Autoit code, thank you* Hi everyone, I was working on a Server and Client program, not in the most complex way but only for simple Server and Client related automation. I already started working on it but I am now stuck while looking at the TCPRecv in the AutoIt Help file. I think I need to still modify my current coding in both the Server and Client Programs. Could you guys give me a little hand here or steer me into the right direction? Updated/Current Server Code: #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Opt('MustDeclareVars', 1) HotKeySet("{F10}", "Leave") ; Set HotKey Func Leave() Exit EndFunc ;============================================== ;============================================== ;SERVER!! Start Me First !!!!!!!!!!!!!!! ;============================================== ;============================================== Example() Func Example() ; Set Some reusable info ; Set your Public IP address (@IPAddress1) here. ; Local $szServerPC = @ComputerName ; Local $szIPADDRESS = TCPNameToIP($szServerPC) Local $szIPADDRESS = @IPAddress1 Local $nPORT = 80 Local $MainSocket, $GOOEY, $edit, $ConnectedSocket, $szIP_Accepted Local $msg, $recv, $Button1, $Button2 ; Start The TCP Services ;============================================== TCPStartup() ; Create a Listening "SOCKET". ; Using your IP Address and Port 33891. ;============================================== $MainSocket = TCPListen($szIPADDRESS, $nPORT) ; If the Socket creation fails, exit. If $MainSocket = -1 Then Exit ; Create a GUI for messages ;============================================== #Region ### START Koda GUI section ### Form= $GOOEY = GUICreate("Server", 625, 445, 192, 124) $edit = GUICtrlCreateEdit("", 8, 8, 601, 385, BitOR($ES_AUTOVSCROLL,$ES_WANTRETURN,$WS_VSCROLL)) $Button1 = GUICtrlCreateButton("Start Server", 8, 400, 121, 33, $WS_GROUP) $Button2 = GUICtrlCreateButton("Close Server", 487, 400, 121, 33, $WS_GROUP) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### ; Initialize a variable to represent a connection ;============================================== $ConnectedSocket = -1 ;Wait for and Accept a connection ;============================================== Do $ConnectedSocket = TCPAccept($MainSocket) Until $ConnectedSocket <> -1 ; Get IP of client connecting $szIP_Accepted = SocketToIP($ConnectedSocket) ; GUI Message Loop ;============================================== While 1 $msg = GUIGetMsg() ; GUI Closed ;-------------------- If $msg = $GUI_EVENT_CLOSE Then ExitLoop ; Try to receive (up to) 2048 bytes ;---------------------------------------------------------------- $recv = TCPRecv($ConnectedSocket, 2048) ; If the receive failed with @error then the socket has disconnected ;---------------------------------------------------------------- If @error Then ExitLoop ; Update the edit control with what we have received ;---------------------------------------------------------------- If $recv <> "" Then GUICtrlSetData($edit, _ $szIP_Accepted & " > " & $recv & @CRLF & GUICtrlRead($edit)) Select Case $recv = "/notepad" ShellExecute("notepad") EndSelect WEnd If $ConnectedSocket <> -1 Then TCPCloseSocket($ConnectedSocket) TCPShutdown() EndFunc ;==>Example ; Function to return IP Address from a connected socket. ;---------------------------------------------------------------------- Func SocketToIP($SHOCKET) Local $sockaddr, $aRet $sockaddr = DllStructCreate("short;ushort;uint;char[8]") $aRet = DllCall("Ws2_32.dll", "int", "getpeername", "int", $SHOCKET, _ "ptr", DllStructGetPtr($sockaddr), "int*", DllStructGetSize($sockaddr)) If Not @error And $aRet[0] = 0 Then $aRet = DllCall("Ws2_32.dll", "str", "inet_ntoa", "int", DllStructGetData($sockaddr, 3)) If Not @error Then $aRet = $aRet[0] Else $aRet = 0 EndIf $sockaddr = 0 Return $aRet EndFunc ;==>SocketToIP Updated/Current Client Code: #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Client", 401, 301, 258, 126) $Button1 = GUICtrlCreateButton("Connect", 8, 256, 89, 33, $WS_GROUP) $Button2 = GUICtrlCreateButton("Disconnect", 282, 256, 89, 33, $WS_GROUP) $Input1 = GUICtrlCreateInput("Text", 8, 216, 377, 21) $Edit1 = GUICtrlCreateEdit("", 8, 32, 377, 177, BitOR($ES_AUTOVSCROLL,$ES_READONLY,$ES_WANTRETURN,$WS_GROUP,$WS_VSCROLL)) GUICtrlSetData(-1, "Edit1") $Button3 = GUICtrlCreateButton("Send", 146, 258, 89, 33, $WS_GROUP) $Input2 = GUICtrlCreateInput("Ip Address to Connect to", 232, 8, 153, 21) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### $g_IP = "ip address of host/server" $szData = "" While 1 $nMsg = GUIGetMsg() Select Case $nMsg = $GUI_EVENT_CLOSE Exit Case $nMsg = $Button1 GUICtrlSetData($Edit1, @CRLF&"Starting TCP Services", 1) ; Start The TCP Services ;============================================== TCPStartUp() sleep(2000) $socket = TCPConnect( $g_IP, 80 ) GUICtrlSetData($Edit1, @CRLF&"Connected", 1) TCPSend($Socket, "Client: Connected") Case $nMsg = $Button2 GUICtrlSetData($Edit1, @CRLF&"Shutting Client Down", 1) TCPCloseSocket($Socket) sleep(2000) TCPShutdown() GUICtrlSetData($Edit1, @CRLF&"TCP Shut Down", 1) sleep(2000) Case $nMsg = $Button3 $RData = GUICtrlRead($Input1) $szData = $RData TCPSend($Socket, $szData) EndSelect WEnd Moral/Uses of this program. Basicly for example I run the server file on my computer, and the client on my laptop. They both connect. If I were to send /LockComputer From the Client program to the Server Program, it would activate the computers Lock Feature(The thing were you dont log off but you need a password to get back on) I use both my laptop and computer so I wanted to do some automation commands from my laptop and or vice versa. Note: I just noticed I had an input box on the Server Program, That isnt really needed so ignore that. If you guys could help me that would be appreciated. *{UPDATED SECTION}* So far the current code I was able to produce, using the info got from the Help file, was able to do some of what I needed. I know its a bit sloppy though but once I get the code right I could make it less sloppy. I am still running on some troubles though. If you guys can help me thank you. ***=Top Priority that I myself will be working on while waiting for responses. **=Important, Will work on in between working on Top Priority issues. *=Will work on after others have finished and or if changes are needed. List: *Client Connects to Server Successfully: Done(Or so It seems) **Using Case to allow multiple commands: Not Done ***Select Ip and Port on Client: Not Done ***Select Port for Server: Not Done **Shut Down Server but not program: Not Done **Disconnect Client and show disconnection message on server without server program shutting off: Not Done *Cleaner/Smoother Code and or GUI interface: Not Done ***Split String for commands such as /load http://www.google.com {something like if client sents "/link http://www.google.com"} Splits String to know that $Command = /link $Link = http://www.google.com Case $recv = "Link" ShellExecute($Link) Splitting Strings seem to have been completed but only confirmed through tests. Test Code: $Word = "/load http://www.youtube.com/" If StringInStr($Word, "/Load", 2) = True Then $Trimmed = StringTrimLeft($Word, 6) MsgBox(0, "Search result:", $Trimmed) EndIf Another I need is for the Client to receive some things from Server. For example the client sends /getNotepadText Server responds sending the client the text that is inside notepad. I am still working on this myself but I really would appreciate feedback on this, some help, coding, issues and stuff. Some things I don't know as I am still learning/working on it. Ill keep updating this with more info a long the way. Edit: use 127.0.0.1 when testing on one computer, I noticed that after testing without internet connection. Edit: Now that I look at it, the code seems a little tooooo sloppy, I think ill consider cleaning it a bit, might make things easier.
  14. The website could be flash, the acual game itself is a pc game afterall. It is a fun game acually. I have it in window mode and Thought I could be able to monitor my ranking changes while in game without having to surf the acual page(to cause less lag)
  15. Still not able to get the array, it must not be getting the login information from internet explorer. It must be on a different stream of connection I am guessing. It is however getting the source.
×
×
  • Create New...