Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 04:58

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

Advertisement



[Frage]AutoIt anderes "BasisFenster"?

Discussion on [Frage]AutoIt anderes "BasisFenster"? within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
[_Zidane_]'s Avatar
 
elite*gold: 8
Join Date: Oct 2009
Posts: 330
Received Thanks: 112
[Frage]AutoIt anderes "BasisFenster"?

Moin Leute.

Ich hab folgenden Wunsch.
Ich habe heute in AutoIt eine GUI mit 3 Checkboxen und 2 Knöpfen eingebunden ("Designed" via Koda) aber habe jetzt dieses "Standard"-Fenster.
Ich möchte allerdings erreichen, dass ich ein Fenster habe, dass eine Schild-Ähnliche Form hat (Mit Schild meine ich solche: ) und in welchem dann die Checkboxen und Knöpfe sind.

Wie krieg ich das hin? Geht das überhaupt? Bitte um Antwort

*Gruß*
[_Zidane_]
[_Zidane_] is offline  
Old 08/05/2012, 22:03   #2


 
K1ramoX's Avatar
 
elite*gold: 26
Join Date: Jan 2012
Posts: 3,474
Received Thanks: 18,844
Mit der GDI+ API in deinem include Ordner ;D
K1ramoX is offline  
Old 08/06/2012, 14:06   #3
 
[_Zidane_]'s Avatar
 
elite*gold: 8
Join Date: Oct 2009
Posts: 330
Received Thanks: 112
Quote:
Originally Posted by K1ramoX View Post
Mit der GDI+ API in deinem include Ordner ;D
Also bei mir im Include ordner gibts nur eine GDIPlus und eine GDIPlusConstants. Keine API.

Aber selbst wenn ich beides hab, wie mach ich das dann genau?
[_Zidane_] is offline  
Old 08/09/2012, 12:53   #4
 
Smincke2's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 184
Received Thanks: 299
Guck dir mal in der Hilfe die Funktion _WinAPI_CreateRectRgn an, da wird beschrieben, wie man so ertwas macht. Ich werde gleich mal ein Beispiel posten.
Code:
Global $hGUI, $aPos, $aRegion1, $aRegion2

$hGUI = GUICreate('', 600, 400)
GUISetState(@SW_SHOW, $hGUI)

$aRegion1 = DllCall('gdi32.dll', 'handle', 'CreateEllipticRgn', 'int', 0, 'int', -300, 'int', 400, 'int', 300)
$aRegion2 = DllCall('gdi32.dll', 'handle', 'CreateEllipticRgn', 'int', 100, 'int', -300, 'int', 500, 'int', 300)
DllCall('gdi32.dll', 'int', 'CombineRgn', 'handle', $aRegion1[0], 'handle', $aRegion1[0], 'handle', $aRegion2[0], 'int', 1)
DllCall('user32.dll', 'int', 'SetWindowRgn', 'hwnd', $hGUI, 'handle', $aRegion1[0], 'bool', True)
DllCall('gdi32.dll', 'bool', 'DeleteObject', 'handle', $aRegion1[0])
DllCall('gdi32.dll', 'bool', 'DeleteObject', 'handle', $aRegion2[0])

While GUIGetMsg() <> -3
	Sleep(10)
WEnd
PS: K1ramoX kann unmöglich so verantwortungslos ein und GDI+ nennen, wenn es zumindest bei AutoIt die WinAPI ist. ( Normalerweise ist SetWindowRgn WinAPI und alles andere GDI)
Smincke2 is offline  
Reply


Similar Threads Similar Threads
[Frage]AutoIt Befehl "Send ("text")
12/28/2010 - AutoIt - 4 Replies
Hey ElitePvpers, seit einigen Tagen beschäftige ich mich mit AutoIt, und kenne einige Befehle und Co. Nun Frage ich mich seid gestern, ob man den Text der gesendet werden soll in der .txt Datei abgespeichert wird und AutoIt dann den Text damit aufrufen kann. Also z.B. wenn der Script Code so aussieht: While 1 Send("text") Send("{Enter}") Sleep(2000) Wend



All times are GMT +1. The time now is 04:59.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.