Jump to content

onedayillpay

Active Members
  • Posts

    158
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

onedayillpay's Achievements

Prodigy

Prodigy (4/7)

0

Reputation

  1. I have been trying to connect to my pipeserver.exe its a basic example of c++ pipe server running on windows. \\.\pipe\vzbEZPipe I thought i could connect to the pipe with fileopen but this dont work. I can run("echo 'test' > '\\.\pipe\vzbEZPipe'") but this launches a cmd terminal for a milli second. Im confused as i thought this would be an easy step to acomplish.
  2. here is a better example of what im trying to do... #include #include Local $text[5] $text[1] = "xyz##20##0" $text[2] = "abc##20##0" $text[3] = "asd##20##0" $text[4] = "sad##20##0" for $var In $text Local $array1 = _StringExplode($var, "##", 0) MsgBox(1,"", $array1[0]) MsgBox(1,"", $array1[1]) MsgBox(1,"", $array1[2]) ; some_func($array1[0], $array1[1], $array1[2]) Next
  3. Local $arr[4] $arr[1]=["ayz", 123, 11] $arr[2]=["byz", 123, 22] $arr[3]=["cyz", 123, 33] for $var in $arr ; some_func("ayz", 123, 11) some_func($var.split[1], $var.split[2], $var.split[3]) next i think this example explains the loop im trying to accomplish.... how can i set array split into 3 values
  4. i almost have a working example... i found the example script online for drawing a simple square then i added MouseGetPos() this almost works, but the rectangle changes size as your mouse moves around, im trying to keep a consistant size... edit _WinAPI_DrawRect($left, $top, $bottem, $right, 0x0000CC) I hate making the post and fixing my script a few minutes later... been a few years since i played with autoit... still love it ;-) #include #include Global $tRect While 1 $fov = MouseGetPos() $top = $fov[1] - 100 $bottem = $fov[1] + 100 $left = $fov[0] - 50 $right = $fov[0] + 50 ; refresh desktop _WinAPI_RedrawWindow(_WinAPI_GetDesktopWindow(), $tRect, 0, BitOR($RDW_INVALIDATE, $RDW_ALLCHILDREN)) _WinAPI_DrawRect($left, $top, $bottem, $right, 0x0000CC) Sleep(10) WEnd Func _WinAPI_DrawRect($start_x, $start_y, $iWidth, $iHeight, $iColor) Local $hDC = _WinAPI_GetWindowDC(0) ; DC of entire screen (desktop) $tRect = DllStructCreate($tagRECT) DllStructSetData($tRect, 1, $start_x) DllStructSetData($tRect, 2, $start_y) DllStructSetData($tRect, 3, $iWidth) ; x-coordinate of the lower-right corner of the rectangle DllStructSetData($tRect, 4, $iHeight) ; y-coordinate of the lower-right corner of the rectangle Local $hBrush = _WinAPI_CreateSolidBrush($iColor) _WinAPI_FrameRect($hDC, DllStructGetPtr($tRect), $hBrush) ; clear resources _WinAPI_DeleteObject($hBrush) _WinAPI_ReleaseDC(0, $hDC) EndFunc ;==>_WinAPI_DrawRect
  5. developers get butt hurt when autoit is used for cheating in games?
  6. ok, i did find this example that is working for me but i need to display color over a opengl game... any idea? HotKeySet ("d", "Draw") HotKeySet ("^e", "MyExit") MsgBox (4096, "NOTE", "Press 'D' to draw and Ctrl+E to exit... The default color is Green.") Func SetPixel ($handle, $x, $y, $color) $dc= DllCall ("user32.dll", "int", "GetDC", "hwnd", $handle) DllCall ("gdi32.dll", "long", "SetPixel", "long", $dc[0], "long", $x, "long", $y, "long", $color) DllCall ("user32.dll", "int", "ReleaseDC", "hwnd", 0, "int", $dc[0]) EndFunc Func Draw () $pos= MouseGetPos () SetPixel ("", $pos[0], $pos[1], 0x00FF00) Sleep (10) EndFunc Func MyExit () Exit EndFunc While 1 $pos= MouseGetPos () SetPixel ("", $pos[0], $pos[1], 0x00FF00) ;Sleep (100) wend
  7. $fov = MouseGetPos() $top = $fov[1] - 200 $bottem = $fov[1] + 200 $left = $fov[0] - 200 $right = $fov[0] + 200 print red $top print red $bottem print red $left print red $right i would like to print a red square around the mouse at all times... over the top of any window that is active... a few years ago i seen something like this done in the exaple forum but i cant find it
  8. This is not a request but maybe a suggestion... you should work on some reverse connection/remote admin, this is were the client connects to the server and then the server sends commands to the client... when there are routers involved port farwording can be a pain when the person on the other side is clue less on how to configure his or her router
  9. first off im sure ill get moved to the correct section and flamed but i think this is worth sharing... its more of a request or idea and im sure there is some one here that has experience for the job... the tittle says it all... im always in need of a server for short term use... ftp, http, voip etc... throw all into one peace of software
  10. I cant get this to work... if you write this directly into a command promp it works just fine netstat -n >>c:\log\test.txt $netstat=ShellExecute("netstat","-n >>c:\log\test.txt") $netsrun=run("netstat -n >>c:\log\test.txt")
  11. Im stumped muttley Is there another way i could retrieve data from netstat ???
  12. this used to work like a charm... i use this to log ip address that connect on port 6112... some thing is wrong with i think stringsplit?!?!? or is it that im on vista?!?!? $netstat = Run("netstat -n", @WorkingDir, @SW_HIDE,7) $aRecords = StringSplit(StringStripCR(StdoutRead($netstat)), @LF) $file = FileRead('test.txt') MsgBox(0,"$aRecords",$aRecords) For $x = 1 To $aRecords[0] If StringInStr($aRecords[$x], '6112') And Not StringInStr($file, $aRecords[$x]) Then FileWriteLine('test.txt', $aRecords[$x]) Next
  13. I have been looking around for a few hours and i cant find it... Im trying to find some ones script that will give your computer a a fresh reboot feeling with out actually having to reboot
  14. i need an example function of how i would TCPsend $array and a example function of how i would TCPrecv $array Mute: Smoke N Unmte: Smoke N
  15. I need to remotely monitor bandwidth. . . I would like the client to send the server a live update of its own bandwidth. . . its been a long time since i played around with server/client scripts. . . Um. . . if there is a simple way then please let me know. . .
×
×
  • Create New...