def login_wp(username="", password=""):

    #Just replace the below  link with your word press user login link

    cf.launch_website_h("https://tech2everyone.live")

    # give the user name below while calling the function dont edit the below two lines

    cf.browser_write_h(username, "Username")
    cf.browser_write_h(password, "Password")
    cf.browser_mouse_click_h("Log In")
    cf.browser_mouse_click_h("Posts")

    lastpage = cf.browser_locate_element_h(
        '//*[@id="posts-filter"]/div[1]/div[3]/span[2]/a[2]')
    cf.browser_mouse_click_h(lastpage)

    select_files = cf.browser_locate_element_h('//*[@id="cb-select-all-1"]')
    cf.browser_mouse_click_h(select_files)

    bulkaction = cf.browser_locate_element_h(
        '//*[@id="bulk-action-selector-top"]')
    cf.browser_mouse_click_h(bulkaction)

    cf.key_press("down+down")
    cf.key_press("down+down")
    cf.key_hit_enter()

    Apply = cf.browser_locate_element_h('//*[@id="doaction"]')
    cf.browser_mouse_click_h(Apply)

    cf.browser_quit_h()
try:
    cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(
        r'C:\Users\Sushil\AppData\Local\Temp\cf_log_djfih_un_generator\Images\Snips\6-ClointFusionBOTBuilderpyVisualStudioCode-68_648.png',
        conf=0.7,
        wait=10),
                   left_or_right='left',
                   single_double_triple='double')
except:
    cf.mouse_click(68,
                   648,
                   left_or_right='left',
                   single_double_triple='double')

time.sleep(0)
cf.key_press('ctrl+V')
time.sleep(1)

time.sleep(0)
cf.key_press('cmd')
time.sleep(1)
cf.key_press('enter')
time.sleep(1)
cf.key_press('down')
time.sleep(0)
cf.key_press('down')
time.sleep(0)
cf.key_press('up')
time.sleep(1)
cf.key_press('up')
time.sleep(1)
    cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(
        r'C:\Users\Karth\AppData\Local\Temp\cf_log_2dm66eov_generator\Images\Snips\3--316_1059.png',
        conf=0.7,
        wait=11),
                   left_or_right='left',
                   single_double_triple='single')
except:
    cf.mouse_click(316,
                   1059,
                   left_or_right='left',
                   single_double_triple='single')

time.sleep(1)
cf.key_write_enter('chr', key='')
time.sleep(1)
cf.key_press('enter')
time.sleep(3)

try:
    cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(
        r'C:\Users\Karth\AppData\Local\Temp\cf_log_2dm66eov_generator\Images\Snips\4-NewTabGoogleChrome-551_94.png',
        conf=0.7,
        wait=10),
                   left_or_right='left',
                   single_double_triple='single')
except:
    cf.mouse_click(551,
                   94,
                   left_or_right='left',
                   single_double_triple='single')
Esempio n. 4
0
# This code is generated automatically by ClointFusion BOT Builder Tool.
import ClointFusion as cf
import time

cf.window_show_desktop()
cf.mouse_click(int(cf.pg.size()[0] / 2), int(cf.pg.size()[1] / 2))

cf.key_write_enter('ote', key='')
time.sleep(0)
cf.key_press('enter')
time.sleep(1)
cf.key_write_enter('hi', key='')
time.sleep(0)
cf.key_press('space')
time.sleep(0)
cf.key_write_enter('sushil', key='')
time.sleep(0)
cf.key_press('space')
time.sleep(0)
cf.key_write_enter('how', key='')
time.sleep(0)
cf.key_press(ctrl + X)

time.sleep(0)
cf.key_press('space')
time.sleep(0)
cf.key_press(ctrl + V)

time.sleep(0)
cf.key_press('space')
time.sleep(1)
import ClointFusion as cf
cf.launch_any_exe_bat_application('notepad')
cf.key_write_enter('RR', key='')
cf.key_press('alt+f4')
cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(img=str(
    r'C:\Users\mrmay\AppData\Local\Temp\cf_log_dtxn777p_generator\Images\Snips\2-Notepad-960_198.png'
),
                                                            conf=0.7))
cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(img=str(
    r'C:\Users\mrmay\AppData\Local\Temp\cf_log_dtxn777p_generator\Images\Snips\3-Notepad-998_321.png'
),
                                                            conf=0.7))
Esempio n. 6
0
# This code is generated automatically by ClointFusion BOT Builder Tool.
import ClointFusion as cf
import time

cf.window_show_desktop()
cf.mouse_click(int(cf.pg.size()[0] / 2), int(cf.pg.size()[1] / 2))

cf.key_press('[]')
time.sleep(0)
cf.key_press('enter')
time.sleep(0)
cf.key_press('[]')
time.sleep(0)
cf.key_press('space')
time.sleep(0)
cf.key_press('[]')
time.sleep(0)
cf.key_press(ctrl + C)

time.sleep(0)
cf.key_press('[]')
time.sleep(0)
cf.key_press('space')
time.sleep(1)
cf.key_press('[]')
time.sleep(0)
cf.key_press('space')
time.sleep(0)
cf.key_press(ctrl + C)

time.sleep(0)
Esempio n. 7
0
# This code is generated automatically by ClointFusion BOT Builder Tool.
import ClointFusion as cf
import time

cf.window_show_desktop()
cf.mouse_click(int(cf.pg.size()[0] / 2), int(cf.pg.size()[1] / 2))

cf.key_press('cmd')
time.sleep(1)
cf.key_write_enter('note', key='')
time.sleep(0)
cf.key_press('enter')
time.sleep(1)
cf.key_write_enter('hi', key='')
time.sleep(0)
cf.key_press('space')
time.sleep(0)
cf.key_press('ctrl+A')
cf.key_press('ctrl+X')
cf.key_press('ctrl+C')
cf.key_press('ctrl+V')
cf.key_press('ctrl+Z')

time.sleep(0)
cf.key_press('space')
time.sleep(0)
cf.key_write_enter('how', key='')
time.sleep(0)
cf.key_press('space')
time.sleep(0)
cf.key_write_enter('r', key='')
# This code is generated automatically by ClointFusion BOT Builder Tool.
import ClointFusion as cf 
import time 

cf.window_show_desktop() 
cf.mouse_click(int(cf.pg.size()[0]/2),int(cf.pg.size()[1]/2))

cf.key_write_enter('po',key='')
time.sleep(0)
cf.key_press('backspace')
time.sleep(1)
cf.key_press('backspace')
time.sleep(0)
cf.key_write_enter('otepad',key='')
time.sleep(0)
cf.key_press('enter')
time.sleep(1)
cf.key_write_enter('hi',key='')
time.sleep(0)
cf.key_press('space')
time.sleep(0)
cf.key_write_enter('usshil',key='')
time.sleep(0)
cf.key_press('space')
time.sleep(0)
cf.key_write_enter('how',key='')
time.sleep(0)
cf.key_press('space')
time.sleep(1)
cf.key_write_enter('r',key='')
time.sleep(0)
except:
    cf.mouse_click(340,
                   41,
                   left_or_right='left',
                   single_double_triple='single')

time.sleep(1)

try:
    cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(
        r'C:\Users\mrmay\AppData\Local\Temp\cf_log_ivcewxt1_generator\Images\Snips\4-NewTabGoogleChrome-387_80.png',
        conf=0.7,
        wait=11),
                   left_or_right='left',
                   single_double_triple='double')
except:
    cf.mouse_click(387,
                   80,
                   left_or_right='left',
                   single_double_triple='double')

