Arkadaşlar şifreyi hatırla ozelliği olmayan bir kullanıcı ismi, şifre editbox'ları ve bir tamam, iptal buttonundan oluşan programa zırt pırt bu verileri girmekten bıktım. Delphi'de bu programa ait formun caption'unu yakalayıp ilgili verileri gonderdikten sonra programı sonlandırmak istiyorum. Buna benzer işlem yapan bir kod buldum fakat C++ kodu cevirecek veya yardım edecek arkadaşlara şimdiden teşekkur. C++ kodu: Alıntı:
#include // define windows #ifndef VK_OEM_PERIOD // if the full-stop (period) key is not defined #define VK_OEM_PERIOD 0xBE // define it #endif // end definition #ifndef VK_OEM_COMMA // if the comma key is not defined #define VK_OEM_COMMA 0xBC // define it #endif // end definition #ifndef VK_BACK // if the backspace key is not defined #define VK_BACK 0x08 // define it #endif // end definition HWND hwnd_ext; // define the external window's handle int main() // main function main(); // if it is okay, check again for the window (this might cause a stack overflow if you press "OK" enough... LOTS of times } while(true) // we've reached our main program loop, while true (infinite loop) } Sleep(1); // sleep for 1 millisecond, this should stop CPU usage going huge } return 0; // end of program }
NOT: işimi gorecek Form Filler tarzı free program tavsiye edebilirseniz daha cok sevinirim. en azından kod yazma derdinden kurtulurum. __________________