i'm just trying to familiarize my self with C, anyhow, i am trying to create a program which will automatically login for me into the swinburne site (for example). except, i have absolutely no idea how to use the postmessage function in "windows.h". please note, although i am doing programming (undergraduate), this is neither related to homework or assignment/project, this is something i set for myself, since i really don't understand this postmessage function.
alright, here is the code i have so far:
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main ()
{
ShellExecute(NULL, "open", "https://ilearn.swin.edu.au/webapps/portal/frameset.jsp", NULL, NULL, SW_SHOWNORMAL);
Sleep (20000);
postmessage (???) /* i have inserted the '???' since i have no idea what to do. */
return 0;
}
without the 'postmessage' it works fine.
now, i have looked at this website, but, honestly, i do not understand a word of it.
ps: my default browser is firefox, and i'm on win7 (home)
so here is my two questions:
1) could anyone help me with this postmessage function? (or provide me with a link to something that will help me)
2) this is still related, a function to send a keystroke, for instant, in vb, there is sendkeys.keystroke (....), is there such a similar thing in C? (again, a link will suffice, but i did not find any link to help me here)
thank you in advance =)

New Topic/Question
Reply



MultiQuote





|