Click here to Skip to main content
12,395,871 members (63,822 online)

Windows API

 
GeneralRe: vbscript processes for current user Pin
jan212r10-Apr-13 2:39
memberjan212r10-Apr-13 2:39 
GeneralRe: vbscript processes for current user Pin
Dave Kreskowiak10-Apr-13 3:40
mvpDave Kreskowiak10-Apr-13 3:40 
GeneralRe: vbscript processes for current user Pin
MicroVirus10-Apr-13 9:57
memberMicroVirus10-Apr-13 9:57 
QuestionSetSecurityInfo() broken on Windows8? Pin
Erudite_Eric1-Apr-13 2:14
memberErudite_Eric1-Apr-13 2:14 
AnswerRe: SetSecurityInfo() broken on Windows8? Pin
Dave Kreskowiak1-Apr-13 2:45
mvpDave Kreskowiak1-Apr-13 2:45 
QuestionTurn off my Wifi adaptor Pin
AK7758126-Feb-13 13:46
memberAK7758126-Feb-13 13:46 
AnswerRe: Turn off my Wifi adaptor Pin
Richard MacCutchan26-Feb-13 22:37
mvpRichard MacCutchan26-Feb-13 22:37 
QuestionInteraction with a dialog box Pin
ShaiBen13-Jan-13 6:00
memberShaiBen13-Jan-13 6:00 
Hi
I'm trying to write automation to a test a web site with C#.
I'm using selenium web driver but it cannot interact with native windows. so i'm using winAPI to control a dialog window.

I am trying to automaticly upload a file by interacting with the Dialog window.


I have managed to get a handle on the window using the following code:

public const int WM_SYSCOMMAND = 0x0112;
       public const int SC_CLOSE = 0xF060;
       public const int WM_SETTEXT = 0x000C;
       private void ChooseFile()
       {
           // retrieve the handler of the window
           int iHandle = FindWindow("#32770", "File Upload");
 

 
           if (iHandle > 0)
           {
              //Choose File - using a string with the file path
              //Press OK
           }
       }

What I need to do next is choose the file to upload and then press OK to approve.

Help will be much appreciated Smile | :)
AnswerRe: Interaction with a dialog box Pin
anton_V17-Feb-13 3:03
memberanton_V17-Feb-13 3:03 
QuestionWindows RT Bluetooth Pin
Collin Jasnoch9-Jan-13 2:58
memberCollin Jasnoch9-Jan-13 2:58 
AnswerRe: Windows RT Bluetooth Pin
Pete O'Hanlon9-Jan-13 3:03
protectorPete O'Hanlon9-Jan-13 3:03 
GeneralRe: Windows RT Bluetooth Pin
Collin Jasnoch9-Jan-13 3:08
memberCollin Jasnoch9-Jan-13 3:08 
GeneralRe: Windows RT Bluetooth Pin
Pete O'Hanlon9-Jan-13 3:13
protectorPete O'Hanlon9-Jan-13 3:13 
GeneralRe: Windows RT Bluetooth Pin
Collin Jasnoch9-Jan-13 3:41
memberCollin Jasnoch9-Jan-13 3:41 
Questionendless WM_MOUSEWHEEL events Pin
ed welch28-Dec-12 6:02
membered welch28-Dec-12 6:02 
AnswerRe: endless WM_MOUSEWHEEL events Pin
Richard MacCutchan28-Dec-12 23:20
mvpRichard MacCutchan28-Dec-12 23:20 
GeneralRe: endless WM_MOUSEWHEEL events Pin
ed welch29-Dec-12 1:58
membered welch29-Dec-12 1:58 
GeneralRe: endless WM_MOUSEWHEEL events Pin
Richard MacCutchan29-Dec-12 2:05
mvpRichard MacCutchan29-Dec-12 2:05 
GeneralRe: endless WM_MOUSEWHEEL events Pin
ed welch29-Dec-12 2:52
membered welch29-Dec-12 2:52 
GeneralRe: endless WM_MOUSEWHEEL events Pin
Eddy Vluggen29-Dec-12 3:37
memberEddy Vluggen29-Dec-12 3:37 
GeneralRe: endless WM_MOUSEWHEEL events Pin
ed welch29-Dec-12 7:57
membered welch29-Dec-12 7:57 
GeneralRe: endless WM_MOUSEWHEEL events Pin
Eddy Vluggen29-Dec-12 8:09
memberEddy Vluggen29-Dec-12 8:09 
GeneralRe: endless WM_MOUSEWHEEL events Pin
ed welch29-Dec-12 10:42
membered welch29-Dec-12 10:42 
GeneralRe: endless WM_MOUSEWHEEL events Pin
SledgeHammer0129-Dec-12 12:16
memberSledgeHammer0129-Dec-12 12:16 
Questionwin32 Pin
usermina122-Dec-12 21:17
memberusermina122-Dec-12 21:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 2 Jun 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid