Hi all,
Anyone have an idea why this does not work when you are in debug mode? It works if complied to an exe and executed normally. I'm using the OS to automate loading of a browser into localhost.
Thanks in advance.
Brett
Anyone have an idea why this does not work when you are in debug mode? It works if complied to an exe and executed normally. I'm using the OS to automate loading of a browser into localhost.
Code:
#Compile Exe #Dim All #Include "Win32API.inc" Function PBMain () As Long Dim nShellPtr As Dword nShellPtr = ShellExecute(ByVal %NULL, "open", "http://127.0.0.1/" & Chr$(0), ByVal %NULL, ByVal %NULL,%sw_shownormal Or %sw_showmaximized) End Function
Brett
Comment