Refresh/Reload a web page
Posted: Thu Mar 14, 2024 10:23 am
I need to programmatically Refresh/Reload a web page (a page that is not mine) in a Browser (I use Firefox or Opera). Currently I do this by mouse click, but the refresh needs to be repeated every minute and the programmatic mouse click therefore renders the actual mouse useless - I want to leave the Browser on one screen and get on with other tasks on my other screen.
Code: Select all
Procedure RefreshWebPage()
;#------------------------
;Programmatic Mouse Click on Web Page Refresh/Reload Button
Protected In.INPUT
In\type = #INPUT_MOUSE
In\mi\dwFlags = #MOUSEEVENTF_LEFTDOWN
SetCursorPos_(igCurPosX, igCurPosY) ;center of button in relation to screen
SendInput_(1,@In,SizeOf(INPUT))
In\mi\dwFlags = #MOUSEEVENTF_LEFTUP
SendInput_(1,@In,SizeOf(INPUT))
EndProcedure