Jump to content

Dllcall again


Aceguy
 Share

Recommended Posts

i want to learn how to change.

Shared Function MoveWindow(ByVal hWnd As IntPtr, ByVal x As Integer, ByVal y As Integer, ByVal nWidth As Integer, _
                           ByVal nHeight As Integer, ByVal bRepaint As Boolean) As Boolean

http://www.pinvoke.net/default.aspx/user32/Movewindow.html

what am i doing wrong please

i have

DllCall("user32.dll","int"," MoveWindow","hwnd",$gui,"int",200,"int",200,"int",400,"int",500,"int",true)

please assist.

Link to comment
Share on other sites

so, i know there is a lot of sliding guis out there, but wanna make it simple for me....

is this the best way, (without flicker)

$PID = Run("notepad.exe")
WinWait("Untitled - Notepad")
$hWin = WinGetHandle("Untitled - Notepad")
Sleep(2000)

$pos=WinGetPos("Untitled - Notepad")
for $y=1 to 500
$Test = DllCall("user32.dll", "int", "MoveWindow", "hwnd", $hWin, "int",$pos[0], "int",$pos[1], "int", $pos[2]+$y, "int", $pos[3], "int", True)
Next
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...