Jump to content

Th0r

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by Th0r

  1. I'll suggest you use samurize to this sort of utility. http://www.samurize.com/modules/news/ Download samurize and add the wanted icon and place an empty textfield over it that links to the application. It's not that difficult. You just have to explore the gui.
  2. Weird. I installed Autoit five days ago but, reinstalling worked .
  3. Thanks Mission accomplished.
  4. I dont see any attached files. Jeg ser ingen vedlagte filer
  5. Thanks THe script works as it should now. It first kills the app, relaunch it again and logging in and set the priority to low and minimize it. I also has an issue with complie the au3 file and the "complie script" app crashes. (my antivirus is disabled atm) Could someone just build it to an .exe Opt("WinWaitDelay",1000) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) Opt("MouseCoordMode",0) $pfilnavn = IniRead("settings.ini", "noobpoengbot", "filnavn", "1") $pfilsti = IniRead("settings.ini", "noobpoengbot", "filsti", "1") $passord = IniRead("settings.ini", "noobpoengbot", "passord", "1") ShellExecute("taskkill.exe","-f -im " & $pfilnavn & " ") sleep(1000) ShellExecute($pfilsti) WinWait("n00bs poengbot","") sleep(100) ShellExecute("Process.exe","-p " & $pfilnavn & " low ") If Not WinActive("n00bs poengbot","") Then WinActivate("n00bs poengbot","") WinWaitActive("n00bs poengbot","") Send("{TAB}"& $passord &"{TAB}{SPACE}") WinWait("Aktivert!","") If Not WinActive("Aktivert!","") Then WinActivate("Aktivert!","") WinWaitActive("Aktivert!","") Send("{SPACE}") WinWait("n00bs poengbot | Hold inne F12 for å stoppe! :)","") If Not WinActive("n00bs poengbot | Hold inne F12 for å stoppe! :)","") Then WinActivate("n00bs poengbot | Hold inne F12 for å stoppe! :)","") WinWaitActive("n00bs poengbot | Hold inne F12 for å stoppe! :)","") Send("{ALTDOWN}{SPACE}n") Send("{ALTUP}")
  6. So I have yo use "&" before and after an $variable?
  7. Thanks New pit stop: This one launch an app and set the priority on the app to low and then minimize it. And it should load the values in settings.ini Opt("WinWaitDelay",1000) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) Opt("MouseCoordMode",0) $filnavn = IniRead("settings.ini", "noobpoengbot", "filnavn", "1") $pfilsti = IniRead("settings.ini", "noobpoengbot", "filsti", "1") $passord = IniRead("settings.ini", "noobpoengbot", "passord", "1") ShellExecute("taskkill.exe",""/F /IM $pfilnavn"" ") sleep(1000) Run('C:\n00bs poengbot Thor.exe') WinWait("n00bs poengbot","") sleep(100) ShellExecute("Process.exe","-p "$pfilnavn" low ") If Not WinActive("n00bs poengbot","") Then WinActivate("n00bs poengbot","") WinWaitActive("n00bs poengbot","") Send("{TAB}"$passord"{TAB}{SPACE}") WinWait("Aktivert!","") If Not WinActive("Aktivert!","") Then WinActivate("Aktivert!","") WinWaitActive("Aktivert!","") Send("{SPACE}") WinWait("n00bs poengbot | Hold inne F12 for å stoppe! :)","") If Not WinActive("n00bs poengbot | Hold inne F12 for å stoppe! :)","") Then WinActivate("n00bs poengbot | Hold inne F12 for å stoppe! :)","") WinWaitActive("n00bs poengbot | Hold inne F12 for å stoppe! :)","") Send("{ALTDOWN}{SPACE}n") Send("{ALTUP}") settings.ini: [noobpoengbot] filnavn=n00bpoengbot.exe filsti=C:\noobautoit\ passord=** It should work. I know there is a special caracter i am missing but I dont know where or what. (please don't finish the code, just show an example of correct use/show me how it's correct.)
  8. I have been trying to google it but all the codes I find is way too complex for me. I used autoit for like half an year ago at a very low level of knowledge. Now, i have forgotten alot. Right now. I tried to make autoit launch notepad2 and type the variable. Settings.ini: [category] string=Hello world! IniRead("settings.ini", "kategori", "string", "1") Run('notepad.exe') WinWait("Untitled - Notepad2","") If Not WinActive("Untitled - Notepad2","") Then WinActivate("Untitled - Notepad2","") Send(&{$string}) How do I make it type the variable "string" in some way? It is to submit a password to a program.
×
×
  • Create New...