8 posts in this topic
Hello m trying to learn python
m interested in knowing if there is koda like gui designer for python
please also help me what all additional modules i require
like ones which are famous
i have already done with
I want to run a python script from autoit.
I know we can do this with shellexecute or run , but this python script takes 3 cmd line arguments.
How to pass them from autoit script?
I tried many ways.
Following solution also not working
RunWait( 'fullpath\Python.exe Scriptpath\ReadLog.py -f "file.log" -k "key" -e "errMsg" ') Found solution:
RunWait( 'fullpath\Python.exe ReadLog.py -f "file.log" -k "key" -e "errMsg" ', 'Working_directory_path')
I recently discovered these:
I guess any python developer knows what these are.
The problem is that I`m on a 64bit version of Windows and i can`t use neither
pip install -U pyautoit nor
python setup.py install to install the package
Is there anyone who has the same problem like me?
Suggest your suggestions
*(nice joke right there )*
Problem solved -> Apparently when i run the setup.py file from github it worked.
Edit: Just realised this was posted in the wrong forum! I guess the Mods will move it to either "AutoIt General Help and Support" or "AutoIt Technical Discussion".
Do you use type checking? Or do you choose not to type check?
I was trying to think of the simplest way to do a type check without typing arguments more than once and I came up with:
Func displayPerson($firstName, $lastName, $age) ; -- TYPE CHECK -- Local $typeCheck = ("" _ & IsString($firstName) _ & IsString($lastName) _ & IsNumber($age) _ ) If (StringInStr($typeCheck, "0")) Then MsgBox(16, "Type Error: displayPerson()", $typeCheck) ; -- FUNCTION -- MsgBox(0, "", $firstName & " " & $lastName & " (" & $age & ")") EndFunc The only catch with this method is that it produces a very simplistic error message. Even still, the fact that you only have to type out arguments once makes it a reasonable approach, in my opinion. The same logic can also be used for making function contracts (for example: $firstName mustn't be an empty string etc...).
What do you think? How do you go about such things?
I want to return string from autoit script to the python code.
Exit("22 FE 45") -> not working
Exit(1) -> Working
Exit(0) -> Working
I got some hint of @ExitCode macro, but dont know how to use it to get the string in python variable 'res'.
Please resolve this issue for me if anyone knows about this.