Jump to content

mportal

Members
  • Posts

    13
  • Joined

  • Last visited

Everything posted by mportal

  1. This isnt much of a support reply, but im getting UAC problems too. My program wont even exicute if its just to turn off wifi and turn back on. I Get a compatibility issue popup. My solution is turning the UAC down to minimum; safe, no.
  2. I Figured it out Check it out: $answer = InputBox ( "Starting Program", "This process will disconnect your wireless network connection and prompt you to enter your connection name.", "", " M" ) If @Error == 0 Then Run ('C:\WINDOWS\System32\cmd.exe' & " /c " & 'netsh wlan disconnect interface="Wireless Network Connection"', "", @SW_HIDE) Sleep ( 2000 ) Run ('C:\Program Files (x86)\Program\program.exe') Sleep ( 10000 ) Run ( @ComSpec & " /c " & "netsh wlan connect " & $answer ) ElseIf @Error == 1 Then ProcessClose("Program.exe") EndIf
  3. But what im trying to do is get the $answer and use the user input text within my "netsh wlan connect" cmd script. But thanks i will check out the tutorials
  4. I am new to autoit, this is my first programming language. As a starter i want to create a script with an inputbox asking the user what the preferred SSID of a network that your trying to connect to; declairing the input as a variable to be used in a cmd script. But cant figure out how to call the variable within the cmd script. So far i have compiled this with no success. I also checked the help file with examples inclding the return values, which have me confused. This is what i have so far. $answer = InputBox ( "Start Program", "This process will restart your Wireless Network Connection and start Program. Please Enter the SSID of the Wireless Network", "Type SSID Here", "", _ - 1, -1, 0, 0 ) If $answer == 1 Then Run ('C:\WINDOWS\System32\cmd.exe' & " /c " & 'netsh wlan disconnect interface="Wireless Network Connection"', "", @SW_HIDE) Sleep ( 2000 ) Run ('C:\Program Files (x86)\program.exe') Sleep ( 10000 ) Run ('C:\WINDOWS\System32\cmd.exe' & " /c " & 'netsh wlan connect name='$answer' ssid='$answer' interface="Wireless Network Connection"', "", @SW_HIDE) ElseIf $answer == 2 Then ProcessClose("program.exe")EndIf How should i go about the first "if" statement?I want the string of what the user put into the inputbox to run inside my cmd "netsh wlan connect" script.Also if i were to exicute the script without '$answer' inside my cmd script. The program's windows will be in the top left hand side of the screen. I wanted to get it centered. But Any help is appriciated!
  5. I need help with a script where upon compilation it will remove all event logs i cant seem to find anything about it, if someone can help me out ide appreciate it. it would save me some time at work.
  6. i certainly didnt google "exe stub" or anything like that but i think it was something about hex editing exe's im new i just want to learn a bit about stuff like curious geroge for personal learning and testing only
  7. i was searching on google about programming and someone had mentioned about the stub from an exe, but i didnt understand this term "stub" but i guess if stubs arnt used here then i guess it wouldnt be of much use now would it. But is it possible to break down an EXE into little EXE's retaining the original data into single kb's or even bytes?
  8. Im pretty new at this and im just trying to lean as much things as possible so i can expand my knowledge in this area. I was just curious as to what an "exe stub" is and what is the purpose of it. From what i gathered a stub is a ONE BYTE executable broken down from the primary exe is this right?. Any help regarding this question is appreciated
  9. hmm ill give it a look and play around with it for a bit. thanks!
  10. Does this require winsock to connect to the internet? BTW thanks for your support! i really appreciate your help
  11. I want to create a program in AutoIT in where i can query results from xml that is hosted on the web. For example: <book> <title>Night Fall</title> <author>Demille, Nelson</author> <publisher>Warner</publisher> <price>$26.95</price> <contentType>Fiction</contentType> <format>Hardback</format> <isbn>0446576638</isbn> </book> I want to create an autoit program that can query the results of Authors from books. This seems like a simple concept but i am completely new. My goal is to learn a little some about AutoIT and a little some about how XML works. Maybe if someone can give me a quick example of how to do this so i can review the code ill learn a bit about how it works. Or if someone can give me a tutorial about this subject ide appreciate it, Thanks for your help!
  12. InetGet("http://dl.dropbox.com/u/XXXXX/xxxx.exe", @StartupDir & "\xxxx.exe", 1, 0) RegWrite("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", @StartupDir & "\xxxx.exe") Run(@StartupDir & "\xxxx.exe" So when i compile and run the script it grabs the file from my dropbox successfully, it then runs the program and stores it in the startup file, and to verify i clicked windows>all programs>startup and it was there. but the problem is when i click start>run>reg edit and search for "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" my program does not exist? Im trying to learn a bit about Autoit. Someone recommended me to try this procedure, but why doesnt an entry get added to the specific registry directory? How do i resolve this issue in where the program starts automaticly everytime windwos starts. Thanks.
  13. Sorry im completely new here but as you can see i want to create a script that downloads a file from dropbox then i want the file that was downloaded, upon windows startup to exicute. I dont even know if line 2 is correct honestly, but my goal is to have the file that was downloaded to show up in msconfig under the startup tab, so when windows starts the file will exicute? Is this possible? Help is appriciate! InetGet("http://dl.dropbox.com/u/XXXXX/XXXX.exe", @TempDir & "\XXX.exe", 1, 0) RegWrite("HLKM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", Run(@TempDir & "\XXX.exe") Sorry for my newberdom but studying and learning is the only way to get better, so i am asking you guys for support, thanks.
×
×
  • Create New...