BatMan22 Posted November 12, 2017 Share Posted November 12, 2017 (edited) So basically I'm trying to automate signing of iOS apps to your iphone with cydia impactor, if you don't have a apple dev account (99$ a year) then your process for signing apps is... annoying to say the least. Retype in login name and password every-time. So what I am trying to do is save my username/password to a .ini then access it as a variable, unfortunately passwords with special characters will yield errors... ie !, $, %, & ect ect. Help? Also files that I drag onto my program ($CmdLine[1]) will also yield errors if the names have special characters. Help expandcollapse popup#Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_UseX64=y #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** $username = IniRead("settingsforloader.ini", "section", "username", "NotFound") $password = IniRead("settingsforloader.ini", "section", "password", "NotFound") Global $draggedfile, $locationcheck, $buttonclicked, $impactorfolder=@DesktopDir & "\Impactor\", $impactorlocation=@DesktopDir &"\Impactor\Impactor.exe" If $CmdLine[0] = 0 Then MsgBox(0, "ERROR", "DRAG AND DROP THE IPA FILE YOU WANT TO INSTALL ON ME!") Break EndIf If $CmdLine[0] <> 0 Then $draggedfile=$CmdLine[1] $locationcheck = FileExists($impactorlocation) If $locationcheck=0 Then MsgBox(0, "", "The file doesn't exist." & @CRLF & "FileExist returned: " & $locationcheck) Break EndIf ShellExecute(@DesktopDir &"\Impactor\Impactor.exe") WinWait("Cydia Impactor") WinActivate("Cydia Impactor") Sleep(100) Send("{ALTDOWN}") Send("DI") Sleep(1000) Send("N") Sleep(100) Send("{ALTUP}") Send($draggedfile) Send("{ALTDOWN}") Send("O") Send("{ALTUP}") Sleep("100") WinWait("Apple") WinActivate("Apple") Send($username) Send("{ENTER}") WinWait("Apple ID Password") WinActivate("Apple ID Password") Send($password) Send("{ENTER}") The INI file is just: [section] username=username@domain.com password=blah!@#%$^&*((blahblah Edited November 12, 2017 by BatMan22 Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted November 12, 2017 Moderators Share Posted November 12, 2017 Look at the second parameter for Send. If you use 1 the keys will be sent raw "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now