Jump to content

Muscle

Active Members
  • Posts

    30
  • Joined

  • Last visited

About Muscle

  • Birthday 03/03/1990

Profile Information

  • Location
    Germany

Muscle's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. then i run it, i get a INVALID CMDLINE - Error ??? muscle
  2. thx, i will try it direct muscle
  3. adminrights() Func adminrights() If Not IsAdmin() Then ; Admin-Account user $run_admin_user = "Blub" ; Admin-Account pass $run_admin_pass = "test" ; adminrights If Not $CMDLINE[0] Then RunAs($run_admin_user, @ComputerName, $run_admin_pass, 0,'"' & @AutoItExe & '" /AutoIt3ExecuteScript "' & @ScriptFullPath & '" /admin') If @error = 1 Then MsgBox(48, "-", "Error") EndIf Exit ElseIf $CMDLINE[1] <> '/admin' Then MsgBox(48, "-", "Error") Exit 1 EndIf EndIf EndFunc ;==>adminrights If IsAdmin() Then MsgBox(0, "", "NOW adminrights") muscle
  4. yeah something like this - but it´s not working (the scripts closes itself) :-( muscle
  5. then i use the script name it always restarts it self and nothing is happing. muscle
  6. of course i did! i used: RunAs($run_admin_user, @ComputerName, $run_admin_pass, 0, @ComSpec) but then only 2 cmd windows open and that´s all muscle
  7. thx jos! but the problem is that id doesn´t work ( i already tried). i have the newest autoit version (3.2.12.1) muscle
  8. hi @ all!!! i have a big problem. i wrote a script that needs admin rights on vista and xp. the problem is that i want to run the script with admin rights which are saved in a ini file. Then you can run the script on an account without admin rights with the saved user login data. Can anyone help me to realize that? I had an old script (i don´t know from where xD) that worked really good on xp - but it was an very old autoit version. Thanks!!!!! Muscle adminrights() Func adminrights() If Not IsAdmin() Then Opt("RunErrorsFatal", 0) ; Admin-Account user $run_admin_user = IniRead("data.ini", "Data", "account-user", "-") ; Admin-Account pass $run_admin_pass = IniRead("data.ini", "Data", "account-pass", "-") ; adminrights If Not $CMDLINE[0] Then RunAsSet($run_admin_user, @ComputerName, $run_admin_pass) Run('"' & @AutoItExe & '" /AutoIt3ExecuteScript "' & @ScriptFullPath & '" /admin') If @error = 1 Then MsgBox(48, "-", "Error") Else RunAsSet() EndIf Exit ElseIf $CMDLINE[1] <> '/admin' Then MsgBox(48, "-", "Error") Exit 1 EndIf EndIf EndFunc If IsAdmin() Then MsgBox(0, "", "NOW adminrights")
  9. great script! it works on vista too. yeah! thx guys!
  10. i think so, i downloaded the normal version http://www.autoitscript.com/cgi-bin/getfil...it-v3-setup.exe is that right? thx, muscle
  11. Hi! the problem is that i don´t have COMPILE SCRIPT WITH OPTIONS in my context menu. It isn´t there. How can I start it manually if it´s there? Thx, Muscle
  12. Hi @all I want to compile a script with the actual autoit version (3.2.10.0.) and add some informations to the exe, but it didn´t work. I don´t get a compiled exe. If I only click on the au3-file with right-click and then click on compile then I get a compiled exe but there aren´t the informations included which I wrote in my script. How can I compile a script with the Wrapper information? Thx for help! Muscle Edit: I use Windows Vista. #Region #AutoIt3Wrapper_icon=D:\Coding\images\compiler\image.ico #AutoIt3Wrapper_outfile=C:\compiled.exe ;#AutoIt3Wrapper_Compression=4 #AutoIt3Wrapper_Res_Comment=Test #AutoIt3Wrapper_Res_Description=Some text #AutoIt3Wrapper_Res_Fileversion=1.0.0.0 #AutoIt3Wrapper_Res_LegalCopyright=© Test Name #AutoIt3Wrapper_Res_Language=1031 #AutoIt3Wrapper_Run_AU3Check=n #EndRegion
  13. Thx, but is there no normal function to do this (like a real progress) or isn´t this availible in autoit? Thx, Muscle.
  14. Hi!! Is it possible to make a progress without white space? Normal Progress Special Progress (don´t know how to make this) Does anyone has an idea how to create such a special progress? Thx for help! Muscle
  15. thanks, i will try. but how to make the change of the close button (=> gets red) muscle
×
×
  • Create New...