Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by duncanb7
at 2024-10-10 23:03:20
Point:250 Replies:3 POST_ID:828376USER_ID:11059
Topic:
Visual Basic Programming;;
I have used findwindow() to find out my target wbesite page in internet explore window by its window title and return its handler. ANd I can use showwindow to max and minize or restor the size of
the target windows but showwindow() can't change any size of the window . Is it possible method to set any size of the target IE windows if I am able to get the handle of target window by findwindow() ?
I know setcursorpos function. Is ther any API function call setwindowsize ?
Please advise
Duncan
the target windows but showwindow() can't change any size of the window . Is it possible method to set any size of the target IE windows if I am able to get the handle of target window by findwindow() ?
I know setcursorpos function. Is ther any API function call setwindowsize ?
Please advise
Duncan
Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As LongDeclare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As LongDeclare Function GetWindowTextLength Lib "user32" Alias "GetWindowTextLengthA" (ByVal hwnd As Long) As LongPrivate Type RECTLeft As LongTop As LongRight As LongBottom As LongEnd TypeSub mywindow()Dim twintwin=Findwindow(vbnullstring, "Yahoo! - Windows Internet Explorer"How to set my target windows size here 1:2:3:4:5:6:7:8:9:10:11:12:13:14:15:16:
Author: duncanb7 replied at 2024-10-16 01:33:41
thankfor your reply
Expert: Chris Bottomley replied at 2024-10-11 00:13:41
Sorry missed the declaration:
Declare Sub SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long)
Chris
Accepted Solution
Expert: Chris Bottomley replied at 2024-10-11 00:12:52
250 points GOOD