Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Question about url opening methods

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
keepstill
Newbie cheater
Reputation: 0

Joined: 22 May 2020
Posts: 17

PostPosted: Tue Jul 21, 2020 8:59 am    Post subject: Question about url opening methods Reply with quote

Hi everyone, I tried almost all url open methods. Some users say to me that the url does not opens. I'm looking for a code that can work for everyone.
Why is this happening and which method should I choose?
I have tried these before:
Code:
os.execute("start myurl")
os.execute('open myurl')
shellExecute('myurl')
io.popen("start myurl")


Regards.
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1532

PostPosted: Tue Jul 21, 2020 9:07 am    Post subject: Reply with quote

Code:
shellExecute("https://forum.cheatengine.org/viewtopic.php?t=614851")

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
keepstill
Newbie cheater
Reputation: 0

Joined: 22 May 2020
Posts: 17

PostPosted: Tue Jul 21, 2020 10:39 am    Post subject: Reply with quote

Aylin wrote:
Code:
shellExecute("https://forum.cheatengine.org/viewtopic.php?t=614851")


Thanks aylin. I tried this at first. But sometimes I got feedback that it didn't work.. What could be causing this?
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1532

PostPosted: Tue Jul 21, 2020 10:55 am    Post subject: Reply with quote

keepstill wrote:
What could be causing this?


1) The user is not pressing the link button correctly.
2) The user may not have set a "Default Browser".

If step 2 applies, try redirecting to the common browser in Windows.
Internet Explorer!
Try the code below;

Code:
shellExecute("iexplore.exe", "https://forum.cheatengine.org/viewtopic.php?t=614851")


3) I have not received an error complaint with this code (shellExecute) before.
You have to make sure that the "Button" or "Label" activating the code is working correctly.
Code:
UDF1.CEButton1.OnClick=function()
shellExecute("iexplore.exe", "https://forum.cheatengine.org/viewtopic.php?t=614851")
end

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
keepstill
Newbie cheater
Reputation: 0

Joined: 22 May 2020
Posts: 17

PostPosted: Tue Jul 21, 2020 11:56 am    Post subject: Reply with quote

Aylin wrote:
keepstill wrote:
What could be causing this?


1) The user is not pressing the link button correctly.
2) The user may not have set a "Default Browser".

If step 2 applies, try redirecting to the common browser in Windows.
Internet Explorer!
Try the code below;

Code:
shellExecute("iexplore.exe", "https://forum.cheatengine.org/viewtopic.php?t=614851")


3) I have not received an error complaint with this code (shellExecute) before.
You have to make sure that the "Button" or "Label" activating the code is working correctly.
Code:
UDF1.CEButton1.OnClick=function()
shellExecute("iexplore.exe", "https://forum.cheatengine.org/viewtopic.php?t=614851")
end

I got it completely. I am appreciated.

So how can I check browser doesn't open. Using if else can really help me a lot here.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites