Skip to content

Commit 9081e98

Browse files
authored
Add files via upload
1 parent e1a05f7 commit 9081e98

File tree

2 files changed

+31
-13
lines changed

2 files changed

+31
-13
lines changed

GFNPoEPriceCheck.au3

+31-13
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Global $counter = 0
2525
Global $counterwindow = 300
2626
Global $sURL = 0
2727
Global $URLau3 = "https://github.com/KloppstockBw/GFNPoEPriceCheck/blob/main/GFNPoEPriceCheck.au3"
28-
Global $VersionL = "20231201AA"
28+
Global $VersionL = "20231215AA"
2929
Global $updateChecked = False
3030
Global $WEBSITE, $UPDATE
3131
Global $ty = "thanks and good luck"
@@ -62,6 +62,7 @@ EndIf
6262
$counterwindow += 1
6363
WEnd
6464

65+
6566
Func LoadHotkeysFromIni()
6667
$HotKey1 = IniRead($sIniFile, "HotKey", "Key1", "{F7}")
6768
HotKeySet($HotKey1, "HotKeyPressed1")
@@ -193,6 +194,7 @@ Func awakenedrunning()
193194
Next
194195
MsgBox(0, "Status", "Please start 'Awakened PoE Trade' before running this script")
195196
Exit
197+
Sleep(100)
196198
Wend
197199
EndFunc
198200

@@ -310,7 +312,7 @@ Func Updater()
310312
$updateChecked = True
311313
EndFunc
312314

313-
Func CreateGUI() ; FUNKTION INTEGIEREN?
315+
Func CreateGUI()
314316
Local $hGUI = GUICreate("Update Available", 400, 100)
315317
GUICtrlCreateLabel("There is a new version for the script on Github." & @CRLF & "Do you want to download the latest version?", 10, 10, 380, 50)
316318
$WEBSITE = GUICtrlCreateButton("Open Github", 50, 55, 150, 30)
@@ -323,7 +325,7 @@ Func ResetConfig()
323325

324326
If FileExists($sIniFile) Then
325327
$confirmation = MsgBox(36, "Confirmation", "Are you sure you want to delete the config file?", 0)
326-
If $confirmation = 6 Then ; User clicked "Yes"
328+
If $confirmation = 6 Then ;yes
327329
If FileDelete($sIniFile) Then
328330
MsgBox(64, "Success", "Config file has been deleted successfully. Script will stop now.")
329331
Exit
@@ -338,6 +340,7 @@ Else
338340
EndIf
339341
EndFunc
340342

343+
341344
; Macros
342345

343346
Func ExitScript()
@@ -346,17 +349,22 @@ EndFunc
346349

347350
Func lasty()
348351
If Not WinActive("Path of Exile") Then Return
352+
Opt("SendKeyDelay", 0)
349353
Send("^{ENTER}")
354+
Sleep(5)
350355
Send("^a")
351356
Sleep(20)
352357
Send($ty)
353358
Send("{ENTER}")
354359
EndFunc
355360

356361
Func gotoHideout()
362+
Opt("SendKeyDelay", 0)
357363
If Not WinActive("Path of Exile") Then Return
358364
Send("{ENTER}")
365+
Sleep(5)
359366
Send("/hideout")
367+
Sleep(5)
360368
Send("{ENTER}")
361369
EndFunc
362370

@@ -368,17 +376,18 @@ EndFunc
368376
Send("!^c")
369377
Sleep(150)
370378
Send($HotKey1)
371-
Sleep(150)
379+
Sleep(200)
372380
If $counter < 1 Then
373-
MsgBox($MB_SYSTEMMODAL, "Waiting for google.docs", "Wait until you see the docs.google document is loaded. "& @CRLF & @CRLF &"Then press OK and repeat"& $HotKey2&" Price check on item.")
374-
Sleep(80)
375-
Send("{ESC}")
381+
Sleep(500)
382+
MsgBox($MB_SYSTEMMODAL, "Waiting for google.docs", "Wait until you see the docs.google document is loaded. "& @CRLF & @CRLF &"Then press OK and repeat"& $HotKey2&" Price check on item."& @CRLF & @CRLF & "If the docs.google does not load then press ok, ignore error message that will come and load the docs.google manually in steam overlay. Then press: "& $HotKey2& " to close the window. The browser will stay open in background from now on.")
383+
Sleep(100)
384+
Send($HotKey1)
376385
$counter += 1
377386
Return
378387
EndIf
379388
Send("^a")
380389
Send("^v")
381-
Send("{ESC}")
390+
Send($HotKey1)
382391
Local $i = 0
383392
While 1
384393
Sleep(50)
@@ -391,12 +400,21 @@ EndFunc
391400
$ClipboardText = StringLeft($extractedText, $position - 1)
392401
$clipboardText = StringReplace(StringReplace(StringReplace(StringReplace($ClipboardText, "\u0027", "'"), "—", ""), '\"', '"'), "\n", @CRLF)
393402
$clipboardText = StringRegExpReplace($clipboardText, '\s+$', '')
394-
ClipPut($clipboardText)
403+
$clipboardText = StringRegExpReplace($clipboardText, '—', '-')
404+
ClipPut($clipboardText & @CRLF)
395405
If StringLeft($clipboardText, 4) = "ITEM" Then ExitLoop
396406
$i += 1
397-
If $i >= 30 Then
398-
MsgBox(16, "Fehler", "Item Copy failed from docs.google!"& @CRLF &" Is this the correct docs.google site and anyone can write in it?: "& $sURL & @CRLF & @CRLF &"If yes, please contact KloppstockBW via github or reddit")
399-
Return
407+
If $i >= 1 Then
408+
;MsgBox(16, "Fehler", "docs.google is either empty or not public."& @CRLF &" Please check why it does not contain item details!"& @CRLF & @CRLF &"You can try this steps:"& @CRLF &"1. Does the Steam browser opens automatically the docs.google as soon as you press the hotkey "& $HotKey1 &" while playing PoE?" & @CRLF &" Check the Steps I am showing in the youtube video. Something seems to be wrong in your setup in Steam" & @CRLF &"2. When you Ctrl+V into notepad on your PC, does it show item details?" & @CRLF &" If no, something on step 1 is wrong"
409+
MsgBox(16, "Fehler", "docs.google is either empty or not public." & @CRLF & _
410+
"Please check why it does not contain item details!" & @CRLF & @CRLF & _
411+
"You can try these steps:" & @CRLF & @CRLF & _
412+
"1. Does the Steam browser open automatically to docs.google as soon as you press the hotkey " & $HotKey1 & " while playing PoE?" & @CRLF & _
413+
"->Check the Steps I am showing in the YouTube video. Something seems to be wrong in your setup in Steam" & @CRLF & @CRLF & _
414+
"2. When you Ctrl+V into notepad on your PC, does it show item details?" & @CRLF & _
415+
"->If no, something in step 1 is wrong")
416+
417+
Return
400418
EndIf
401419
WEnd
402420
Send("+{SPACE}")
@@ -406,4 +424,4 @@ EndFunc
406424
Send("^v")
407425
MouseMove($savedMousePos[0], $savedMousePos[1],0)
408426
Opt("SendKeyDelay", 0)
409-
EndFunc
427+
EndFunc

GFNPoEPriceCheck.exe

512 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)