Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7

Search found 18 matches

by sauber
30.07.2019 16:29
Forum: General Discussion
Topic: Start Stealth with Powershell or Batch?
Replies: 7
Views: 10865

Re: Start Stealth with Powershell or Batch?

By using Google Translate, I didn't realise there weren't spaces in the C:\Path\Stealth.exe chars=autostart.txt

In the text file you need

Code: Select all

Profile1; connect;\ScriptName.sc; start
No space after connect;\ <----
by sauber
26.07.2019 10:52
Forum: General Discussion
Topic: Start Stealth with Powershell or Batch?
Replies: 7
Views: 10865

Re: Start Stealth with Powershell or Batch?

The same problem, nothing happens.
Also tried to run stealth as Administrator
by sauber
19.07.2019 23:10
Forum: General Discussion
Topic: Start Stealth with Powershell or Batch?
Replies: 7
Views: 10865

Re: Start Stealth with Powershell or Batch?

Thanks Vizit0r, but the script doesn't start and player doesn't go online.

1) Create autostart.txt file with:

Code: Select all

ProfileName; connect; /Script.sc; start
2) tried with Command Line or with Shortcut: C:\Path\stealth.exe chars autostart.txt
Stealth opens and nothing happens. Version 8.8.3
by sauber
23.06.2019 12:08
Forum: General Discussion
Topic: Start Stealth with Powershell or Batch?
Replies: 7
Views: 10865

Start Stealth with Powershell or Batch?

Hello, Would it be possible to start Stealth with a PS or Batch command and give arguments to start one script? Solution. Create a .txt file inside your main Stealth Folder like this (very important to mind the spaces!) ProfileName; connect;\ScriptName.sc; start The script must be inside the Scripts...
by sauber
04.12.2018 0:48
Forum: Help
Topic: [Python] example for Journal reading (solved)
Replies: 4
Views: 8357

Re: [Python] Help example for Journal reading

Thanks again!

Code: Select all

import datetime

def scanJournal():
   start = datetime.datetime.now()
   Wait(500)
   UOSay('Hello')
   Wait(100)
   if InJournalBetweenTimes('Hello', start, datetime.datetime.now())) != -1:
       AddToSystemJournal('Matching words')
   else:
       AddToSystemJournal('Not a match')
by sauber
03.12.2018 23:00
Forum: Help
Topic: [Python] example for Journal reading (solved)
Replies: 4
Views: 8357

Re: [Python] Help example for Journal reading

Hi,

one issue, I can't use Now in python, any idea what is used?
by sauber
03.12.2018 22:58
Forum: Help
Topic: [Python] search in Property string (solved)
Replies: 4
Views: 7870

Re: [Python] BMSearch - Name Error - not defined

Thanks! def setupBooks(): FindType(bulkBookType,Backpack()) for bkCnt in range(FindCount()): FindType(bulkBookType,Backpack()) info = GetTooltip(FindType(bulkBookType,Backpack())) if 'Tailor' in info: TBook = str(FindItem())) print('Tailor book id: ' + str(FindItem())) if 'Black' in info: BBook = st...
by sauber
03.12.2018 17:56
Forum: Help
Topic: [Python] search in Property string (solved)
Replies: 4
Views: 7870

Re: [Python] BMSearch - Name Error - not defined

Same problem, I need to add the String message from the Item to a variable, I believe with GetCliloc?

GetCliloc is not defined

Any example please?
by sauber
02.12.2018 22:42
Forum: Help
Topic: [Python] search in Property string (solved)
Replies: 4
Views: 7870

[Python] search in Property string (solved)

Hi Guys I'm translating a Pascal procedure in Python Although, if I ask to Print I get this error in the Sysjornal NameError: name 'BMSearch' is not defined def setupBooks(): FindType(BulkBookType,Backpack()) #print(FindItem()) print(BMSearch(FindItem(),info,'Black')) Original Pascal procedure setup...
by sauber
27.11.2018 23:30
Forum: Help
Topic: [Python] example for Journal reading (solved)
Replies: 4
Views: 8357

[Python] example for Journal reading (solved)

Hi,

The first example, from nah nah's suggestion is just a couple of posts under.
by sauber
25.11.2018 2:32
Forum: Help
Topic: [Python] NumGumpButton, ReturnValue from ElemNum (solved)
Replies: 3
Views: 7278

Re: [Python] NumGumpButton, ReturnValue from ElemNum (solved

When I started playing around with python 4 years ago, version 2.7 was more stable.
I took a long break and I didn’t research much about its development.
It should be fine with all other versions, it’s a really simple function.
Anyway hope this will help a lot of newbies!
by sauber
24.11.2018 21:18
Forum: Help
Topic: [Python] NumGumpButton, ReturnValue from ElemNum (solved)
Replies: 3
Views: 7278

Re: [Python] NumGumpButton, ReturnValue from ElemNum

This seems to work fine (I'm using 8.8.3 Stealth and Python2.7) simply call the function with the Gump Index number and the Button ElemNum even if the ReturnValue will change, this function will find it and hit the button for you def findReturnValue(gump_index, btnElemNum): txt = GetGumpInfo(gump_in...
by sauber
23.11.2018 18:45
Forum: Help
Topic: [Python] NumGumpButton, ReturnValue from ElemNum (solved)
Replies: 3
Views: 7278

[Python] NumGumpButton, ReturnValue from ElemNum (solved)

Hi Guys, I'm inspecting a Gump and a Button. The problem is that every time this Gump is opened, or I change page. The value of ReturnValue changes I only want ElemNum 13's ReturnValue 'GumpButtons': [{'ElemNum': 1, 'Page': 0, 'PageID': 0, 'PressedID': 22153, 'Quit': 1, 'ReleasedID': 22153, 'ReturnV...
by sauber
22.11.2018 23:56
Forum: Help
Topic: Python error on UOSay [Can Delete]
Replies: 1
Views: 5643

Python error on UOSay [Can Delete]

On Stealth 8.8.3 & Python 2.7 - Windows 10 When I run the script it goes 22.11.2018 21:53:19:241 [sco1]: Traceback (most recent call last): 22.11.2018 21:53:19:241 [sco1]: File "C:\Python27\lib\runpy.py", line 174, in _run_module_as_main 22.11.2018 21:53:19:241 [sco1]: "__main__&q...
by sauber
22.09.2018 19:51
Forum: Help
Topic: In Client -ping
Replies: 7
Views: 9792

Re: In Client -ping

Sorry guys,

If you use Razor or UO Steam and type -ping
It will return this, it's not a shard command

Image

anything like this in Stealth?