Sign in to follow this  
Followers 0
Marzupilami

Get content from Koda user input boxes

9 posts in this topic

Hi! I'm using Koda input boxes. I wrote this: ShellExecute ("chrome.exe", $Input1)

The meaning of the GUI is that the user should type in an url in the input box, click a "Go"-button and then it would open the url in a web browser. But it didn't work... 

How should I do to make this work? :)

Thanks in advance

Share this post


Link to post
Share on other sites



Koda is just a GUI designer.

The result is pure AutoIt code.

To help you we need to see your code.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Try to send the url directly to ShellExecute, that way it will use the deafult browser.

ShellExecute($Input1)

Share this post


Link to post
Share on other sites

 

Try to send the url directly to ShellExecute, that way it will use the deafult browser.

ShellExecute($Input1)

Thanks, but I get the error message "Cannot find the file 3". I think there's something wrong with my input box. Tried to replace it (create new Koda code). Got the error message "Cannot find the file 16". Why am I just getting numbers and what do they mean? I can see it doesn't matter what I actually write in the input box. And if I try MsgBox instead of ShellExecute I can just see the number 3 (or 16) in it, regardless from what I write. Any ideas about it?

Share this post


Link to post
Share on other sites

3 is the ControlId. Please have a look at GuiCtrlRead.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Post your whole script and I'm sure this would be much easier to answer. ;)


Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Share this post


Link to post
Share on other sites

3 is the ControlId. Please have a look at GuiCtrlRead.

Got it! :) Thanks

I also want a delay that the user defines in three other input boxes - hours, minutes and seconds - before it opens the url. How can I remake hours, minutes and seconds, numbers from three different input boxes, to one common number, in milliseconds that the Sleep command uses?

Share this post


Link to post
Share on other sites

Any reason that you don't want to post your script?  You will get more concise help if you do...


Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0