LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-03-2018, 02:13 AM   #1
reddy_dvk2000
LQ Newbie
 
Registered: Sep 2018
Posts: 7

Rep: Reputation: Disabled
Alternate to Autoit for Linux system


Hi,

I would like to know the alternative tool for Autoit (which is used in Windows) Can some one Please suggest me which tool is I should use and how to install that in Linux machine.

Thanks,
Vinay
 
Old 09-03-2018, 02:32 AM   #2
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
It might help if you explain what autoit is....
 
Old 09-03-2018, 02:35 AM   #3
reddy_dvk2000
LQ Newbie
 
Registered: Sep 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Autoit is windows tool for uploading the files in UI automation process.
 
Old 09-03-2018, 03:20 AM   #4
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 627

Rep: Reputation: Disabled
Try yad with bash scripts. That works in a similar way but is more flexible because you create your own scripts with bash and you create the window with buttons and icons with yad.
Zenity is another gui creator (I think yad is a fork of this).

Last edited by petelq; 09-03-2018 at 03:23 AM.
 
1 members found this post helpful.
Old 09-03-2018, 03:24 AM   #5
reddy_dvk2000
LQ Newbie
 
Registered: Sep 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi Pete, Thanks for your reply, I did not understood what you said fully, We have one full working program scripts for UI automation, I just want to run those on Linux machine. I do not have much rights to change the scripts except install the required tools or plugin on the system.
Thanks,
Vinay
 
Old 09-03-2018, 03:34 AM   #6
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 627

Rep: Reputation: Disabled
Quote:
Originally Posted by reddy_dvk2000 View Post
Hi Pete, Thanks for your reply, I did not understood what you said fully, We have one full working program scripts for UI automation, I just want to run those on Linux machine. I do not have much rights to change the scripts except install the required tools or plugin on the system.
Thanks,
Vinay
If they're autoit scripts then they're unlikely to work on linux. You would have to start again from scratch.
 
Old 09-03-2018, 04:15 AM   #7
reddy_dvk2000
LQ Newbie
 
Registered: Sep 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi Pete, Thanks, Now I understood better than earlier, seems some of the lines of my code needs to be replaced for the linux.
Hmmmm... Can i use this yad in python code in-between? can you please guide me for some docs or examples in this,
 
Old 09-03-2018, 04:16 AM   #8
reddy_dvk2000
LQ Newbie
 
Registered: Sep 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
I am just beginner in Linux.
 
Old 09-03-2018, 04:22 AM   #9
reddy_dvk2000
LQ Newbie
 
Registered: Sep 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
My main requirement is on pop-up window I want to select the ok button or upload button, for this I like to use yad
 
Old 09-03-2018, 05:24 AM   #10
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 627

Rep: Reputation: Disabled
Quote:
Originally Posted by reddy_dvk2000 View Post
My main requirement is on pop-up window I want to select the ok button or upload button, for this I like to use yad
Yad will do that quite easily. If you download it and read the man page
Code:
man yad
it has all the info you need. Once you've created your script you would then create the yad gui and attach the events to the appropriate button.
 
Old 09-03-2018, 11:56 PM   #11
reddy_dvk2000
LQ Newbie
 
Registered: Sep 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi Pete, sorry for confusion, I am testing one GUI application in that web UI will give one pop up in that i need to select the file to be uploaded.
I am not generating any popup, for this also can I use yad?
 
Old 09-04-2018, 01:12 PM   #12
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
there's no 1:1 replacement for these windows tools.
partly because they are usually not required.
linux follows a whole different paradigm and there's no need to "circumvent the ui".

in other words, it would be better if you told us why you need to automate the pressing of the OK button. what exactly is that OK button going to do. what are you really trying to achieve - http://xyproblem.info/


but - if you really need to do it that way, you will probably need to script something with xdotool.
first select the proper window with wmctrl.
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I automate Linux similar to AutoHotKey and AutoIT? enginestar Linux - Newbie 27 02-07-2020 06:11 AM
check and repair a Linux file system using alternate superblock ccc Linux - General 2 10-16-2013 10:26 AM
alternate to system-config-mouse computerlover Linux - Enterprise 1 12-28-2007 02:51 PM
System won't boot: hangs at grub, can't mount hd through alternate means nbier Linux - Software 5 11-23-2004 01:17 PM
System won't boot: hangs at grub, can't mount hd through alternate means nbier SUSE / openSUSE 3 11-23-2004 12:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration