Reactivation of tethering software on disconnect

Discuss RoboTask here

Re: Reactivation of tethering software on disconnect

Postby Oleg » Thu Jun 11, 2020 10:12 am

... but the menu that pops up shows on some other part of the screen instead of down by the Systray where ...

RoboTask doesn't control menu of external program. Maybe this is the behavior of your application...

I tried to create similar task. It open Viber interface from systray. It works fine
Look at my example example
Save the text of the task to a file and use menu Task->Import to import the task into RoboTask.
Code: Select all
;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
 
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|444033236
Comment=STRINGLIST
ContinueOnError=INTEGER|0
DoNotStopWhenShutdown=INTEGER|0
ExternalName=STRING|"Task1180"
Hide=INTEGER|0
ID=INTEGER|-1088526321
LogOnAsUser=INTEGER|1
Name=STRING|"Open Viber application"
OnErrorTaskID=INTEGER|-1
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
Action6=FOLDER

[Actions\Action1]
ActionID=STRING|"A_FINDBYIMAGE"
Enabled=INTEGER|-1
Name=STRING|"Find an Element by Image"
Params=FOLDER

[Actions\Action1\Params]
generror=STRING|"1"
img00000000=STRING|"eNpz8g1iYwADMyDWAGIxIBYHYkYGCbC4DFQeGVjrydroyQJJK10ZayACs61R2ZY60kAEUqkvZwOX1ZU"
img00000001=STRING|"BarHSkQabgdABI63ADKAOZLOtYOJAfUCGDcwGoBlgJTYQ10BUwXWA1cKthJCW2lKWcHGwMQwMcFVwRw"
img00000002=STRING|"CVJDhZxjiYQd0E1IFkGNRCsBOtEX6ByEP9CpYp8nXbUFAeZW+C7G9rmAdt4FrArmdgQPY0SB7MrQ7y2"
img00000003=STRING|"1pcvaGgrDrYvzLQt9TPI93d3t9SxwZboAP9ArMAYpKzkXJPTPTmokqgGZhoRU5hvrcrInjAesHhAfWx"
img00000004=STRING|"jrSdvtz8tCxMrftauq9u3AokIdwyfy8bpOgD+gUpfWS6O6Dp3lXT/ODoiT8/f/7////rm7c7qpqAguv"
img00000005=STRING|"zy+wNFOBOgacPcGD1xsQgG3Cod8q3d+9/fv329/cfoBmvb97eXlEPkYp1soDHI8QvsPCYl5oJN+Bg18"
img00000006=STRING|"SfX74+OHJ8Z03zmflLrq7fsq2sDi6b7ekED0KkNAYUWJSRA1Gyvbzuw6MnL69eR/PattJaCKPIxx3JD"
img00000007=STRING|"EhoQvyyEGbG5bWbgI4/u2g5XPfZhcvOLVpxccVaCLfc3wuaaBBxC/HRzORUkCPK6r68fgM04/OLlxCL"
img00000008=STRING|"j0+d/fjU2Tt7DhybOhtiRq6XMzyzwsIUEiQdkRFA+T0N7ZCIeHjsFJC7u77t5vbdRyfNeHn1BtxZcY4"
img00000009=STRING|"W0OQOzS82sJSf6moDUXJy1oKnZy/sqGoE+WLBsidnzj+7cGlHZSNEFhi3dvryVrCMgxovdnpy81Iz0M"
img0000000A=STRING|"Jxb3PXnsYOZJG64EDkXA2JFz1ZW1hOcjdR64+N21JUhTWtA11QHeRvqy+PXNLA8r4NvIwCm+RhopbmY"
img0000000B=STRING|"lMT5N8UFtwaEQa0uNTPE5iuHAwUMMs6ePkBFwYz4CGEyPswBE3U8OITHC8wMRuYbmQHQTyNaQYCQf2C"
img0000000C=STRING|"bChKiYihFREBSGrA7rCBGQr3ghWsjEI4BewvZAXwgGRgAADUbecC"
imgcount=STRING|"13"
posx=STRING|"11"
posy=STRING|"11"
putcursor=STRING|"1"
saveresult=STRING|"0"
startx=STRING|"1862"
starty=STRING|"1040"

[Actions\Action2]
ActionID=STRING|"A_MOUSE_CLICK"
Enabled=INTEGER|-1
Name=STRING|"Click right button"
Params=FOLDER

[Actions\Action2\Params]
action=STRING|"0"
button=STRING|"1"

[Actions\Action3]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 200 ms"
Params=FOLDER

[Actions\Action3\Params]
delay=STRING|"200"
dimension=STRING|"0"

[Actions\Action4]
ActionID=STRING|"A_MOUSE_MOVE"
Enabled=INTEGER|-1
Name=STRING|"Move"
Params=FOLDER

[Actions\Action4\Params]
dx=STRING|"0"
dy=STRING|"15"
mode=STRING|"1"

[Actions\Action5]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 200 ms"
Params=FOLDER

[Actions\Action5\Params]
delay=STRING|"200"
dimension=STRING|"0"

[Actions\Action6]
ActionID=STRING|"A_MOUSE_CLICK"
Enabled=INTEGER|-1
Name=STRING|"Click left button"
Params=FOLDER

[Actions\Action6\Params]
action=STRING|"0"
button=STRING|"0"

Oleg Yershov
Oleg
Site Admin
 
Posts: 2586
Joined: Thu Jan 01, 1970 1:00 am

Re: Reactivation of tethering software on disconnect

Postby Oleg » Thu Jun 11, 2020 10:15 am

... but the menu that pops up shows on some other part of the screen ...

It this case use Find an Element by Image action to find necessary menu item on the screen
Oleg Yershov
Oleg
Site Admin
 
Posts: 2586
Joined: Thu Jan 01, 1970 1:00 am

Re: Reactivation of tethering software on disconnect

Postby xyberz » Mon Jun 15, 2020 4:30 pm

I think I'll do a screen recording so you can see exactly what's happening so you can get a better idea of what's happening when I add in those extra move and click commands and post it on YouTube.
xyberz
 
Posts: 7
Joined: Mon Jun 01, 2020 5:54 am

Previous

Return to General Discussion

Who is online

Users browsing this forum: Bing [Bot] and 25 guests