//MR 23.11.2017
SetWindowTitle( "Hello Push" )
SetWindowSize( 1000, 1000, 0 )
SetWindowAllowResize( 1 )
SetVirtualResolution( 100, 100 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
Main()
End
Function Main()
button=1
AddVirtualButton(button,15,15,25)
SetVirtualButtonText(button,"Push")
do
if GetVirtualButtonPressed(button)
iID=1
datetime=GetUnixTime() + 60
szMessage$="Click Me"
SetLocalNotification( iID, datetime, szMessage$ )
MinimizeApp()
endif
Print("Hello Push")
Print( ScreenFPS() )
Sync()
loop
EndFunction
Help make AGK better by submitting an example for this command! (All examples are subject to approval)