time.sleep(1)
cf.key_write_enter('hare', key='')
time.sleep(0)
cf.key_press('enter')
time.sleep(1)
cf.key_press('f4')
time.sleep(0)
cf.key_press('alt')
time.sleep(0)
Esempio n. 10
0
# This code is generated automatically by ClointFusion BOT Builder Tool.
import ClointFusion as cf
import time

cf.window_show_desktop()
cf.mouse_click(int(cf.pg.size()[0] / 2), int(cf.pg.size()[1] / 2))

cf.key_write_enter('ote', key='')
time.sleep(0)
cf.key_press('enter')
time.sleep(1)
cf.key_write_enter('hi', key='')
time.sleep(1)
cf.key_press('space')
time.sleep(0)
cf.key_write_enter('sushil', key='')
time.sleep(0)
cf.key_press('space')
time.sleep(0)
cf.key_write_enter('how', key='')
time.sleep(0)
cf.key_press(ctrl + X)

time.sleep(0)
cf.key_press('space')
time.sleep(0)
cf.key_write_enter('ru', key='')
time.sleep(1)
cf.key_press('space')
time.sleep(1)
cf.key_press(ctrl + C)
def write_into_NameBox(inp):
    cf.mouse_click(x=73, y=224, single_double_triple='double')
    cf.key_write_enter(strMsg=inp, delay=0.5, key='e')


cf.window_show_desktop()
cf.message_counter_down_timer(strMsg='Starting Process', start_value=3)
cf.mouse_click(
    *cf.mouse_search_snip_return_coordinates_x_y('images/excel.png'),
    single_double_triple='double')

cf.message_counter_down_timer(strMsg='Looking for Table', start_value=3)

write_into_NameBox(inp='G1')
cf.key_press(strKeys='ctrl + down')
cf.key_press(strKeys='ctrl + shift + down')
cf.key_press(strKeys='ctrl + shift + left')
cf.key_press(strKeys='ctrl + c')
cf.key_press(strKeys='shift + f11')
cf.key_press(strKeys='ctrl + v')

cf.message_counter_down_timer(strMsg='Sorting the Region to central',
                              start_value=3)

write_into_NameBox(inp='B1')
cf.key_press(strKeys='ctrl + shift + l')
cf.key_press(strKeys='alt + down')
cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y('images/west.png'),
               single_double_triple='single')
cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y('images/east.png'),
Esempio n. 12
0
# This code is generated automatically by ClointFusion BOT Builder Tool.
import ClointFusion as cf 
import time 

cf.window_show_desktop() 
cf.mouse_click(int(cf.pg.size()[0]/2),int(cf.pg.size()[1]/2))

cf.key_press('cmd')
time.sleep(1)
cf.key_write_enter('notepad',key='')
time.sleep(0)
cf.key_press('enter')
time.sleep(1)
cf.key_write_enter('hi',key='')
time.sleep(0)
cf.key_press('space')
time.sleep(0)
cf.key_write_enter('ushiil',key='')
time.sleep(0)
cf.key_press('space')
time.sleep(0)
cf.key_write_enter('\x18\x03\x16',key='')
time.sleep(0)
cf.key_press('space')
time.sleep(0)
cf.key_press('ctrl+Z')
time.sleep(1)
cf.key_press('space')
time.sleep(3)

Esempio n. 13
0
def launch_game():
    cf.launch_any_exe_bat_application("chrome")
    cf.key_write_enter("chrome://dino")
    cf.key_hit_enter()
    cf.key_press("space")
    return
Esempio n. 14
0
import ClointFusion as cf
cf.browser_navigate_h("https://www.gmail.com")
#user_name = cf.browser_locate_element_h("//*[@id='identifierId']")

#put your email id here
email = "*****@*****.**"
cf.browser_write_h(email,"Email or Phone") 
cf.browser_mouse_click_h("Next")

#password in txt file for encryption
#create txt file.
#add your password in it
f = open("password.txt", "r")
password = f.read()
cf.browser_write_h(password,"Enter your password")
cf.browser_mouse_click_h("Next")

