Jump to content

Lynie

Active Members
  • Posts

    38
  • Joined

  • Last visited

Recent Profile Visitors

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

Lynie's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. you're welcome , hope you like it.
  2. nice script, really comes in handy. Thanks!
  3. Hello, I needed this for my bot and thought maybe it could help other people. It just returns the closest color in the array to the specified color. For example will return 0xFFFFFF. At the moment is only contains one function. ColorLib.au3 Example on how to use it: colorLibTest.au3 EDIT: tested and corrected code.
  4. Could you give a small example on how to do that please?
  5. Thanks, I tried that and when I opened up counter strike I saw a rectangle for like 1 second. So I must be getting close(I guess)
  6. I have the script to do the same thing in C++. Exactly the same works fine with notepad, but doesn't work in FreeCell or any other process :s. #include <windows.h> LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) { switch(msg) { case WM_DESTROY: PostQuitMessage(0); return 0; break; } return DefWindowProc(hwnd, msg, wparam, lparam); } INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { WNDCLASSEX wc; MSG msg; HWND hwnd, hTarget; HDC hdc; ZeroMemory(&wc, sizeof(wc)); wc.cbSize = sizeof(WNDCLASSEX); wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.lpfnWndProc = WndProc; wc.lpszClassName = "BASIC"; wc.lpszMenuName = NULL; wc.style = CS_HREDRAW | CS_VREDRAW; wc.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH); wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hIcon = LoadIcon(NULL, IDI_APPLICATION); wc.hIconSm = LoadIcon(NULL, IDI_WINLOGO); RegisterClassEx(&wc); hwnd = CreateWindowEx(NULL, "BASIC", "NoScope", WS_OVERLAPPEDWINDOW | WS_VISIBLE, 200, 200, 250, 300, NULL, NULL, hInstance, NULL); hTarget = FindWindow(NULL, "FreeCell"); Sleep(500); hdc = GetDC(hTarget); if(!hTarget) return 1; if(!hdc) return 1; while(true) { Sleep(1); Rectangle(hdc, 5, 5, 20, 20); GetMessage(&msg, NULL, NULL, NULL); TranslateMessage(&msg); DispatchMessage(&msg); if(msg.message == WM_QUIT) break; } } EDIT: Works in wordpad too
  7. Well it should since I just run it like BretF's example.
  8. Thanks for the reply. But I already thought about that I just redraw the line in a loop (while 1). But it doesn't work :s
  9. It worked fine with Notepad, but when I tried it with FreeCell it doesn't work.
  10. Thanks!
  11. Is it possible to use GDI to draw something in another handle then your program's handle? Thanks
  12. Update v1.1.1
  13. Deleted YouTube video and added movie to MyVideo. YouTube blocks music due to copyright, so other host
  14. Nice work mate. Looks nice
  15. Added YouTube movie for help, uploaded v1.1.
×
×
  • Create New...