Jump to content

devrandom

Active Members
  • Posts

    39
  • Joined

  • Last visited

devrandom's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hello, how can I send keys to a DirectX game like GTA IV? The Send() function doesn't work, but I think that the SendInput() API works; how can I use it in my AutoIt script.
  2. I'm sending the message after the ComboBox is made, I think. I tried to add a button, and to add the strings after pressing that button but it didn't work.
  3. Yes, this helps a lot! XD What styles?
  4. Hello, there is an error in the example plugin. Line 155: if ( AU3_GetType(&p_AU3_Params[0]) != AU3_PLUGIN_INT32 || AU3_GetType(&p_AU3_Params[0]) != AU3_PLUGIN_INT32 ) Should be: if ( AU3_GetType(&p_AU3_Params[0]) != AU3_PLUGIN_INT32 || AU3_GetType(&p_AU3_Params[1]) != AU3_PLUGIN_INT32 )
  5. Yeah, you're right. I'm sorry.
  6. I'm just kidding, I put a "" at the end of the post.
  7. You are not very nice. If you haven't the answer, then simply don't answer
  8. What's wrong with this code? It doesn't add any item... combo_prof = CreateWindow ( "COMBOBOX", "", WS_CHILD| WS_VISIBLE| CBS_DROPDOWNLIST| CBS_HASSTRINGS, 10, 30, 320, 20, window, COMBO_PROF, hInstance, NULL ); SendMessage(combo_prof, CB_ADDSTRING, 0, "test"); SendMessage(combo_prof, CB_ADDSTRING, 0, "test2");
  9. How can I set the border for a EDIT control? Thank you.
  10. HWND window; HFONT font; font = CreateFont ( 0, 0, 0, 0, FW_DONTCARE, FALSE, FALSE, FALSE, ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Verdana" ); if (!font) { return 0xF0; } if (!(RegisterDefaultClass(hInstance))) { return 1; } // // CREO LA FINESTRA // window = CreateWindow ( "defaultClass", "Window!!", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, (HWND) NULL, (HMENU) NULL, hInstance, NULL ); if (!window) { return 1; } SendMessage(window, WM_SETFONT, font, TRUE); It runs but the font still be the default one, which is orrible XD. Another question: how to set font size? EDIT: all solved, thank you.
  11. How can I change the font of a control made with API? Example: label = CreateWindow ( "Static", "text...", WS_CHILD| WS_VISIBLE, 10, 230, 280, 20, window, LABEL, hInstance, NULL );
  12. Hello I'll ask here because there are a lot of C/C++ geeks. I make a control with this code: button_ok = CreateWindow ( "BUTTON", "Ok", WS_CHILD| WS_VISIBLE, 10, 60, 280, 25, window, BUTTON_OK, hInstance, NULL ); And now, how can I disable it as I can do with AutoIt (GUICtrlSetState($handle, $GUI_DISABLE))?
  13. Thank you
  14. How can I do this? :S Maybe I can create a empty bitmap, convert to a "graphics" object and draw into this... But after drawing in the "backbuffer" how can I draw it into the GUI's graphics? P.S. Sorry for my bad english
×
×
  • Create New...