cf.browser_wait_until_h("loading gmail")

#process for email writing starts here
cf.browser_mouse_click_h("Compose")
cf.browser_write_h("*****@*****.**","To")
cf.browser_write_h("test" ,"Subject")
cf.key_press('tab')
message = "hi this is test" 
cf.key_write_enter(message)
cf.browser_mouse_click_h("Send")
cf.browser_wait_until_h("Message sent.")

cf.browser_quit_h()
# This code is generated automatically by ClointFusion BOT Builder Tool.
import ClointFusion as cf
import time

cf.window_show_desktop()
cf.mouse_click(int(cf.pg.size()[0] / 2), int(cf.pg.size()[1] / 2))

cf.key_write_enter('ote', key='')
time.sleep(0)
cf.key_press('enter')
time.sleep(2)
cf.key_write_enter('hi', key='')
time.sleep(0)
cf.key_press('space')
time.sleep(0)
cf.key_write_enter('sushil', key='')
time.sleep(0)
cf.key_press('space')
time.sleep(0)
cf.key_press('ctrl+A')
cf.key_press('ctrl+Z')
time.sleep(1)
cf.key_press('space')
time.sleep(0)
cf.key_write_enter('r', key='')
time.sleep(0)
cf.key_press('space')
time.sleep(0)
cf.key_press('ctrl+V')
time.sleep(0)
cf.key_press('ctrl+Z')
Esempio n. 16
0
# This code is generated automatically by ClointFusion BOT Builder Tool.
import ClointFusion as cf 
import time 

cf.window_show_desktop() 
cf.mouse_click(int(cf.pg.size()[0]/2),int(cf.pg.size()[1]/2))

cf.key_press('cmd')
time.sleep(3)

try:
    cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(r'C:\Users\mrmay\AppData\Local\Temp\cf_log_hcx12b0q_generator\Images\Snips\1--27_1060.png',conf=0.7, wait=11),left_or_right='left', single_double_triple = 'single')
except:
    cf.mouse_click(27,1060,left_or_right='left', single_double_triple = 'single')

time.sleep(1)
cf.key_write_enter('notepad',key='')
time.sleep(0)
cf.key_press('enter')
time.sleep(1)
cf.key_press('shift')
time.sleep(0)
cf.key_write_enter('hello',key='')
time.sleep(0)
cf.key_press('f4')
time.sleep(0)
cf.key_press('alt')
time.sleep(3)

try:
    cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(r'C:\Users\mrmay\AppData\Local\Temp\cf_log_hcx12b0q_generator\Images\Snips\2-Notepad-945_242.png',conf=0.7, wait=11),left_or_right='left', single_double_triple = 'single')
Esempio n. 17
0
# This code is generated automatically by ClointFusion BOT Builder Tool.
import ClointFusion as cf
import time

cf.window_show_desktop()
cf.mouse_click(int(cf.pg.size()[0] / 2), int(cf.pg.size()[1] / 2))

cf.key_write_enter('n', key='')
time.sleep(0)
cf.key_write_enter('o', key='')
time.sleep(1)
cf.key_write_enter('t', key='')
time.sleep(0)
cf.key_write_enter('e', key='')
time.sleep(0)
cf.key_press('enter')
time.sleep(1)
cf.key_write_enter('h', key='')
time.sleep(0)
cf.key_write_enter('i', key='')
time.sleep(1)
cf.key_press('space')
time.sleep(0)
cf.key_write_enter('s', key='')
time.sleep(0)
cf.key_write_enter('u', key='')
time.sleep(0)
cf.key_write_enter('s', key='')
time.sleep(0)
cf.key_write_enter('h', key='')
time.sleep(0)
# This code is generated automatically by ClointFusion BOT Builder Tool.
import ClointFusion as cf
import time

cf.window_show_desktop()
cf.mouse_click(int(cf.pg.size()[0] / 2), int(cf.pg.size()[1] / 2))

cf.key_press('alt+tab')
time.sleep(0)

time.sleep(2)

try:
    cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(
        r'C:\Users\Sushil\AppData\Local\Temp\cf_log_qpp801ov_generator\Images\Snips\1-cflogqpp801ovgenerator-551_221.png',
        conf=0.7,
        wait=10),
                   left_or_right='left',
                   single_double_triple='single')
except:
    cf.mouse_click(551,
                   221,
                   left_or_right='left',
                   single_double_triple='single')

time.sleep(0)

try:
    cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(
        r'C:\Users\Sushil\AppData\Local\Temp\cf_log_qpp801ov_generator\Images\Snips\2-cflogqpp801ovgenerator-551_221.png',
        conf=0.7,
    cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(
        r'C:\Users\mrmay\AppData\Local\Temp\cf_log_2k76ujae_generator\Images\Snips\5-NewTabGoogleChrome-690_83.png',
        conf=0.7,
        wait=11),
                   left_or_right='left',
                   single_double_triple='single')
except:
    cf.mouse_click(690,
                   83,
                   left_or_right='left',
                   single_double_triple='single')

time.sleep(1)
cf.key_write_enter('hare', key='')
time.sleep(0)
cf.key_press('space')
time.sleep(1)
cf.key_write_enter('krishna', key='')
time.sleep(1)
cf.key_press('enter')
time.sleep(3)

try:
    cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(
        r'C:\Users\mrmay\AppData\Local\Temp\cf_log_2k76ujae_generator\Images\Snips\6-harekrishnaGoogleSearchGoogleChrome-1861_67.png',
        conf=0.7,
        wait=11),
                   left_or_right='left',
                   single_double_triple='double')
except:
    cf.mouse_click(1861,
import ClointFusion as cf

cf.launch_any_exe_bat_application('search')
cf.key_write_enter('notepad', key='')
cf.key_write_enter('H', key='')
cf.key_press('shift')
cf.key_write_enter('Are', key='')
cf.key_press('alt+f4')
cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(img=str(
    r'C:\Users\mrmay\AppData\Local\Temp\cf_log_5z0_dw4d_generator\Images\Snips\2-Notepad-949_285.png'
),
                                                            conf=0.7))
cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(img=str(
    r'C:\Users\mrmay\AppData\Local\Temp\cf_log_5z0_dw4d_generator\Images\Snips\3-Notepad-1034_397.png'
),
                                                            conf=0.7))
# This code is generated automatically by ClointFusion BOT Builder Tool.
import ClointFusion as cf
import time

cf.window_show_desktop()
cf.mouse_click(int(cf.pg.size()[0] / 2), int(cf.pg.size()[1] / 2))

cf.key_press('cmd')
time.sleep(0)
nan
time.sleep(0)
cf.key_press(ctrl + Z)
cf.key_press(ctrl + X)
cf.key_press(ctrl + C)
cf.key_press(ctrl + V)
cf.key_press(ctrl + A)
cf.key_press(ctrl + S)

time.sleep(0)
cf.key_press('enter')
time.sleep(1)
nan
time.sleep(0)
cf.key_press('space')
time.sleep(1)
nan
time.sleep(0)
cf.key_press('space')
time.sleep(0)
nan
time.sleep(1)
Esempio n. 22
0
import ClointFusion as cf
cf.launch_any_exe_bat_application('notepad')
cf.key_hit_enter()
cf.key_write_enter('RR', key='')
cf.key_press('shift')
cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(img=str(
    r'C:\Users\mrmay\AppData\Local\Temp\cf_log_u5907176_generator\Images\Snips\2-UntitledNotepad-219_496.png'
),
                                                            conf=0.7))
cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(img=str(
    r'C:\Users\mrmay\AppData\Local\Temp\cf_log_u5907176_generator\Images\Snips\3-UntitledNotepad-265_703.png'
),
                                                            conf=0.7))
cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(img=str(
    r'C:\Users\mrmay\AppData\Local\Temp\cf_log_u5907176_generator\Images\Snips\4-Notepad-955_247.png'
),
                                                            conf=0.7))
cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(img=str(
    r'C:\Users\mrmay\AppData\Local\Temp\cf_log_u5907176_generator\Images\Snips\5-Notepad-981_374.png'
),
                                                            conf=0.7))
                   single_double_triple='single')
except:
    cf.mouse_click(1852, 56)
time.sleep(1)

try:
    cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(
        r'C:\Users\mrmay\AppData\Local\Temp\cf_log_c75vv32c_generator\Images\Snips\4-NewTabGoogleChrome-331_25.png',
        conf=0.7,
        wait=11),
                   left_or_right='left',
                   single_double_triple='single')
except:
    cf.mouse_click(331, 25)
time.sleep(1)
cf.key_write_enter('modi')
time.sleep(1)
cf.key_press('enter')
time.sleep(9)

try:
    cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(
        r'C:\Users\mrmay\AppData\Local\Temp\cf_log_c75vv32c_generator\Images\Snips\5-modiGoogleSearchGoogleChrome-1889_18.png',
        conf=0.7,
        wait=10),
                   left_or_right='left',
                   single_double_triple='double')
except:
    cf.mouse_click(1889, 18)
time.sleep(0)
import ClointFusion as cf 
import time 

cf.window_show_desktop() 
cf.mouse_click(int(cf.pg.size()[0]/2),int(cf.pg.size()[1]/2))


try:
    cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(r'C:\Users\Sushil\AppData\Local\Temp\cf_log_iv8cgz1z_generator\Images\Snips\1--261_749.png',conf=0.7, wait=12),left_or_right='left', single_double_triple = 'single')
except:
    cf.mouse_click(261,749,left_or_right='left', single_double_triple = 'single')

time.sleep(2)
cf.key_write_enter('note',key='')
time.sleep(0)
cf.key_press('ctrl+A')
cf.key_press('ctrl+Z')
cf.key_press('ctrl+Y')
cf.key_press('ctrl+Z')
cf.key_press('ctrl+X')
cf.key_press('ctrl+V')
time.sleep(1)
cf.key_press('enter')
time.sleep(4)
cf.key_write_enter('H',key='')
time.sleep(0)
cf.key_press('shift')
time.sleep(0)
cf.key_write_enter('are',key='')
time.sleep(0)
cf.key_press('space')
Esempio n. 25
0
import ClointFusion as cf 
import time 

cf.window_show_desktop() 
cf.mouse_click(int(cf.pg.size()[0]/2),int(cf.pg.size()[1]/2))


try:
    cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(r'C:\Users\Sushil\AppData\Local\Temp\cf_log_gkv4l5f4_generator\Images\Snips\1--636_335.png',conf=0.7, wait=11),left_or_right='left', single_double_triple = 'single')
except:
    cf.mouse_click(636,335,left_or_right='left', single_double_triple = 'single')

time.sleep(1)
cf.key_write_enter('note',key='')
time.sleep(0)
cf.key_press('enter')
time.sleep(1)
cf.key_write_enter('hi',key='')
time.sleep(0)
cf.key_press('space')
time.sleep(1)
cf.key_write_enter('sushil',key='')
time.sleep(0)
cf.key_press('ctrl+A')
cf.key_press('ctrl+X')
cf.key_press('ctrl+C')

time.sleep(1)
cf.key_write_enter('how',key='')
time.sleep(0)
cf.key_press('space')
Esempio n. 26
0
import ClointFusion as cf
;cf.launch_any_exe_bat_application('notepad')
;cf.key_write_enter('RR',key='')
;cf.key_press('alt+f4')
;cf.key_press('n')