global $state = 1
global $aPos
;1 - Начало работы скрипта
;2 - Запускаем клиент из GG
;3 - Выбираем чара в чарселекте
While $state > 0
If not WinExists("Ragnarok") Then
TrayTip("", "Не найдено окно 'Ragnarok', запускаем GG", 1, 3)
start()
elseif WinExists("Ragnarok") Then
if $state = 1 Or $state = 2 then
TrayTip("", "Найдено окно 'Ragnarok', ищем окно 'Выбор сервера'", 1, 2)
$state = 2
sleep(2000)
ragexeWait ()
elseif $state = 3 then
TrayTip("", "Найдено окно 'Ragnarok', ищем окно с дисконнектом", 1, 3)
SearchDisconnect()
endif
endif
TrayTip("Статус: "&$state, "Ничего не найдено, ждём 5 секунд", 1, 3)
sleep (5000)
WEnd
Func start()
$c = IniRead ( "!GameGate.ini", "Raggame", "GameGate", 0)
if not $c then
MsgBox(0, "Func start", "Не найден файл !GameGate.ini. Скрипт будет закрыт.")
exit
endif
Run ($c&'GameGate.exe', $c)
WinWait("Ingamba GG")
Sleep(5000)
$hWnd = WinGetHandle("Ingamba GG")
$aPos = WinGetPos("Ingamba GG")
$b = PixelChecksum ($aPos[0]+625, $aPos[1]+435, $aPos[0]+795, $aPos[1]+465, $hWnd)
while ($b <> 25362625)
TrayTip ("", "Пытаюсь найти кнопку 'Начать играть'", 1, 1)
sleep (5000)
$aPos = WinGetPos("Ingamba GG")
$b = PixelChecksum ($aPos[0]+625, $aPos[1]+435, $aPos[0]+795, $aPos[1]+465, $hWnd)
WEnd
TrayTip ("Func start", "Кнопка найдена, нажимаю..", 1, 1)
MouseMove($aPos[0]+700, $aPos[1]+450);Нажимаем "Начать играть"
sleep(1000)
MouseClick("left")
$state = 2
ragexeWait ()
EndFunc
Func ragexeWait ()
WinWait("Ragnarok")
; TrayTip ("Func ragexeWait", "Ждём 20 секунд", 5, 1)
; Sleep(20000)
while ($state = 2)
sleep (5000)
WinActivate("Ragnarok")
WinMove("Ragnarok","",0,0)
$aPos = WinGetPos("Ragnarok")
$hWnd = WinGetHandle("Ragnarok")
$a = PixelChecksum ($aPos[0]+375, $aPos[1]+425, $aPos[0]+460, $aPos[1]+440, "Ragnarok")
$b = PixelChecksum ($aPos[0]+200, $aPos[1]+230, $aPos[0]+440, $aPos[1]+300, "Ragnarok")
If ($a = 985042166 or $a = 3404893879) Then
TrayTip ("Func ragexeWait", "Найдено окно 'Выбор сервера', нажимаем Enter, Enter", 3, 1)
MouseMove($aPos[0]+400, $aPos[1]+430);Нажимаем "ОК"
sleep(2000)
MouseClick("left")
MouseClick("left")
;Send("{ENTER}")
$state = 3
Sleep(3000)
CharSelect()
ExitLoop
elseif ($b = 3522986379) then
TrayTip ("Func ragexeWait", "Найдено окно 'Сервер еще обрабатывает Вашу ошибку...', нажимаем ОК и перезапускаем клиент", 3, 1)
$state = 1
start()
Else
TrayTip("Func ragexeWait", "Не найдено окно 'Выбор сервера'. $a="&$a&" $b="&$b, 3, 1)
Endif
wend
EndFunc
Func CharSelect()
;поумолчанию выбирается активный чар
; WinActivate("Ragnarok")
MouseMove($aPos[0]+540, $aPos[1]+435);Нажимаем "ОК"
sleep(2000)
MouseClick("left")
MouseClick("left")
;Send("{ENTER}")
EndFunc
Func SearchDisconnect()
$hWnd = WinGetHandle("Ragnarok")
$aPos = WinGetPos("Ragnarok")
;MsgBox(4096, "", $hWnd)
$b = PixelChecksum ($aPos[0]+190, $aPos[1]+210, $aPos[0]+460, $aPos[1]+320, $hWnd)
while ($b <> 77267562 and $b <> 77398635)
sleep (5000)
$aPos = WinGetPos("Ragnarok")
$b = PixelChecksum ($aPos[0]+190, $aPos[1]+210, $aPos[0]+460, $aPos[1]+320, $hWnd)
; MsgBox(4096, "", $a&" HEX:"&Hex($a, 6)&" md5:"&$b)
;100467454
;77267562
WEnd
MsgBox(0, "", "Найдено окно 'Потеряно соединение с сервером'", 3)
sleep(2000)
MouseMove($aPos[0]+440, $aPos[1]+310);Нажимаем "ОК"
MouseClick("left")
$state = 1
sleep(2000)
EndFunc
Here’s my entire file below. I was able to determine the error by when I run the file I get a error message that gives the error that I stated initially(Error: subscript used on non accessible variable) . And lets me know that yes the array is not an array. And that is why I posted the question as I am new to AutoIt. How do I make sure the array is actually an array? Any input you may have would be helpful.
#RequireAdmin
#include <MsgBoxConstants.au3>
#include <Array.au3>
;set mouse coords to be relative to client area of the active window (default is relative to entire screen).
AutoItSetOption(«MouseCoordMode», 2)
StartCD()
InstallCD()
Func StartCD()
; Run CallerDashboard
ShellExecute(@DesktopDir & «CallerDashboard-installer»)
EndFunc
Func InstallCD()
;Sleep(1500)
SendKeepActive(«Thug Caller Dashboard»)
WinWait(«Thug Caller Dashboard», «», 10)
MouseClick(«primary», 340, 250, 1) ;this starts the installer
Sleep(5000) ;waiting for CCF Manager wizard steps
WinWait(«Thug Design — CallerDashboard Setup», «», 30)
Send(«{Enter}»)
Local $hWnd = WinWait(«Intel® CCF Manager Setup», «», 10)
Local $aClientSize = WinGetClientSize($hWnd)
;$aClientSize = Width:600 Height:470
MouseClick(«primary», $aClientSize[0] — 535, 50)
EndFunc
Same problem with sometimes hundreds of autoit windows…
When killing the UXS process, I’ve a report in which I can see a ‘stackhash_a1aa’ module faulty (according to windows), but never on the same rom…
Launching again UXS, I’m asked to save a file with a windows called ‘unknown text’ in which the dialog is also ‘unknown text’ (with ‘yes/no’ butons), strange… but crashing few time later…
The problem comes with the latest version (2.2.0.2 64 bits running on win7) I downloaded to solve the problem of (Clone, Beta, Demo, …) when missing roms.
Tried to delete all files that seems to be related to UXS, downloaded again, reboot… but no way. Downloaded images are still on the drive…
With the previous version, I’d no problem to scrape (except the ‘missing rom name bug’…).
This is my code:
#RequireAdmin
#Region Directives created by AutoIt3Wrapper_GUI
#AutoIt3Wrapper_UseX64=n
#EndRegion Directives created by AutoIt3Wrapper_GUI
ListDrives("REMOVABLE")
ListDrives("FIXED")
Func ListDrives($type)
$drive = DriveGetDrive($type)
For $i = 1 To $drive[0]
MsgBox(64,"",$drive[$i])
Next
EndFunc
The error is :
(«C:UsersJavadDesktop1.au3» (7) : ==> Subscript used on
non-accessible variable.:
For $i = 1 To $drive[0]
For $i = 1 To $drive^ ERROR)
How to debug «Subscript used on non-accessible variable»?
user4157124
2,74113 gold badges26 silver badges42 bronze badges
asked Sep 13, 2020 at 10:17
1
Maybe you drive is not removeable but CD-ROM.
Try this to have a look at your drives.
#include <AutoItConstants.au3>
#include <MsgBoxConstants.au3>
#include <Array.au3>
$re = ListDrives($DT_ALL)
_ArrayDisplay($re, 'Drives and Drivetypes')
;~ ListDrives($DT_FIXED)
Func ListDrives($type)
Local $aArray = DriveGetDrive($type)
Local $drive_A[0][2]
If @error Then
; An error occurred when retrieving the drives.
MsgBox($MB_SYSTEMMODAL, "", "It appears an error occurred.")
Else
For $i = 1 To $aArray[0]
_ArrayAdd($drive_A, StringUpper($aArray[$i]) & '|' & DriveGetType($aArray[$i]))
Next
EndIf
Return $drive_A
EndFunc ;==>ListDrives
answered Sep 14, 2020 at 6:25
XenobiologistXenobiologist
2,0911 gold badge12 silver badges16 bronze badges
0
Windows 10: Error: Subscript used on non-accessible variable.
Discus and support Error: Subscript used on non-accessible variable. in Windows 10 BSOD Crashes and Debugging to solve the problem; [ATTACH]
Hello! never used this program Autolt, help me solve this. Found nothing in the specified folder. I do not know what to do….
Discussion in ‘Windows 10 BSOD Crashes and Debugging’ started by NICK ARUTYUNOV, Jan 13, 2021.
-
Error: Subscript used on non-accessible variable.
Hello! never used this program Autolt, help me solve this. Found nothing in the specified folder. I do not know what to do.
-
System environment variable won’t stick
Running Win10 Home on an Acer Spin 3, 64bit, i7cpu. I try to add a path to the system environment variables by:
1. Control Panel > System > Advanced system settings > Advanced tab > Environment variables
2. The «Environment Variables» window opens.
3. In the «System Variables» pane I select «Path» and click the EDIT button.
4. A list of the current system paths is displayed.
5. I click the NEW button, browse to the path I want to add which is «C:Python36-32» and click OK. The path «C:Python36-32» is added to the list of current system paths.
6. I click OK and am returned to the «Environment Variables» window.
7. I click the «X» at the top right to close the «Environment Variables» window.Now if I click the «Environment Variables» button again (end of step-1) and repeat steps 2-4, the new path I added in step-5 is gone. IOW, adding a new path won’t stick.
What am I doing wrong?
-
no longer able to set User’s environment variables in control panel
Hello,
Thank you for posting your concern in Microsoft Community and welcome to the Windows 10 Family.
From the description provided, I understand that you are not able to work on the Environment Variables in Windows 10 after the latest update to build 10586.3.
The path to access the Environment variables in Windows would be:
Control panel -> System -> Advanced System Settings -> Advanced -> Environment variables.
However, if the above is still in place, but however, you still face functionality issue, I would suggest you to rollback to the previous build and check if it helps.
Follow the below steps:
- Click on Start and select Settings and then choose Update & security.
- Then click on ‘Recovery Options’.
- Click on the ‘Get started’ button in the ‘Go back to a previous build of Windows’ option to start the recovery process.
Hope the above information is helpful. If you need further information, feel free to write t us and we would be happy to help you.
Thank you.
-
Error: Subscript used on non-accessible variable.
Searching environment variable in list
I’m using a command that gives me a list of environment variables. When searching in the list, I want to find all environment variables with the word
EXTERNAL; using the following command all that is occurring is all the environment variables are being listed instead of those environment variables with the word
EXTERNAL ?findstr /c «EXTERNAL»
Error: Subscript used on non-accessible variable.
-
Error: Subscript used on non-accessible variable. — Similar Threads — Error Subscript used
-
no file access on new 365 subscription
in Windows 10 Network and Sharing
no file access on new 365 subscription: I have given my microsoft 365 password to the new business owner so that he can access the emails. I have got a new subscription and a new 365 account with a different user name and password. When I log into this account I cannot see any of my documents or programs. HOW do I… -
no file access on new 365 subscription
in Windows 10 Gaming
no file access on new 365 subscription: I have given my microsoft 365 password to the new business owner so that he can access the emails. I have got a new subscription and a new 365 account with a different user name and password. When I log into this account I cannot see any of my documents or programs. HOW do I… -
no file access on new 365 subscription
in Windows 10 Software and Apps
no file access on new 365 subscription: I have given my microsoft 365 password to the new business owner so that he can access the emails. I have got a new subscription and a new 365 account with a different user name and password. When I log into this account I cannot see any of my documents or programs. HOW do I… -
Powershell modify/change variables in non-modal form
in Windows 10 Gaming
Powershell modify/change variables in non-modal form: Is there a way to change variables in non-modal form? like below, how to make change to $b.Text after start-job $function:goForm executed? Thanks. Function Update_Al { $b.Text = ‘Update 2’ $b1.Text = $b.Text } $b = [pscustomobject]@{ Text = ‘Update 1’ }… -
Powershell modify/change variables in non-modal form
in Windows 10 Software and Apps
Powershell modify/change variables in non-modal form: Is there a way to change variables in non-modal form? like below, how to make change to $b.Text after start-job $function:goForm executed? Thanks. Function Update_Al { $b.Text = ‘Update 2’ $b1.Text = $b.Text } $b = [pscustomobject]@{ Text = ‘Update 1’ }… -
regarding path variable of user variable of environment variable
in Windows 10 Customization
regarding path variable of user variable of environment variable: please help me fast, I accidentally deleted path variable of user variable ….. I want to restore it.the real situation is I cannot run android studio project and it shows error — » unable to start daemon process…………This problem might be caused by incorrect…
-
Website builder NON subscription program?
in Windows 10 Software and Apps
Website builder NON subscription program?: I used a desktop website builder named WebPlus by Serif software for years, it’s still usable but lacks many modern features, so I am looking for a stand alone run from the desktop non subscription one off payment replacement?
There are plenty of online Website builders… -
Use the value of Task Sequence Variable as the value of another Task Sequence Variable
in Windows 10 Installation and Upgrade
Use the value of Task Sequence Variable as the value of another Task Sequence Variable: Hi everybody,Does anybody know whether it is possible to use the value of an Task Sequence Variable as the value of another Task Sequence Variable?
For example, TS variable A has the value of 8. And I want to use this as the value of variable Q.
What I did was Set Task…
-
Subscription error
in Microsoft Windows 10 Store
Subscription error: Where do I get help for not being able to add a new payment method for my subscription?I have had this issue.
Hello, I’m trying to pay for my Xbox Game Pass for PC beta subscription.
I got into the program and made the $1 buy in with a visa gift card. I bought this gift…
Users found this page by searching for:
-
error subscript used on non-accessible variable как исправить
,
-
subscribe used on non-accessible variable