Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 14:44

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Resizing other windows in C#

Discussion on Resizing other windows in C# within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2011
Posts: 435
Received Thanks: 181
Resizing other windows in C#

Hallo,
ich möchte gerne ein externes nicht vom meinem Programm erzeugtes Fenster resizen und neu positionieren. Über Google konnte ich leider nur Informationen zum resizen der GUI des eigenen Programmes finden, aber leider nichts genaueres.

Wie das ganze in AutoIt funktioniert, habe ich schon herausgefunden, lässt sich nur leider nicht so einfach nach C# portieren.
Hat jemand mal kurz ein Snippet da (Sprache ziemlich egal)? Werde in der Zeit schonmal weitersuchen, falls ich was finde, poste ich die Lösung hier.
Corthez is offline  
Old 07/07/2012, 16:49   #2
Administrator
 
Muddy Waters's Avatar
 
elite*gold: 41364
Join Date: Jan 2010
Posts: 22,729
Received Thanks: 12,625
Wenn du magst kannst du dir das hier mal anschauen:

Da habe ich genau das umgesetzt, prinzipiell brauchst du nur ein Handle zu dem Fenster, auf das du zugreifen willst und kannst dann mit WinAPI Funktionen arbeiten.
Muddy Waters is offline  
Thanks
2 Users
Old 07/07/2012, 22:09   #3
 
elite*gold: 0
Join Date: Oct 2011
Posts: 435
Received Thanks: 181
Quote:
Originally Posted by Muddy Waters View Post
Wenn du magst kannst du dir das hier mal anschauen:

Da habe ich genau das umgesetzt, prinzipiell brauchst du nur ein Handle zu dem Fenster, auf das du zugreifen willst und kannst dann mit WinAPI Funktionen arbeiten.
Hey,
vielen Dank! Werde mir das Tool in den nächsten Stunden mal anschauen. Credits wirste jedoch keine Sehen, Programm wird nur für die private Nutzung geschrieben
Corthez is offline  
Old 07/12/2012, 12:12   #4
 
kissein's Avatar
 
elite*gold: 0
Join Date: Sep 2005
Posts: 426
Received Thanks: 87
Warum kein DllImport auf die WinAPI und über die Process Class bekommt die MainWindowHandle Property und kann diese dann an die Form übergeben.
kissein is offline  
Old 07/13/2012, 12:38   #5
Administrator
 
Muddy Waters's Avatar
 
elite*gold: 41364
Join Date: Jan 2010
Posts: 22,729
Received Thanks: 12,625
Genau so habe ich es doch auch umgesetzt - funktioniert wunderbar.
Muddy Waters is offline  
Old 07/13/2012, 16:27   #6
 
kissein's Avatar
 
elite*gold: 0
Join Date: Sep 2005
Posts: 426
Received Thanks: 87
ups sorry, nur OP Post gelesen :/
kissein is offline  
Reply


Similar Threads Similar Threads
Ibot client resizing.
05/17/2011 - Silkroad Online - 4 Replies
Hello everyone! So I just got Ibot to work after trial and error for everything and it seems as though I have to run 2 clients in order to start botting (1 with HS and the other with the Edx33Loader). But the problem is that my computer cannot handle this much and I was wondering if there was a way to run this bot with only 1 client or if there was a great client resizing tool out there that I could use.. Thank you!
Resizing Eudemon Screen Display
01/26/2009 - Eudemons Online - 1 Replies
I just got my netbook which is I love very much but i have a little problem after installing my Eudemon. It works good, resolution is great but the size wont fit. How I can resize it to fit in my window screen which is 4 1/2 in height by 7 3/4 in width. Please help me! I will appreciate it. if you have an answer please email me at [email protected]



All times are GMT +2. The time now is 14:44.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.